-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtemp.js
63 lines (61 loc) · 1.37 KB
/
temp.js
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
let sampleBoardData = {
data: {
components: [
{
id: '456e5b31-b7ec-4e1c-bdfc-13bc10aa5eeb',
componentType: 'rectangle',
},
{
id: 'c0738fa5-7769-406e-aa08-7860fc392cd3',
componentType: 'circle',
},
{
id: '416b6286-e936-42fd-bce4-fe168216eeef',
componentType: 'rectangle',
},
],
},
}
/**
* @typedef {Object} componentInfo
* @property {object} metadata
* @property {number} width
* @property {number} height
* @property {text} fill
* @property {text} id
* @property {text} stroke
* @property {number} linewidth
* @property {text} fill
* @property {number} x
* @property {number} y
* @property {number} x1
* @property {number} x2
* @property {number} y1
* @property {number} y2
* @property {text} componentType
* @property {object} children
* @property {text} updatedBy
* @property {text} iconStroke
* @property {text} textColor
*/
/** @type {componentInfo} */
let componentInfo = {
metadata: {},
width: 120,
height: 120,
fill: '#0052CC',
id: null,
stroke: null,
linewidth: null,
x: 0,
y: 0,
x1: 100,
x2: 400,
y1: 100,
y2: 100,
componentType: '',
children: {},
updatedBy: null,
iconStroke: null,
textColor: null,
}