@operato/board 7.1.30 → 7.1.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/tsconfig.tsbuildinfo +1 -1
  3. package/package.json +14 -14
  4. package/.storybook/main.js +0 -3
  5. package/.storybook/server.mjs +0 -8
  6. package/demo/index-modeller.html +0 -112
  7. package/demo/index-player.html +0 -112
  8. package/demo/index-viewer.html +0 -112
  9. package/demo/index.html +0 -112
  10. package/src/component/3d.ts +0 -29
  11. package/src/component/chart-and-gauge.ts +0 -28
  12. package/src/component/container.ts +0 -63
  13. package/src/component/data-source.ts +0 -30
  14. package/src/component/etc.ts +0 -88
  15. package/src/component/form.ts +0 -42
  16. package/src/component/index.ts +0 -12
  17. package/src/component/iot.ts +0 -52
  18. package/src/component/line.ts +0 -156
  19. package/src/component/register-default-groups.ts +0 -28
  20. package/src/component/shape.ts +0 -156
  21. package/src/component/table.ts +0 -28
  22. package/src/component/text-and-media.ts +0 -125
  23. package/src/component/warehouse.ts +0 -26
  24. package/src/data-storage/data-storage.ts +0 -76
  25. package/src/graphql/board.ts +0 -144
  26. package/src/graphql/data-subscription.ts +0 -30
  27. package/src/graphql/favorite-board.ts +0 -25
  28. package/src/graphql/group.ts +0 -138
  29. package/src/graphql/index.ts +0 -4
  30. package/src/graphql/play-group.ts +0 -225
  31. package/src/graphql/scenario.ts +0 -79
  32. package/src/index.ts +0 -10
  33. package/src/modeller/component-toolbar/component-detail.ts +0 -52
  34. package/src/modeller/component-toolbar/component-menu.ts +0 -196
  35. package/src/modeller/component-toolbar/component-toolbar.ts +0 -196
  36. package/src/modeller/component-toolbar/mode-icons.ts +0 -88
  37. package/src/modeller/edit-toolbar-style.ts +0 -232
  38. package/src/modeller/edit-toolbar.ts +0 -587
  39. package/src/modeller/property-sidebar/abstract-property.ts +0 -69
  40. package/src/modeller/property-sidebar/data-binding/data-binding-mapper.ts +0 -475
  41. package/src/modeller/property-sidebar/data-binding/data-binding-value-map.ts +0 -19
  42. package/src/modeller/property-sidebar/data-binding/data-binding-value-range.ts +0 -19
  43. package/src/modeller/property-sidebar/data-binding/data-binding.ts +0 -480
  44. package/src/modeller/property-sidebar/effects/effects-shared-style.ts +0 -62
  45. package/src/modeller/property-sidebar/effects/effects.ts +0 -69
  46. package/src/modeller/property-sidebar/effects/property-animation.ts +0 -146
  47. package/src/modeller/property-sidebar/effects/property-animations.ts +0 -93
  48. package/src/modeller/property-sidebar/effects/property-event-hover.ts +0 -200
  49. package/src/modeller/property-sidebar/effects/property-event-tap.ts +0 -251
  50. package/src/modeller/property-sidebar/effects/property-event.ts +0 -73
  51. package/src/modeller/property-sidebar/effects/property-shadow.ts +0 -114
  52. package/src/modeller/property-sidebar/effects/value-converter.ts +0 -23
  53. package/src/modeller/property-sidebar/inspector/inspector.ts +0 -404
  54. package/src/modeller/property-sidebar/property-shared-style.ts +0 -136
  55. package/src/modeller/property-sidebar/property-sidebar.ts +0 -326
  56. package/src/modeller/property-sidebar/shapes/box-padding-editor-styles.ts +0 -94
  57. package/src/modeller/property-sidebar/shapes/shapes.ts +0 -432
  58. package/src/modeller/property-sidebar/specifics/specific-properties-builder.ts +0 -152
  59. package/src/modeller/property-sidebar/specifics/specifics.ts +0 -81
  60. package/src/modeller/property-sidebar/styles/styles.ts +0 -577
  61. package/src/modeller/scene-viewer/confidential-overlay.ts +0 -18
  62. package/src/modeller/scene-viewer/ox-scene-handler.ts +0 -40
  63. package/src/modeller/scene-viewer/ox-scene-layer.ts +0 -42
  64. package/src/modeller/scene-viewer/ox-scene-property.ts +0 -10
  65. package/src/modeller/scene-viewer/ox-scene-viewer.ts +0 -263
  66. package/src/ox-board-component-info.ts +0 -236
  67. package/src/ox-board-list.ts +0 -401
  68. package/src/ox-board-modeller.ts +0 -408
  69. package/src/ox-board-player-style.ts +0 -200
  70. package/src/ox-board-player.ts +0 -333
  71. package/src/ox-board-template-list.ts +0 -267
  72. package/src/ox-board-template-viewer.ts +0 -198
  73. package/src/ox-board-viewer.ts +0 -727
  74. package/src/ox-editor-board-selector.ts +0 -91
  75. package/src/ox-property-editor-board-selector.ts +0 -23
  76. package/src/player/ox-board-player-carousel.ts +0 -197
  77. package/src/player/ox-board-player-grid.ts +0 -78
  78. package/src/player/ox-board-wrapper.ts +0 -152
  79. package/src/selector/board-creation-popup.ts +0 -151
  80. package/src/selector/board-thumbnail-card.ts +0 -175
  81. package/src/selector/ox-board-creation-card.ts +0 -98
  82. package/src/selector/ox-board-selector.ts +0 -382
  83. package/src/types.ts +0 -63
  84. package/stories/property-data-binding.stories.ts +0 -34
  85. package/tsconfig.json +0 -24
  86. package/web-dev-server.config.mjs +0 -30
  87. package/web-test-runner.config.mjs +0 -29
