@jnrs/lingshu-smart 2.2.8 → 2.2.9

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 (176) hide show
  1. package/dist/App.vue.d.ts +1 -2
  2. package/dist/assets/data/editor_default_setting.d.ts +1 -8
  3. package/dist/assets/data/editor_preset_menu.d.ts +1 -8
  4. package/dist/components/editor/ControlBar/CaseManger.vue.d.ts +15 -3
  5. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.d.ts +411 -2
  6. package/dist/components/editor/ControlBar/ExportImportDialog.vue.d.ts +2 -3
  7. package/dist/components/editor/ControlBar/MainButton.vue.d.ts +2 -3
  8. package/dist/components/editor/ControlBar/StepButton.vue.d.ts +1 -2
  9. package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.d.ts +1 -2
  10. package/dist/components/editor/DrawingBoard.vue.d.ts +1 -2
  11. package/dist/components/editor/MenuCard/Equipments.vue.d.ts +1 -2
  12. package/dist/components/editor/MenuCard/Layers.vue.d.ts +1 -2
  13. package/dist/components/editor/MenuCard/index.vue.d.ts +1 -2
  14. package/dist/components/editor/OptionCard/Equipment/Base.vue.d.ts +1 -2
  15. package/dist/components/editor/OptionCard/Equipment/DataSets.vue.d.ts +1 -2
  16. package/dist/components/editor/OptionCard/Equipment/Interaction.vue.d.ts +1 -2
  17. package/dist/components/editor/OptionCard/Equipment/Position.vue.d.ts +1 -2
  18. package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.d.ts +1 -2
  19. package/dist/components/editor/OptionCard/Equipment/index.vue.d.ts +1 -2
  20. package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.d.ts +1 -2
  21. package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.d.ts +1 -2
  22. package/dist/components/editor/OptionCard/Equipment/models/SingleJointRobot.vue.d.ts +2 -0
  23. package/dist/components/editor/OptionCard/Scene/Background.vue.d.ts +1 -2
  24. package/dist/components/editor/OptionCard/Scene/index.vue.d.ts +1 -2
  25. package/dist/components/editor/OptionCard/index.vue.d.ts +1 -2
  26. package/dist/components/editor/index.vue.d.ts +13 -4
  27. package/dist/components/index.d.ts +2 -2
  28. package/dist/components/index.js +27281 -4
  29. package/dist/components/preview/index.vue.d.ts +5 -6
  30. package/dist/composables/useStepRecord.d.ts +4 -12
  31. package/dist/constants/options.d.ts +1 -8
  32. package/dist/controller/AppController.d.ts +3 -10
  33. package/dist/controller/EditorController.d.ts +2 -9
  34. package/dist/index.js +1 -1
  35. package/dist/json/cases.json +577 -20
  36. package/dist/locales/i18next.d.ts +1 -1
  37. package/dist/locales/index.d.ts +2 -2
  38. package/dist/locales/index.js +13 -3
  39. package/dist/main.d.ts +0 -3
  40. package/dist/playground/EditPageDemo.vue.d.ts +1 -2
  41. package/dist/playground/ViewPageDemo.vue.d.ts +27 -2
  42. package/dist/stores/useAppStore.d.ts +5 -12
  43. package/dist/stores/useDataStore.d.ts +11 -18
  44. package/dist/stores/useEditorStore.d.ts +20 -27
  45. package/dist/types/app.types.d.ts +1 -1
  46. package/dist/types/base.types.d.ts +1 -1
  47. package/dist/types/components/config.types.d.ts +1 -1
  48. package/dist/types/components/operating.types.d.ts +1 -1
  49. package/dist/types/enums.d.ts +1 -1
  50. package/dist/types/guards.d.ts +5 -12
  51. package/dist/types/index.d.ts +2 -2
  52. package/dist/types/models/config.types.d.ts +49 -47
  53. package/dist/types/models/operating.types.d.ts +53 -53
  54. package/dist/ui/abstract/ComponentAbs.d.ts +2 -9
  55. package/dist/ui/abstract/ModelAbs.d.ts +2 -10
  56. package/dist/ui/components/Entrance.d.ts +1 -8
  57. package/dist/ui/components/Light.d.ts +1 -8
  58. package/dist/ui/components/Progress.d.ts +1 -8
  59. package/dist/ui/components/Resource.d.ts +1 -8
  60. package/dist/ui/components/StationSlot.d.ts +1 -23
  61. package/dist/ui/components/StationSlotGroup.d.ts +1 -8
  62. package/dist/ui/factories/createGlass.d.ts +0 -6
  63. package/dist/ui/factories/createModel.d.ts +2 -9
  64. package/dist/ui/factories/createShadow.d.ts +1 -9
  65. package/dist/ui/factories/createText.d.ts +0 -7
  66. package/dist/ui/models/CleaningMachine.d.ts +1 -1
  67. package/dist/ui/models/DoubleJointRobot.d.ts +19 -20
  68. package/dist/ui/models/LoadingStation.d.ts +1 -1
  69. package/dist/ui/models/MachineTool.d.ts +1 -1
  70. package/dist/ui/models/MarkingMachine.d.ts +1 -1
  71. package/dist/ui/models/Rail.d.ts +1 -1
  72. package/dist/ui/models/ResourceStore.d.ts +1 -1
  73. package/dist/ui/models/SingleJointRobot.d.ts +3 -3
  74. package/dist/ui/shapes/NamePlate.d.ts +0 -7
  75. package/dist/ui/shapes/ScrewHole.d.ts +0 -7
  76. package/dist/ui/shapes/Texture.d.ts +1 -8
  77. package/dist/ui/utils/attr.d.ts +2 -9
  78. package/dist/utils/type-guards.d.ts +1 -1
  79. package/package.json +3 -3
  80. package/dist/App.vue.js +0 -30
  81. package/dist/assets/data/editor_default.d.ts +0 -16
  82. package/dist/assets/data/editor_default.js +0 -59
  83. package/dist/assets/data/editor_default_setting.js +0 -58
  84. package/dist/assets/data/editor_preset.d.ts +0 -9
  85. package/dist/assets/data/editor_preset.js +0 -51
  86. package/dist/assets/data/editor_preset_menu.js +0 -290
  87. package/dist/components/editor/ControlBar/CaseManger.vue.js +0 -465
  88. package/dist/components/editor/ControlBar/CaseTitleEdit.vue.js +0 -108
  89. package/dist/components/editor/ControlBar/ExportImportDialog.vue.js +0 -280
  90. package/dist/components/editor/ControlBar/MainButton.vue.js +0 -183
  91. package/dist/components/editor/ControlBar/StepButton.vue.js +0 -147
  92. package/dist/components/editor/ControlBar/StepRecordVisualizer.vue.js +0 -98
  93. package/dist/components/editor/DrawingBoard.vue.js +0 -31
  94. package/dist/components/editor/MenuCard/Equipments.vue.js +0 -129
  95. package/dist/components/editor/MenuCard/Layers.vue.js +0 -201
  96. package/dist/components/editor/MenuCard/index.vue.js +0 -84
  97. package/dist/components/editor/OptionCard/Equipment/Base.vue.js +0 -96
  98. package/dist/components/editor/OptionCard/Equipment/Binds.vue.d.ts +0 -3
  99. package/dist/components/editor/OptionCard/Equipment/Binds.vue.js +0 -443
  100. package/dist/components/editor/OptionCard/Equipment/Bot.vue.d.ts +0 -3
  101. package/dist/components/editor/OptionCard/Equipment/Bot.vue.js +0 -81
  102. package/dist/components/editor/OptionCard/Equipment/DataSets.vue.js +0 -304
  103. package/dist/components/editor/OptionCard/Equipment/DockStore.vue.d.ts +0 -3
  104. package/dist/components/editor/OptionCard/Equipment/DockStore.vue.js +0 -597
  105. package/dist/components/editor/OptionCard/Equipment/Interaction.vue.js +0 -287
  106. package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.d.ts +0 -3
  107. package/dist/components/editor/OptionCard/Equipment/Position.backup.vue.js +0 -440
  108. package/dist/components/editor/OptionCard/Equipment/Position.vue.js +0 -436
  109. package/dist/components/editor/OptionCard/Equipment/StationSlotGroup.vue.js +0 -1131
  110. package/dist/components/editor/OptionCard/Equipment/Store.vue.d.ts +0 -3
  111. package/dist/components/editor/OptionCard/Equipment/Store.vue.js +0 -453
  112. package/dist/components/editor/OptionCard/Equipment/Trailer.vue.d.ts +0 -3
  113. package/dist/components/editor/OptionCard/Equipment/Trailer.vue.js +0 -1109
  114. package/dist/components/editor/OptionCard/Equipment/index.vue.js +0 -100
  115. package/dist/components/editor/OptionCard/Equipment/models/MachineTool.vue.js +0 -99
  116. package/dist/components/editor/OptionCard/Equipment/models/Rail.vue.js +0 -225
  117. package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.d.ts +0 -3
  118. package/dist/components/editor/OptionCard/Equipment/models/SingleGripperRobot.vue.js +0 -99
  119. package/dist/components/editor/OptionCard/Scene/Background.vue.js +0 -543
  120. package/dist/components/editor/OptionCard/Scene/index.vue.js +0 -200
  121. package/dist/components/editor/OptionCard/index.vue.js +0 -73
  122. package/dist/components/editor/index.vue.js +0 -156
  123. package/dist/components/preview/index.vue.js +0 -104
  124. package/dist/composables/useStepRecord.js +0 -135
  125. package/dist/constants/options.js +0 -55
  126. package/dist/controller/AppController.js +0 -168
  127. package/dist/controller/EditorController.js +0 -173
  128. package/dist/locales/en.js +0 -5
  129. package/dist/locales/i18next.js +0 -6
  130. package/dist/locales/zhCn.js +0 -5
  131. package/dist/main.js +0 -13
  132. package/dist/playground/EditPageDemo.vue.js +0 -57
  133. package/dist/playground/ViewPageDemo.vue.js +0 -277
  134. package/dist/stores/index.js +0 -3
  135. package/dist/stores/useAppStore.js +0 -78
  136. package/dist/stores/useDataStore.js +0 -116
  137. package/dist/stores/useEditorStore.js +0 -263
  138. package/dist/types/app.types.js +0 -2
  139. package/dist/types/base.types.js +0 -1
  140. package/dist/types/components/config.types.js +0 -1
  141. package/dist/types/components/operating.types.js +0 -1
  142. package/dist/types/enums.js +0 -46
  143. package/dist/types/guards.js +0 -28
  144. package/dist/types/index.js +0 -8
  145. package/dist/types/models/config.types.js +0 -1
  146. package/dist/types/models/operating.types.js +0 -1
  147. package/dist/ui/abstract/ComponentAbs.js +0 -64
  148. package/dist/ui/abstract/ModelAbs.js +0 -119
  149. package/dist/ui/components/Entrance.js +0 -83
  150. package/dist/ui/components/Light.js +0 -167
  151. package/dist/ui/components/Progress.js +0 -84
  152. package/dist/ui/components/Resource.js +0 -70
  153. package/dist/ui/components/StationSlot.js +0 -207
  154. package/dist/ui/components/StationSlotGroup.js +0 -110
  155. package/dist/ui/factories/createGlass.js +0 -51
  156. package/dist/ui/factories/createModel.js +0 -35
  157. package/dist/ui/factories/createShadow.js +0 -52
  158. package/dist/ui/factories/createText.js +0 -46
  159. package/dist/ui/models/CleaningMachine.js +0 -141
  160. package/dist/ui/models/DoubleJointRobot.js +0 -545
  161. package/dist/ui/models/LoadingStation.js +0 -167
  162. package/dist/ui/models/MachineTool.js +0 -184
  163. package/dist/ui/models/MarkingMachine.js +0 -148
  164. package/dist/ui/models/Rail.js +0 -117
  165. package/dist/ui/models/ResourceStore.js +0 -101
  166. package/dist/ui/models/SingleBot.d.ts +0 -20
  167. package/dist/ui/models/SingleBot.js +0 -202
  168. package/dist/ui/models/SingleGripperRobot.d.ts +0 -19
  169. package/dist/ui/models/SingleGripperRobot.js +0 -272
  170. package/dist/ui/models/SingleJointRobot.js +0 -346
  171. package/dist/ui/shapes/NamePlate.js +0 -85
  172. package/dist/ui/shapes/ScrewHole.js +0 -57
  173. package/dist/ui/shapes/Texture.js +0 -51
  174. package/dist/ui/utils/attr.js +0 -50
  175. package/dist/utils/index.js +0 -92
  176. package/dist/utils/type-guards.js +0 -105
