-
Notifications
You must be signed in to change notification settings - Fork 2
/
interactive-image-office-sd.jigx
91 lines (83 loc) · 2.4 KB
/
interactive-image-office-sd.jigx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
title: Interactive Image
description: Interactive image for Hot Seat & Meeting Room Bookings
type: jig.default
datasources:
interactive-image-office:
type: datasource.static
options:
data:
- id: 1
name: Meeting Room
xCoordinate: 65
yCoordinate: 43
isReserved: true
group: Meeting room
- id: 2
name: Hot Desk 1
xCoordinate: 22
yCoordinate: 12
isReserved: true
group: Hot desk - reserved
- id: 3
name: Hot Desk 2
xCoordinate: 22
yCoordinate: 22.5
isReserved: false
group:
- id: 4
name: Hot Desk 3
xCoordinate: 22
yCoordinate: 33
isReserved: true
group: Hot desk - reserved
- id: 5
name: Hot Desk 4
xCoordinate: 22
yCoordinate: 44
isReserved: false
group:
- id: 6
name: Hot Desk 5
xCoordinate: 22
yCoordinate: 55.5
isReserved: false
group:
- id: 7
name: Hot Desk 6
xCoordinate: 22
yCoordinate: 66.5
isReserved: true
group: Hot desk - reserved
children:
- type: component.interactive-image
options:
imageHeight: 1500
source:
uri: https://i.pinimg.com/564x/b0/eb/52/b0eb52122452257e955f210e7fdb8f55.jpg
data: =@ctx.datasources.interactive-image-office
pointColor: color10
groups:
- title: Selected desks
id: Selected desks
color: color2
- title: Hot desk - reserved
id: Hot desk - reserved
color: color14
maximumPoints: 3
- title: Meeting room - reserved
id: Meeting room
color: color14
maximumPoints: 1
item:
type: component.interactive-image-item
options:
id: =@ctx.current.item.id
title: =@ctx.current.item.name
icon: =@ctx.current.item.isReserved = true ? 'close' :null
color: =@ctx.current.item.isReserved = true ? 'color3' :null
groupId: =@ctx.current.item.group
style:
isDisabled: =@ctx.current.item.isReserved = true ? true :false
percentageCoordinates:
x: =@ctx.current.item.xCoordinate
y: =@ctx.current.item.yCoordinate