@@ -1,88 +0,0 @@
1
- import { ComponentGroup } from '../types'
2
-
3
- const globalReference = new URL('../../../icons/components/global-reference.png', import.meta.url).href
4
- const infoWindow = new URL('../../../icons/components/info-window.png', import.meta.url).href
5
- const localReference = new URL('../../../icons/components/local-reference.png', import.meta.url).href
6
-
7
- const icon = `
8
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
9
- <style type="text/css">
10
- .st0{fill:{{strokeColor}};}
11
- </style>
12
- <g>
13
- <circle class="st0" cx="7.1" cy="15" r="2"/>
14
- <circle class="st0" cx="15" cy="15" r="2"/>
15
- <circle class="st0" cx="22.9" cy="15" r="2"/>
16
- </g>
17
- </svg>
18
- `
19
-
20
- export const etc: ComponentGroup = {
21
- name: 'etc',
22
- description: 'a group of components that have not yet been defined.',
23
- icon,
24
- templates: [
25
- {
26
- type: 'info-window',
27
- description: 'information window',
28
- icon: infoWindow,
29
- group: 'etc',
30
- model: {
31
- type: 'info-window',
32
- left: 10,
33
- top: 10,
34
- width: 50,
35
- height: 50,
36
- fillStyle: '#fff',
37
- strokeStyle: 'DarkGoldenRod',
38
- hidden: true,
39
- frontSideTemplate:
40
- "<h2 id='xxx'>\n\t<%= text %>\n</h2>\n<img src='https://www.tutorialspoint.com/images/html.gif' alt='HTML Tutorial' height='150' width='140' />",
41
- backSideTemplate:
42
- "<h2 id='yyy'>\n\t<%= text %>\n</h2>\n<img src='https://www.tutorialspoint.com/images/html.gif' alt='HTML Tutorial' height='150' width='140' />",
43
- style:
44
- '#yyy {\n\tbackground-color:navy;\n\tcolor:white\n}\n#xxx, #yyy {\n\twhite-space:nowrap;\n\tmin-width:200px;\n}'
45
- }
46
- },
47
- {
48
- type: 'local-ref',
49
- description: 'local reference',
50
- icon: localReference,
51
- group: 'etc',
52
- model: {
53
- type: 'local-ref',
54
- left: 100,
55
- top: 100,
56
- width: 100,
57
- height: 100,
58
- fillStyle: '#fff',
59
- strokeStyle: '#000',
60
- alpha: 1,
61
- hidden: false,
62
- lineWidth: 1,
63
- lineDash: 'solid',
64
- lineCap: 'butt'
65
- }
66
- },
67
- {
68
- type: 'global-ref',
69
- description: 'global reference',
70
- icon: globalReference,
71
- group: 'etc',
72
- model: {
73
- type: 'global-ref',
74
- left: 100,
75
- top: 100,
76
- width: 100,
77
- height: 100,
78
- fillStyle: '#fff',
79
- strokeStyle: '#000',
80
- alpha: 1,
81
- hidden: false,
82
- lineWidth: 1,
83
- lineDash: 'solid',
84
- lineCap: 'butt'
85
- }
86
- }
87
- ]
88
- }
@@ -1,42 +0,0 @@
1
- import { ComponentGroup } from '../types'
2
-
3
- const icon = `
4
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <style type="text/css">
6
- .st0{fill:{{strokeColor}};}
7
- .st7{fill:none;stroke:{{strokeColor}};stroke-width:1.5;stroke-miterlimit:10;}
8
- .st9{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
9
- </style>
10
- <g>
11
- <rect x="3.1" y="5.5" class="st7" width="23.9" height="19"/>
12
- <rect x="11.3" y="8.3" class="st9" width="12.5" height="3.3"/>
13
- <rect x="5.5" y="8.8" class="st0" width="4.1" height="2.2"/>
14
- <rect x="5.5" y="14.5" class="st0" width="4.1" height="2.2"/>
15
- <rect x="10.7" y="19.4" class="st0" width="6.5" height="2.2"/>
16
- <rect x="17.8" y="19.4" class="st0" width="6.3" height="2.2"/>
17
- <rect x="11.3" y="13.8" class="st9" width="12.5" height="3.3"/>
18
- <path class="st0" d="M15,14.7c0,0.1,0,0.3-0.1,0.5l0,0.2l0.2-0.1c0.3-0.2,0.5-0.3,0.6-0.3c0.1,0,0.3,0.1,0.3,0.3
19
- c0,0.2-0.3,0.3-0.7,0.3l-0.2,0l0.1,0.1c0.3,0.2,0.5,0.4,0.5,0.5c0,0.1-0.1,0.2-0.3,0.2c-0.2,0-0.3-0.2-0.5-0.6l-0.1-0.2l-0.1,0.2
20
- c-0.2,0.4-0.3,0.6-0.5,0.6c-0.2,0-0.3-0.1-0.3-0.2c0-0.2,0.2-0.3,0.5-0.5l0.1-0.1l-0.2,0c-0.5,0-0.7-0.1-0.7-0.3
21
- c0-0.2,0.1-0.3,0.3-0.3c0.2,0,0.3,0.1,0.6,0.3l0.2,0.1l0-0.2c-0.1-0.2-0.1-0.4-0.1-0.5c0-0.2,0.1-0.3,0.3-0.3
22
- C14.9,14.4,15,14.5,15,14.7z"/>
23
- <path class="st0" d="M17.5,14.7c0,0.1,0,0.3-0.1,0.5l0,0.2l0.2-0.1c0.3-0.2,0.5-0.3,0.6-0.3c0.1,0,0.3,0.1,0.3,0.3
24
- c0,0.2-0.3,0.3-0.7,0.3l-0.2,0l0.1,0.1c0.3,0.2,0.5,0.4,0.5,0.5c0,0.1-0.1,0.2-0.3,0.2c-0.2,0-0.3-0.2-0.5-0.6l-0.1-0.2l-0.1,0.2
25
- c-0.2,0.4-0.3,0.6-0.5,0.6c-0.2,0-0.3-0.1-0.3-0.2c0-0.2,0.2-0.3,0.5-0.5l0.1-0.1l-0.2,0c-0.5,0-0.7-0.1-0.7-0.3
26
- c0-0.2,0.1-0.3,0.3-0.3c0.2,0,0.3,0.1,0.6,0.3l0.2,0.1l0-0.2c-0.1-0.2-0.1-0.4-0.1-0.5c0-0.2,0.1-0.3,0.3-0.3
27
- C17.4,14.4,17.5,14.5,17.5,14.7z"/>
28
- <path class="st0" d="M19.9,14.7c0,0.1,0,0.3-0.1,0.5l0,0.2l0.2-0.1c0.3-0.2,0.5-0.3,0.6-0.3c0.1,0,0.3,0.1,0.3,0.3
29
- c0,0.2-0.3,0.3-0.7,0.3l-0.2,0l0.1,0.1c0.3,0.2,0.5,0.4,0.5,0.5c0,0.1-0.1,0.2-0.3,0.2c-0.2,0-0.3-0.2-0.5-0.6l-0.1-0.2l-0.1,0.2
30
- c-0.2,0.4-0.3,0.6-0.5,0.6c-0.2,0-0.3-0.1-0.3-0.2c0-0.2,0.2-0.3,0.5-0.5l0.1-0.1l-0.2,0c-0.5,0-0.7-0.1-0.7-0.3
31
- c0-0.2,0.1-0.3,0.3-0.3c0.2,0,0.3,0.1,0.6,0.3l0.2,0.1l0-0.2c-0.1-0.2-0.1-0.4-0.1-0.5c0-0.2,0.1-0.3,0.3-0.3
32
- C19.8,14.4,19.9,14.5,19.9,14.7z"/>
33
- </g>
34
- </svg>
35
- `
36
-
37
- export const form: ComponentGroup = {
38
- name: 'form',
39
- description: 'a group of various input components that make up a data entry form',
40
- icon,
41
- templates: []
42
- }
@@ -1,12 +0,0 @@
1
- export * from './shape'
2
- export * from './line'
3
- export * from './text-and-media'
4
- export * from './chart-and-gauge'
5
- export * from './table'
6
- export * from './data-source'
7
- export * from './3d'
8
- export * from './iot'
9
- export * from './form'
10
- export * from './warehouse'
11
- export * from './container'
12
- export * from './etc'
@@ -1,52 +0,0 @@
1
- import { ComponentGroup } from '../types'
2
-
3
- const icon = `
4
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <style type="text/css">
6
- .st9{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
7
- .st12{fill:#232020;stroke:{{strokeColor}};stroke-width:0.5;stroke-miterlimit:10;}
8
- .st13{fill:#232020;stroke:{{strokeColor}};stroke-width:0.25;stroke-miterlimit:10;}
9
- </style>
10
- <g>
11
- <path class="st12" d="M11.2,14.6c0,0-0.1,0.1-0.1,0.1c-0.1,0-0.2-0.1-0.2-0.2c0-0.9,0.3-1.8,1-2.5c0.6-0.7,1.5-1.1,2.4-1.2
12
- c0.1,0,0.2,0.1,0.2,0.2c0,0.1-0.1,0.2-0.2,0.2c-0.8,0.1-1.6,0.5-2.2,1.1c-0.6,0.6-0.9,1.5-0.9,2.3C11.2,14.5,11.2,14.6,11.2,14.6z"
13
- />
14
- <path class="st12" d="M8.8,14.7c0,0-0.1,0.1-0.1,0.1c-0.1,0-0.2-0.1-0.2-0.2c0-1.5,0.6-3,1.6-4.2c1-1.1,2.5-1.9,4-2
15
- c0.1,0,0.2,0.1,0.2,0.2c0,0.1-0.1,0.2-0.2,0.2c-1.4,0.1-2.8,0.8-3.8,1.9c-1,1.1-1.5,2.5-1.5,3.9C8.9,14.6,8.9,14.6,8.8,14.7z"/>
16
- <path class="st12" d="M18.6,15.2c0,0,0.1-0.1,0.1-0.1c0.1,0,0.2,0.1,0.2,0.2c-0.1,0.9-0.5,1.8-1.1,2.5c-0.7,0.7-1.6,1-2.5,1.1
17
- c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0.1-0.2,0.2-0.2c0.8,0,1.6-0.4,2.3-1c0.6-0.6,1-1.4,1-2.2C18.5,15.2,18.5,15.2,18.6,15.2z"/>
18
- <path class="st12" d="M20.9,15.3c0,0,0.1-0.1,0.1-0.1c0.1,0,0.2,0.1,0.2,0.2c-0.1,1.5-0.8,3-1.9,4.1c-1.1,1.1-2.6,1.7-4.1,1.7
19
- c-0.1,0-0.2-0.1-0.2-0.2c0-0.1,0.1-0.2,0.2-0.2c1.4,0,2.8-0.6,3.9-1.6c1.1-1,1.7-2.4,1.8-3.8C20.9,15.3,20.9,15.3,20.9,15.3z"/>
20
- <path class="st13" d="M8.8,6.7C7.9,6.7,7.2,6,7.2,5c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7C10.5,6,9.8,6.7,8.8,6.7z M8.8,3.9
21
- C8.2,3.9,7.7,4.4,7.7,5c0,0.6,0.5,1.2,1.2,1.2C9.5,6.2,10,5.7,10,5C10,4.4,9.5,3.9,8.8,3.9z"/>
22
- <path class="st13" d="M20.9,6.7C20,6.7,19.3,6,19.3,5c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7C22.6,6,21.8,6.7,20.9,6.7z
23
- M20.9,3.9c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2C22.1,4.4,21.6,3.9,20.9,3.9z"/>
24
- <path class="st13" d="M14.9,16.5c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7
25
- C16.6,15.7,15.9,16.5,14.9,16.5z M14.9,13.6c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2
26
- C16.1,14.2,15.6,13.6,14.9,13.6z"/>
27
- <path class="st13" d="M8.8,26.6c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7C10.5,25.9,9.8,26.6,8.8,26.6z
28
- M8.8,23.8c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2C10,24.3,9.5,23.8,8.8,23.8z"/>
29
- <path class="st13" d="M20.9,26.6c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7
30
- C22.6,25.9,21.8,26.6,20.9,26.6z M20.9,23.8c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2
31
- C22.1,24.3,21.6,23.8,20.9,23.8z"/>
32
- <path class="st13" d="M3.1,16.6c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7C4.7,15.9,4,16.6,3.1,16.6z
33
- M3.1,13.8c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2C4.2,14.3,3.7,13.8,3.1,13.8z"/>
34
- <path class="st13" d="M26.9,16.6c-0.9,0-1.6-0.7-1.6-1.6c0-0.9,0.7-1.7,1.6-1.7c0.9,0,1.7,0.7,1.7,1.7
35
- C28.6,15.9,27.8,16.6,26.9,16.6z M26.9,13.8c-0.6,0-1.2,0.5-1.2,1.2c0,0.6,0.5,1.2,1.2,1.2c0.6,0,1.2-0.5,1.2-1.2
36
- C28.1,14.3,27.6,13.8,26.9,13.8z"/>
37
- <line class="st9" x1="10.2" y1="4.9" x2="18.2" y2="4.9"/>
38
- <line class="st9" x1="22" y1="6.2" x2="26.1" y2="12.3"/>
39
- <line class="st9" x1="4" y1="17.7" x2="7.7" y2="24"/>
40
- <line class="st9" x1="23" y1="22.7" x2="26.8" y2="16.4"/>
41
- <line class="st9" x1="3.7" y1="13.5" x2="7.5" y2="7.2"/>
42
- <line class="st9" x1="11.7" y1="25.1" x2="19.7" y2="25.1"/>
43
- </g>
44
- </svg>
45
- `
46
-
47
- export const iot: ComponentGroup = {
48
- name: 'IoT',
49
- description: 'a group of various IoT protocols',
50
- icon,
51
- templates: []
52
- }
@@ -1,156 +0,0 @@
1
- import { ComponentGroup } from '../types'
2
-
3
- const bothArrow = new URL('../../../icons/components/both-arrow.png', import.meta.url).href
4
- const dash = new URL('../../../icons/components/dash.png', import.meta.url).href
5
- const lineIcon = new URL('../../../icons/components/line.png', import.meta.url).href
6
- const polyline = new URL('../../../icons/components/polyline.png', import.meta.url).href
7
- const singleArrow = new URL('../../../icons/components/single-arrow.png', import.meta.url).href
8
- const ortholine = new URL('../../../icons/components/ortholine.png', import.meta.url).href
9
-
10
- const icon = `
11
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
12
- <style type="text/css">
13
- .st3{fill:none;stroke:{{strokeColor}};stroke-width:2;stroke-linecap:round;stroke-miterlimit:10;}
14
- .st4{fill:none;stroke:{{strokeColor}};stroke-width:1.5;stroke-miterlimit:10;stroke-dasharray:3,1.5;}
15
- </style>
16
- <g>
17
- <line class="st3" x1="1.7" y1="18.9" x2="26.3" y2="6.2"/>
18
- <line class="st4" x1="1.7" y1="23.8" x2="28.3" y2="10.1"/>
19
- </g>
20
- </svg>
21
- `
22
-
23
- export const line: ComponentGroup = {
24
- name: 'line',
25
- description: 'a group of various lines',
26
- icon,
27
- templates: [
28
- {
29
- type: 'line',
30
- description: 'simple line',
31
- icon: lineIcon,
32
- group: 'line',
33
- model: {
34
- type: 'line',
35
- x1: 100,
36
- y1: 100,
37
- x2: 200,
38
- y2: 200,
39
- fillStyle: '#fff',
40
- strokeStyle: '#000',
41
- alpha: 1,
42
- hidden: false,
43
- lineWidth: 3,
44
- lineDash: 'solid',
45
- lineCap: 'butt'
46
- }
47
- },
48
- {
49
- type: 'dash',
50
- description: 'dash line',
51
- icon: dash,
52
- group: 'line',
53
- model: {
54
- type: 'line',
55
- x1: 100,
56
- y1: 100,
57
- x2: 200,
58
- y2: 200,
59
- fillStyle: '#fff',
60
- strokeStyle: '#000',
61
- alpha: 1,
62
- hidden: false,
63
- lineWidth: 3,
64
- lineDash: 'round-dot',
65
- lineCap: 'butt'
66
- }
67
- },
68
- {
69
- type: 'single arrow',
70
- description: 'single arrow tip line',
71
- icon: singleArrow,
72
- group: 'line',
73
- model: {
74
- type: 'line',
75
- x1: 100,
76
- y1: 100,
77
- x2: 200,
78
- y2: 200,
79
- fillStyle: '#fff',
80
- strokeStyle: '#000',
81
- alpha: 3,
82
- hidden: false,
83
- lineWidth: 3,
84
- lineDash: 'solid',
85
- begin: 'arrow',
86
- lineCap: 'butt'
87
- }
88
- },
89
- {
90
- type: 'both arrow',
91
- description: 'both arrow tip line',
92
- icon: bothArrow,
93
- group: 'line',
94
- model: {
95
- type: 'line',
96
- x1: 100,
97
- y1: 100,
98
- x2: 200,
99
- y2: 200,
100
- fillStyle: '#fff',
101
- strokeStyle: '#000',
102
- alpha: 1,
103
- hidden: false,
104
- lineWidth: 3,
105
- lineDash: 'solid',
106
- begin: 'arrow',
107
- end: 'arrow',
108
- lineCap: 'butt'
109
- }
110
- },
111
- {
112
- type: 'polyline',
113
- description: 'polyline',
114
- icon: polyline,
115
- group: 'line',
116
- model: {
117
- type: 'polyline',
118
- path: [
119
- { x: 100, y: 100 },
120
- { x: 200, y: 100 },
121
- { x: 200, y: 200 },
122
- { x: 100, y: 200 }
123
- ],
124
- fillStyle: '#fff',
125
- strokeStyle: '#000',
126
- alpha: 1,
127
- hidden: false,
128
- lineWidth: 1,
129
- lineDash: 'solid',
130
- lineCap: 'butt',
131
- round: 10
132
- }
133
- },
134
- {
135
- type: 'ortholine',
136
- description: 'ortholine',
137
- icon: ortholine,
138
- group: 'line',
139
- model: {
140
- type: 'ortholine',
141
- x1: 100,
142
- y1: 100,
143
- x2: 200,
144
- y2: 200,
145
- fillStyle: '#fff',
146
- strokeStyle: '#000',
147
- alpha: 1,
148
- hidden: false,
149
- lineWidth: 1,
150
- lineDash: 'solid',
151
- lineCap: 'butt',
152
- round: 10
153
- }
154
- }
155
- ]
156
- }
@@ -1,28 +0,0 @@
1
- import { BoardModeller } from '../ox-board-modeller'
2
- import { chartAndGauge } from './chart-and-gauge'
3
- import { container } from './container'
4
- import { dataSource } from './data-source'
5
- import { etc } from './etc'
6
- import { form } from './form'
7
- import { iot } from './iot'
8
- import { line } from './line'
9
- import { shape } from './shape'
10
- import { table } from './table'
11
- import { textAndMedia } from './text-and-media'
12
- import { threed } from './3d'
13
- import { warehouse } from './warehouse'
14
-
15
- export function registerDefaultGroups() {
16
- BoardModeller.registerGroup(line)
17
- BoardModeller.registerGroup(shape)
18
- BoardModeller.registerGroup(textAndMedia)
19
- BoardModeller.registerGroup(chartAndGauge)
20
- BoardModeller.registerGroup(table)
21
- BoardModeller.registerGroup(container)
22
- BoardModeller.registerGroup(dataSource)
23
- BoardModeller.registerGroup(iot)
24
- BoardModeller.registerGroup(threed)
25
- BoardModeller.registerGroup(warehouse)
26
- BoardModeller.registerGroup(form)
27
- BoardModeller.registerGroup(etc)
28
- }
@@ -1,156 +0,0 @@
1
- import { ComponentGroup } from '../types'
2
-
3
- const donut = new URL('../../../icons/components/donut.png', import.meta.url).href
4
- const ellipse = new URL('../../../icons/components/ellipse.png', import.meta.url).href
5
- const polygon = new URL('../../../icons/components/polygon.png', import.meta.url).href
6
- const rect = new URL('../../../icons/components/rect.png', import.meta.url).href
7
- const star = new URL('../../../icons/components/star.png', import.meta.url).href
8
- const triangle = new URL('../../../icons/components/triangle.png', import.meta.url).href
9
-
10
- const icon = `
11
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
12
- <style type="text/css">
13
- .st0{fill:none;stroke:{{strokeColor}};stroke-width:2;stroke-miterlimit:10;}
14
- </style>
15
- <g>
16
- <polyline class="st0" points="21.6,9.4 21.6,4.6 1.6,4.6 1.6,17.7 12.5,17.7 "/>
17
- <circle class="st0" cx="21.3" cy="18.3" r="7"/>
18
- </g>
19
- </svg>
20
- `
21
-
22
- export const shape: ComponentGroup = {
23
- name: 'shape',
24
- description: 'a group of simple basic shapes',
25
- icon,
26
- templates: [
27
- {
28
- type: 'rect',
29
- description: 'rectangle shape',
30
- icon: rect,
31
- group: 'shape',
32
- model: {
33
- type: 'rect',
34
- left: 100,
35
- top: 100,
36
- width: 100,
37
- height: 100,
38
- fillStyle: '#fff',
39
- strokeStyle: '#000',
40
- alpha: 1,
41
- hidden: false,
42
- lineWidth: 1,
43
- lineDash: 'solid',
44
- lineCap: 'butt'
45
- }
46
- },
47
- {
48
- type: 'ellipse',
49
- description: 'ellipse shape',
50
- icon: ellipse,
51
- group: 'shape',
52
- model: {
53
- type: 'ellipse',
54
- rx: 50,
55
- ry: 50,
56
- cx: 150,
57
- cy: 150,
58
- fillStyle: '#fff',
59
- strokeStyle: '#000',
60
- alpha: 1,
61
- hidden: false,
62
- lineWidth: 1,
63
- lineDash: 'solid',
64
- lineCap: 'butt'
65
- }
66
- },
67
- {
68
- type: 'donut',
69
- description: 'donut shape',
70
- icon: donut,
71
- group: 'shape',
72
- model: {
73
- type: 'donut',
74
- rx: 50,
75
- ry: 50,
76
- cx: 150,
77
- cy: 150,
78
- ratio: 30,
79
- fillStyle: '#fff',
80
- strokeStyle: '#000',
81
- alpha: 1,
82
- hidden: false,
83
- lineWidth: 1,
84
- lineDash: 'solid',
85
- lineCap: 'butt'
86
- }
87
- },
88
- {
89
- type: 'triangle',
90
- description: 'triangle shape',
91
- icon: triangle,
92
- group: 'shape',
93
- model: {
94
- type: 'triangle',
95
- x1: 150,
96
- y1: 100,
97
- x2: 100,
98
- y2: 200,
99
- x3: 200,
100
- y3: 200,
101
- fillStyle: '#fff',
102
- strokeStyle: '#000',
103
- alpha: 1,
104
- hidden: false,
105
- lineWidth: 1,
106
- lineDash: 'solid',
107
- lineCap: 'butt'
108
- }
109
- },
110
- {
111
- type: 'polygon',
112
- description: 'polygon shape',
113
- icon: polygon,
114
- group: 'shape',
115
- model: {
116
- type: 'polygon',
117
- path: [
118
- { x: 100, y: 100 },
119
- { x: 200, y: 100 },
120
- { x: 200, y: 200 },
121
- { x: 100, y: 200 }
122
- ],
123
- fillStyle: '#fff',
124
- strokeStyle: '#000',
125
- alpha: 1,
126
- hidden: false,
127
- lineWidth: 1,
128
- lineDash: 'solid',
129
- lineCap: 'butt',
130
- round: 10
131
- }
132
- },
133
- {
134
- type: 'star',
135
- description: 'star shape',
136
- icon: star,
137
- group: 'shape',
138
- model: {
139
- type: 'star',
140
- rx: 50,
141
- ry: 50,
142
- cx: 150,
143
- cy: 150,
144
- ratio: 30,
145
- wing: 5,
146
- fillStyle: '#fff',
147
- strokeStyle: '#000',
148
- alpha: 1,
149
- hidden: false,
150
- lineWidth: 1,
151
- lineDash: 'solid',
152
- lineCap: 'butt'
153
- }
154
- }
155
- ]
156
- }
@@ -1,28 +0,0 @@
1
- import { ComponentGroup } from '../types'
2
-
3
- const icon = `
4
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
5
- <style type="text/css">
6
- .st5{fill:none;stroke:{{strokeColor}};stroke-width:2;stroke-miterlimit:10;}
7
- .st9{fill:none;stroke:{{strokeColor}};stroke-miterlimit:10;}
8
- .st10{fill:none;stroke:{{strokeColor}};stroke-width:0.5;stroke-miterlimit:10;}
9
- </style>
10
- <g>
11
- <rect x="2.4" y="6" class="st9" width="25.2" height="18"/>
12
- <rect x="11" y="12.5" transform="matrix(-1.742238e-05 1 -1 -1.742238e-05 35.0187 -4.9804)" class="st10" width="17.9" height="5.1"/>
13
- <rect x="5.9" y="12.5" transform="matrix(-1.742238e-05 1 -1 -1.742238e-05 29.8973 0.1408)" class="st10" width="17.9" height="5.1"/>
14
- <line class="st5" x1="2" y1="7.5" x2="28" y2="7.5"/>
15
- <line class="st10" x1="2" y1="11.6" x2="28" y2="11.6"/>
16
- <line class="st10" x1="2" y1="14.8" x2="28" y2="14.8"/>
17
- <line class="st10" x1="2" y1="18.1" x2="28" y2="18.1"/>
18
- <line class="st10" x1="2" y1="21.3" x2="28" y2="21.3"/>
19
- </g>
20
- </svg>
21
- `
22
-
23
- export const table: ComponentGroup = {
24
- name: 'table',
25
- description: 'a group of various tables',
26
- icon,
27
- templates: []
28
- }