@@ -1,543 +0,0 @@
1
- import { ref } from 'vue';
2
- import { storeToRefs } from 'pinia';
3
- import { useEditorStore } from '@/stores';
4
- import { ElInputNumber, ElSelect, ElOption, ElButton, ElColorPicker } from 'element-plus';
5
- import { Delete } from '@element-plus/icons-vue';
6
- import LightGrid from '@/assets/images/texture/LightGrid.png';
7
- import DarkGrid from '@/assets/images/texture/DarkGrid.png';
8
- import MatrixGrid from '@/assets/images/texture/MatrixGrid.png';
9
- import LightDot from '@/assets/images/texture/LightDot.png';
10
- import DarkDot from '@/assets/images/texture/DarkDot.png';
11
- import WoodFloor from '@/assets/images/texture/WoodFloor.png';
12
- const { scene } = storeToRefs(useEditorStore());
13
- const iAlign = ['top-left', 'top', 'top-right', 'right', 'bottom-right', 'bottom', 'bottom-left', 'left', 'center'];
14
- const textureList = ref([
15
- {
16
- label: '亮色方格',
17
- value: 'LightGrid',
18
- src: LightGrid
19
- },
20
- {
21
- label: '暗色方格',
22
- value: 'DarkGrid',
23
- src: DarkGrid
24
- },
25
- {
26
- label: '矩阵方格',
27
- value: 'MatrixGrid',
28
- src: MatrixGrid
29
- },
30
- {
31
- label: '亮色圆点',
32
- value: 'LightDot',
33
- src: LightDot
34
- },
35
- {
36
- label: '暗色圆点',
37
- value: 'DarkDot',
38
- src: DarkDot
39
- },
40
- {
41
- label: '木地板',
42
- value: 'WoodFloor',
43
- src: WoodFloor
44
- }
45
- ]);
46
- // 添加色标
47
- const addColor = () => {
48
- scene.value?.fill?.stops?.push({
49
- offset: 1,
50
- color: 'rgba(0, 0, 0, 1)'
51
- });
52
- };
53
- // 删除色标
54
- const removeColor = (index) => {
55
- scene.value?.fill?.stops?.splice(index, 1);
56
- };
57
- debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
58
- const __VLS_ctx = {
59
- ...{},
60
- ...{},
61
- };
62
- let __VLS_components;
63
- let __VLS_directives;
64
- if (__VLS_ctx.scene?.fill) {
65
- // @ts-ignore
66
- [scene,];
67
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
68
- ...{ class: "form_group" },
69
- });
70
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
71
- ...{ class: "form_group_title" },
72
- });
73
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
74
- ...{ class: "keyVal" },
75
- });
76
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
77
- ...{ class: "key" },
78
- });
79
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
80
- ...{ class: "val" },
81
- });
82
- const __VLS_0 = {}.ElSelect;
83
- /** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
84
- // @ts-ignore
85
- ElSelect;
86
- // @ts-ignore
87
- const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
88
- modelValue: (__VLS_ctx.scene.fill.type),
89
- }));
90
- const __VLS_2 = __VLS_1({
91
- modelValue: (__VLS_ctx.scene.fill.type),
92
- }, ...__VLS_functionalComponentArgsRest(__VLS_1));
93
- const { default: __VLS_5 } = __VLS_3.slots;
94
- // @ts-ignore
95
- [scene,];
96
- const __VLS_6 = {}.ElOption;
97
- /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
98
- // @ts-ignore
99
- ElOption;
100
- // @ts-ignore
101
- const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({
102
- label: "纯色",
103
- value: "solid",
104
- }));
105
- const __VLS_8 = __VLS_7({
106
- label: "纯色",
107
- value: "solid",
108
- }, ...__VLS_functionalComponentArgsRest(__VLS_7));
109
- const __VLS_12 = {}.ElOption;
110
- /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
111
- // @ts-ignore
112
- ElOption;
113
- // @ts-ignore
114
- const __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({
115
- label: "线性渐变",
116
- value: "linear",
117
- }));
118
- const __VLS_14 = __VLS_13({
119
- label: "线性渐变",
120
- value: "linear",
121
- }, ...__VLS_functionalComponentArgsRest(__VLS_13));
122
- const __VLS_18 = {}.ElOption;
123
- /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
124
- // @ts-ignore
125
- ElOption;
126
- // @ts-ignore
127
- const __VLS_19 = __VLS_asFunctionalComponent(__VLS_18, new __VLS_18({
128
- label: "径向渐变",
129
- value: "radial",
130
- }));
131
- const __VLS_20 = __VLS_19({
132
- label: "径向渐变",
133
- value: "radial",
134
- }, ...__VLS_functionalComponentArgsRest(__VLS_19));
135
- var __VLS_3;
136
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
137
- ...{ class: "keyVal" },
138
- });
139
- __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.scene.fill.type === 'solid') }, null, null);
140
- // @ts-ignore
141
- [scene,];
142
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
143
- ...{ class: "key" },
144
- });
145
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
146
- ...{ class: "val" },
147
- });
148
- const __VLS_24 = {}.ElColorPicker;
149
- /** @type {[typeof __VLS_components.ElColorPicker, typeof __VLS_components.elColorPicker, ]} */ ;
150
- // @ts-ignore
151
- ElColorPicker;
152
- // @ts-ignore
153
- const __VLS_25 = __VLS_asFunctionalComponent(__VLS_24, new __VLS_24({
154
- ...{ class: "color_picker" },
155
- modelValue: (__VLS_ctx.scene.fill.color),
156
- showAlpha: true,
157
- predefine: (['#000', '#424242', '#fff', '#f30', '#009866', 'rgba(131, 186, 205, 1)']),
158
- size: "default",
159
- }));
160
- const __VLS_26 = __VLS_25({
161
- ...{ class: "color_picker" },
162
- modelValue: (__VLS_ctx.scene.fill.color),
163
- showAlpha: true,
164
- predefine: (['#000', '#424242', '#fff', '#f30', '#009866', 'rgba(131, 186, 205, 1)']),
165
- size: "default",
166
- }, ...__VLS_functionalComponentArgsRest(__VLS_25));
167
- // @ts-ignore
168
- [scene,];
169
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({});
170
- __VLS_asFunctionalDirective(__VLS_directives.vShow)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.scene.fill.type !== 'solid') }, null, null);
171
- // @ts-ignore
172
- [scene,];
173
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
174
- ...{ class: "keyVal" },
175
- });
176
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
177
- ...{ class: "key" },
178
- });
179
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
180
- ...{ class: "val" },
181
- });
182
- const __VLS_30 = {}.ElSelect;
183
- /** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
184
- // @ts-ignore
185
- ElSelect;
186
- // @ts-ignore
187
- const __VLS_31 = __VLS_asFunctionalComponent(__VLS_30, new __VLS_30({
188
- modelValue: (__VLS_ctx.scene.fill.from),
189
- }));
190
- const __VLS_32 = __VLS_31({
191
- modelValue: (__VLS_ctx.scene.fill.from),
192
- }, ...__VLS_functionalComponentArgsRest(__VLS_31));
193
- const { default: __VLS_35 } = __VLS_33.slots;
194
- // @ts-ignore
195
- [scene,];
196
- for (const [item, index] of __VLS_getVForSourceType((__VLS_ctx.iAlign))) {
197
- // @ts-ignore
198
- [iAlign,];
199
- const __VLS_36 = {}.ElOption;
200
- /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
201
- // @ts-ignore
202
- ElOption;
203
- // @ts-ignore
204
- const __VLS_37 = __VLS_asFunctionalComponent(__VLS_36, new __VLS_36({
205
- label: (item),
206
- value: (item),
207
- key: (index),
208
- }));
209
- const __VLS_38 = __VLS_37({
210
- label: (item),
211
- value: (item),
212
- key: (index),
213
- }, ...__VLS_functionalComponentArgsRest(__VLS_37));
214
- }
215
- var __VLS_33;
216
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
217
- ...{ class: "keyVal" },
218
- });
219
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
220
- ...{ class: "key" },
221
- });
222
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
223
- ...{ class: "val" },
224
- });
225
- const __VLS_42 = {}.ElSelect;
226
- /** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
227
- // @ts-ignore
228
- ElSelect;
229
- // @ts-ignore
230
- const __VLS_43 = __VLS_asFunctionalComponent(__VLS_42, new __VLS_42({
231
- modelValue: (__VLS_ctx.scene.fill.to),
232
- }));
233
- const __VLS_44 = __VLS_43({
234
- modelValue: (__VLS_ctx.scene.fill.to),
235
- }, ...__VLS_functionalComponentArgsRest(__VLS_43));
236
- const { default: __VLS_47 } = __VLS_45.slots;
237
- // @ts-ignore
238
- [scene,];
239
- for (const [item, index] of __VLS_getVForSourceType((__VLS_ctx.iAlign))) {
240
- // @ts-ignore
241
- [iAlign,];
242
- const __VLS_48 = {}.ElOption;
243
- /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
244
- // @ts-ignore
245
- ElOption;
246
- // @ts-ignore
247
- const __VLS_49 = __VLS_asFunctionalComponent(__VLS_48, new __VLS_48({
248
- label: (item),
249
- value: (item),
250
- key: (index),
251
- }));
252
- const __VLS_50 = __VLS_49({
253
- label: (item),
254
- value: (item),
255
- key: (index),
256
- }, ...__VLS_functionalComponentArgsRest(__VLS_49));
257
- }
258
- var __VLS_45;
259
- for (const [item, index] of __VLS_getVForSourceType((__VLS_ctx.scene.fill.stops))) {
260
- // @ts-ignore
261
- [scene,];
262
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
263
- ...{ class: "keyVal" },
264
- key: (index),
265
- });
266
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
267
- ...{ class: "key" },
268
- });
269
- (index + 1);
270
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
271
- ...{ class: "val" },
272
- });
273
- const __VLS_54 = {}.ElColorPicker;
274
- /** @type {[typeof __VLS_components.ElColorPicker, typeof __VLS_components.elColorPicker, ]} */ ;
275
- // @ts-ignore
276
- ElColorPicker;
277
- // @ts-ignore
278
- const __VLS_55 = __VLS_asFunctionalComponent(__VLS_54, new __VLS_54({
279
- ...{ class: "color_picker" },
280
- modelValue: (item.color),
281
- showAlpha: true,
282
- predefine: (['#000', '#424242', '#fff', '#f30', '#009866', 'rgba(131, 186, 205, 1)']),
283
- size: "small",
284
- }));
285
- const __VLS_56 = __VLS_55({
286
- ...{ class: "color_picker" },
287
- modelValue: (item.color),
288
- showAlpha: true,
289
- predefine: (['#000', '#424242', '#fff', '#f30', '#009866', 'rgba(131, 186, 205, 1)']),
290
- size: "small",
291
- }, ...__VLS_functionalComponentArgsRest(__VLS_55));
292
- const __VLS_60 = {}.ElInputNumber;
293
- /** @type {[typeof __VLS_components.ElInputNumber, typeof __VLS_components.elInputNumber, typeof __VLS_components.ElInputNumber, typeof __VLS_components.elInputNumber, ]} */ ;
294
- // @ts-ignore
295
- ElInputNumber;
296
- // @ts-ignore
297
- const __VLS_61 = __VLS_asFunctionalComponent(__VLS_60, new __VLS_60({
298
- modelValue: (item.offset),
299
- modelModifiers: { number: true, },
300
- step: (0.01),
301
- precision: (2),
302
- min: (0),
303
- max: (1),
304
- size: "small",
305
- controlsPosition: "right",
306
- ...{ style: "width: 100%" },
307
- }));
308
- const __VLS_62 = __VLS_61({
309
- modelValue: (item.offset),
310
- modelModifiers: { number: true, },
311
- step: (0.01),
312
- precision: (2),
313
- min: (0),
314
- max: (1),
315
- size: "small",
316
- controlsPosition: "right",
317
- ...{ style: "width: 100%" },
318
- }, ...__VLS_functionalComponentArgsRest(__VLS_61));
319
- const { default: __VLS_65 } = __VLS_63.slots;
320
- {
321
- const { prefix: __VLS_66 } = __VLS_63.slots;
322
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({});
323
- }
324
- var __VLS_63;
325
- const __VLS_67 = {}.ElButton;
326
- /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
327
- // @ts-ignore
328
- ElButton;
329
- // @ts-ignore
330
- const __VLS_68 = __VLS_asFunctionalComponent(__VLS_67, new __VLS_67({
331
- ...{ 'onClick': {} },
332
- size: "small",
333
- type: "danger",
334
- icon: (__VLS_ctx.Delete),
335
- ...{ style: "margin-left: 8px" },
336
- }));
337
- const __VLS_69 = __VLS_68({
338
- ...{ 'onClick': {} },
339
- size: "small",
340
- type: "danger",
341
- icon: (__VLS_ctx.Delete),
342
- ...{ style: "margin-left: 8px" },
343
- }, ...__VLS_functionalComponentArgsRest(__VLS_68));
344
- let __VLS_72;
345
- const __VLS_73 = ({ click: {} },
346
- { onClick: (...[$event]) => {
347
- if (!(__VLS_ctx.scene?.fill))
348
- return;
349
- __VLS_ctx.removeColor(index);
350
- // @ts-ignore
351
- [Delete, removeColor,];
352
- } });
353
- var __VLS_70;
354
- var __VLS_71;
355
- }
356
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
357
- ...{ class: "keyVal" },
358
- });
359
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
360
- ...{ class: "key" },
361
- });
362
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
363
- ...{ class: "val" },
364
- });
365
- const __VLS_75 = {}.ElButton;
366
- /** @type {[typeof __VLS_components.ElButton, typeof __VLS_components.elButton, typeof __VLS_components.ElButton, typeof __VLS_components.elButton, ]} */ ;
367
- // @ts-ignore
368
- ElButton;
369
- // @ts-ignore
370
- const __VLS_76 = __VLS_asFunctionalComponent(__VLS_75, new __VLS_75({
371
- ...{ 'onClick': {} },
372
- size: "small",
373
- type: "primary",
374
- icon: "Plus",
375
- ...{ style: "width: 100%" },
376
- }));
377
- const __VLS_77 = __VLS_76({
378
- ...{ 'onClick': {} },
379
- size: "small",
380
- type: "primary",
381
- icon: "Plus",
382
- ...{ style: "width: 100%" },
383
- }, ...__VLS_functionalComponentArgsRest(__VLS_76));
384
- let __VLS_80;
385
- const __VLS_81 = ({ click: {} },
386
- { onClick: (__VLS_ctx.addColor) });
387
- const { default: __VLS_82 } = __VLS_78.slots;
388
- // @ts-ignore
389
- [addColor,];
390
- var __VLS_78;
391
- var __VLS_79;
392
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
393
- ...{ class: "keyVal" },
394
- });
395
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
396
- ...{ class: "key" },
397
- });
398
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
399
- ...{ class: "val" },
400
- });
401
- const __VLS_83 = {}.ElInputNumber;
402
- /** @type {[typeof __VLS_components.ElInputNumber, typeof __VLS_components.elInputNumber, ]} */ ;
403
- // @ts-ignore
404
- ElInputNumber;
405
- // @ts-ignore
406
- const __VLS_84 = __VLS_asFunctionalComponent(__VLS_83, new __VLS_83({
407
- modelValue: (__VLS_ctx.scene.fill.opacity),
408
- modelModifiers: { number: true, },
409
- step: (0.01),
410
- precision: (2),
411
- min: (0),
412
- max: (1),
413
- size: "default",
414
- ...{ style: "width: 100%" },
415
- }));
416
- const __VLS_85 = __VLS_84({
417
- modelValue: (__VLS_ctx.scene.fill.opacity),
418
- modelModifiers: { number: true, },
419
- step: (0.01),
420
- precision: (2),
421
- min: (0),
422
- max: (1),
423
- size: "default",
424
- ...{ style: "width: 100%" },
425
- }, ...__VLS_functionalComponentArgsRest(__VLS_84));
426
- // @ts-ignore
427
- [scene,];
428
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
429
- ...{ class: "keyVal" },
430
- });
431
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
432
- ...{ class: "key" },
433
- });
434
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
435
- ...{ class: "val" },
436
- });
437
- const __VLS_89 = {}.ElSelect;
438
- /** @type {[typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, typeof __VLS_components.ElSelect, typeof __VLS_components.elSelect, ]} */ ;
439
- // @ts-ignore
440
- ElSelect;
441
- // @ts-ignore
442
- const __VLS_90 = __VLS_asFunctionalComponent(__VLS_89, new __VLS_89({
443
- modelValue: (__VLS_ctx.scene.texture),
444
- placeholder: "",
445
- clearable: true,
446
- ...{ style: "width: 100%" },
447
- }));
448
- const __VLS_91 = __VLS_90({
449
- modelValue: (__VLS_ctx.scene.texture),
450
- placeholder: "",
451
- clearable: true,
452
- ...{ style: "width: 100%" },
453
- }, ...__VLS_functionalComponentArgsRest(__VLS_90));
454
- const { default: __VLS_94 } = __VLS_92.slots;
455
- // @ts-ignore
456
- [scene,];
457
- for (const [item] of __VLS_getVForSourceType((__VLS_ctx.textureList))) {
458
- // @ts-ignore
459
- [textureList,];
460
- const __VLS_95 = {}.ElOption;
461
- /** @type {[typeof __VLS_components.ElOption, typeof __VLS_components.elOption, typeof __VLS_components.ElOption, typeof __VLS_components.elOption, ]} */ ;
462
- // @ts-ignore
463
- ElOption;
464
- // @ts-ignore
465
- const __VLS_96 = __VLS_asFunctionalComponent(__VLS_95, new __VLS_95({
466
- key: (item.value),
467
- value: (item.value),
468
- label: (item.label),
469
- }));
470
- const __VLS_97 = __VLS_96({
471
- key: (item.value),
472
- value: (item.value),
473
- label: (item.label),
474
- }, ...__VLS_functionalComponentArgsRest(__VLS_96));
475
- const { default: __VLS_100 } = __VLS_98.slots;
476
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
477
- ...{ class: "texture" },
478
- });
479
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
480
- ...{ class: "textureImg" },
481
- ...{ style: ({ backgroundImage: `url(${item.src})` }) },
482
- });
483
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
484
- ...{ class: "textureLabel" },
485
- });
486
- (item.label);
487
- var __VLS_98;
488
- }
489
- {
490
- const { label: __VLS_101 } = __VLS_92.slots;
491
- const [{ label, value }] = __VLS_getSlotParameters(__VLS_101);
492
- __VLS_asFunctionalElement(__VLS_intrinsics.div, __VLS_intrinsics.div)({
493
- ...{ class: "texture" },
494
- });
495
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
496
- ...{ class: "textureImg" },
497
- ...{ style: ({ backgroundImage: `url(${__VLS_ctx.textureList.find((d) => d.value === value)?.src})` }) },
498
- });
499
- // @ts-ignore
500
- [textureList,];
501
- __VLS_asFunctionalElement(__VLS_intrinsics.span, __VLS_intrinsics.span)({
502
- ...{ class: "textureLabel" },
503
- });
504
- (label);
505
- }
506
- var __VLS_92;
507
- }
508
- /** @type {__VLS_StyleScopedClasses['form_group']} */ ;
509
- /** @type {__VLS_StyleScopedClasses['form_group_title']} */ ;
510
- /** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
511
- /** @type {__VLS_StyleScopedClasses['key']} */ ;
512
- /** @type {__VLS_StyleScopedClasses['val']} */ ;
513
- /** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
514
- /** @type {__VLS_StyleScopedClasses['key']} */ ;
515
- /** @type {__VLS_StyleScopedClasses['val']} */ ;
516
- /** @type {__VLS_StyleScopedClasses['color_picker']} */ ;
517
- /** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
518
- /** @type {__VLS_StyleScopedClasses['key']} */ ;
519
- /** @type {__VLS_StyleScopedClasses['val']} */ ;
520
- /** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
521
- /** @type {__VLS_StyleScopedClasses['key']} */ ;
522
- /** @type {__VLS_StyleScopedClasses['val']} */ ;
523
- /** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
524
- /** @type {__VLS_StyleScopedClasses['key']} */ ;
525
- /** @type {__VLS_StyleScopedClasses['val']} */ ;
526
- /** @type {__VLS_StyleScopedClasses['color_picker']} */ ;
527
- /** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
528
- /** @type {__VLS_StyleScopedClasses['key']} */ ;
529
- /** @type {__VLS_StyleScopedClasses['val']} */ ;
530
- /** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
531
- /** @type {__VLS_StyleScopedClasses['key']} */ ;
532
- /** @type {__VLS_StyleScopedClasses['val']} */ ;
533
- /** @type {__VLS_StyleScopedClasses['keyVal']} */ ;
534
- /** @type {__VLS_StyleScopedClasses['key']} */ ;
535
- /** @type {__VLS_StyleScopedClasses['val']} */ ;
536
- /** @type {__VLS_StyleScopedClasses['texture']} */ ;
537
- /** @type {__VLS_StyleScopedClasses['textureImg']} */ ;
538
- /** @type {__VLS_StyleScopedClasses['textureLabel']} */ ;
539
- /** @type {__VLS_StyleScopedClasses['texture']} */ ;
540
- /** @type {__VLS_StyleScopedClasses['textureImg']} */ ;
541
- /** @type {__VLS_StyleScopedClasses['textureLabel']} */ ;
542
- const __VLS_export = (await import('vue')).defineComponent({});
543
- export default {};