@vvfx/sdk 0.1.19-alpha.36 → 0.1.19-alpha.38
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.
- package/LICENSE +22 -0
- package/dist/index.js +87037 -14
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +87141 -0
- package/dist/index.mjs.map +1 -0
- package/dist/src/config.d.ts +855 -0
- package/dist/src/exporter/config.d.ts +18 -0
- package/dist/src/exporter/const.d.ts +71 -0
- package/dist/src/exporter/export-media.d.ts +68 -0
- package/dist/src/exporter/exporter.d.ts +22 -0
- package/dist/src/exporter/index.d.ts +2 -0
- package/dist/src/exporter/types.d.ts +194 -0
- package/dist/src/exporter/utils.d.ts +22 -0
- package/dist/src/exporter/wav-audio.d.ts +27 -0
- package/dist/src/gesture-handler/gizmo/adsorption-gizmo.d.ts +68 -0
- package/dist/src/gesture-handler/gizmo/control-gizmo.d.ts +67 -0
- package/dist/src/gesture-handler/gizmo/gizmo.d.ts +59 -0
- package/dist/src/gesture-handler/gizmo/icon-gizmo.d.ts +44 -0
- package/dist/src/gesture-handler/gizmo/index.d.ts +6 -0
- package/dist/src/gesture-handler/gizmo/item-create-gizmo.d.ts +43 -0
- package/dist/src/gesture-handler/gizmo/loading-gizmo.d.ts +48 -0
- package/dist/src/gesture-handler/gizmo/mask-gizmo.d.ts +113 -0
- package/dist/src/gesture-handler/gizmo/picture-cut-gizmo.d.ts +94 -0
- package/dist/src/gesture-handler/gizmo/picture-expand-gizmo.d.ts +57 -0
- package/dist/src/gesture-handler/gizmo/preference-gizmo.d.ts +32 -0
- package/dist/src/gesture-handler/gizmo/selector-gizmo.d.ts +101 -0
- package/dist/src/gesture-handler/gizmo/sprite-text-edit-gizmo.d.ts +36 -0
- package/dist/src/gesture-handler/gizmo/text-gizmo.d.ts +128 -0
- package/dist/src/gesture-handler/gizmo/transform-gizmo.d.ts +233 -0
- package/dist/src/gesture-handler/gizmo/type.d.ts +402 -0
- package/dist/src/gesture-handler/index.d.ts +3 -0
- package/dist/src/gesture-handler/src/gesture-handler.d.ts +143 -0
- package/dist/src/gesture-handler/src/icons.d.ts +7 -0
- package/dist/src/gesture-handler/utils.d.ts +2 -0
- package/dist/src/html-overlay/document-runtime.d.ts +3 -0
- package/dist/src/html-overlay/document-transform.d.ts +7 -0
- package/dist/src/html-overlay/index.d.ts +1 -0
- package/dist/src/html-overlay/manager.d.ts +43 -0
- package/dist/src/html-overlay/mime-utils.d.ts +2 -0
- package/dist/src/html-overlay/path-utils.d.ts +8 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/math/box2.d.ts +166 -0
- package/dist/src/math/circle.d.ts +82 -0
- package/dist/src/math/euler.d.ts +20 -0
- package/dist/src/math/index.d.ts +13 -0
- package/dist/src/math/line2.d.ts +93 -0
- package/dist/src/math/line3.d.ts +17 -0
- package/dist/src/math/matrix4.d.ts +28 -0
- package/dist/src/math/plane.d.ts +14 -0
- package/dist/src/math/quaternion.d.ts +3 -0
- package/dist/src/math/ray-caster.d.ts +10 -0
- package/dist/src/math/ray.d.ts +18 -0
- package/dist/src/math/type.d.ts +32 -0
- package/dist/src/math/utils.d.ts +19 -0
- package/dist/src/math/vector2.d.ts +30 -0
- package/dist/src/math/vector3.d.ts +29 -0
- package/dist/src/screen-shot/index.d.ts +1 -0
- package/dist/src/screen-shot/screen-shot.d.ts +35 -0
- package/dist/src/sdk-item/base-item.d.ts +126 -0
- package/dist/src/sdk-item/card-item.d.ts +57 -0
- package/dist/src/sdk-item/effects-item.d.ts +70 -0
- package/dist/src/sdk-item/frame-item.d.ts +112 -0
- package/dist/src/sdk-item/generator-item.d.ts +86 -0
- package/dist/src/sdk-item/group-item.d.ts +57 -0
- package/dist/src/sdk-item/index.d.ts +36 -0
- package/dist/src/sdk-item/sprite-item.d.ts +67 -0
- package/dist/src/sdk-item/text-item.d.ts +107 -0
- package/dist/src/sdk-item/types.d.ts +153 -0
- package/dist/src/sdk-item/video-item.d.ts +87 -0
- package/dist/src/sdk.d.ts +589 -0
- package/dist/src/service/UndoRedo.d.ts +48 -0
- package/dist/src/shared/index.d.ts +1 -0
- package/dist/src/shared/player.d.ts +9 -0
- package/dist/src/size-adapte/index.d.ts +1 -0
- package/dist/src/size-adapte/size-adapt.d.ts +28 -0
- package/dist/src/types.d.ts +1235 -0
- package/dist/src/utils/background-manager.d.ts +72 -0
- package/dist/src/utils/common-utils.d.ts +28 -0
- package/dist/src/utils/index.d.ts +8 -0
- package/dist/src/utils/interaction-utils.d.ts +60 -0
- package/dist/src/utils/json-data-utils.d.ts +165 -0
- package/dist/src/utils/layout-utils.d.ts +219 -0
- package/dist/src/utils/page-data-utils.d.ts +370 -0
- package/dist/src/utils/player-data-utils.d.ts +11 -0
- package/dist/src/utils/types.d.ts +114 -0
- package/dist/src/wireframe/common/box.d.ts +1 -0
- package/dist/src/wireframe/common/dashed-line.d.ts +1 -0
- package/dist/src/wireframe/common/line.d.ts +1 -0
- package/dist/src/wireframe/common/pixi-ext.d.ts +11 -0
- package/dist/src/wireframe/common/pixi.d.ts +18 -0
- package/dist/src/wireframe/index.d.ts +4 -0
- package/package.json +41 -23
- package/dist/index.cjs +0 -14
- package/dist/index.d.cts +0 -4891
- package/dist/index.d.ts +0 -4891
- package/dist/index.global.js +0 -333
|
@@ -0,0 +1,855 @@
|
|
|
1
|
+
import { ExportMediaInitOptions } from './exporter';
|
|
2
|
+
import { GlobalLayoutMode } from './utils';
|
|
3
|
+
export type SDKMode = 'editor' | 'template';
|
|
4
|
+
/**
|
|
5
|
+
* @description SDK功能配置
|
|
6
|
+
*/
|
|
7
|
+
export type SDKConfig = {
|
|
8
|
+
/**
|
|
9
|
+
* @description SDK编辑模式 - 模板编辑模式 | 编辑器模式
|
|
10
|
+
*/
|
|
11
|
+
mode: SDKMode;
|
|
12
|
+
/**
|
|
13
|
+
* @description 页面功能配置
|
|
14
|
+
*/
|
|
15
|
+
pageConfig: PageConfig;
|
|
16
|
+
/**
|
|
17
|
+
* @description 异步加载功能配置
|
|
18
|
+
*/
|
|
19
|
+
asyncLoadConfig: AsyncLoadConfig;
|
|
20
|
+
/**
|
|
21
|
+
* @description 截图功能配置
|
|
22
|
+
*/
|
|
23
|
+
screenShotConfig: ScreenShotConfig;
|
|
24
|
+
/**
|
|
25
|
+
* @description 导出视频功能配置
|
|
26
|
+
*/
|
|
27
|
+
exportConfig: ExportConfig;
|
|
28
|
+
/**
|
|
29
|
+
* @description 尺寸自适应功能开关
|
|
30
|
+
*/
|
|
31
|
+
sizeAdaptConfig: SizeAdaptConfig;
|
|
32
|
+
/**
|
|
33
|
+
* @description 辅助面板功能配置
|
|
34
|
+
*/
|
|
35
|
+
gestureHandlerConfig: {
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
loadingGizmoConfig: LoadingGizmoConfig;
|
|
38
|
+
adsorptionGizmoEnabled: boolean;
|
|
39
|
+
adsorptionGizmoConfig: AdsorptionGizmoConfig;
|
|
40
|
+
controlGizmoEnabled: boolean;
|
|
41
|
+
controlGizmoConfig: ControlGizmoConfig;
|
|
42
|
+
preferenceGizmoEnabled: boolean;
|
|
43
|
+
preferenceGizmoConfig: PreferenceGizmoConfig;
|
|
44
|
+
selectorGizmoEnabled: boolean;
|
|
45
|
+
selectorGizmoConfig: SelectorGizmoConfig;
|
|
46
|
+
transformGizmoEnabled: boolean;
|
|
47
|
+
transformGizmoConfig: TransformGizmoConfig;
|
|
48
|
+
pictureCutGizmoEnabled: boolean;
|
|
49
|
+
pictureCutGizmoConfig: PictureCutGizmoConfig;
|
|
50
|
+
pictureExpandGizmoEnabled: boolean;
|
|
51
|
+
pictureExpandGizmoConfig: PictureExpandGizmoConfig;
|
|
52
|
+
textGizmoEnbaled: boolean;
|
|
53
|
+
textGizmoConfig: TextGizmoConfig;
|
|
54
|
+
maskGizmoEnabled: boolean;
|
|
55
|
+
maskGizmoConfig: MaskGizmoConfig;
|
|
56
|
+
spriteTextEditGizmoEnabled: boolean;
|
|
57
|
+
spriteTextEditGizmoConfig: SpriteTextEditGizmoConfig;
|
|
58
|
+
iconGizmoEnabled: boolean;
|
|
59
|
+
iconGizmoConfig: IconGizmoConfig;
|
|
60
|
+
itemCreateGizmoEnabled: boolean;
|
|
61
|
+
itemCreateGizmoConfig: ItemCreateGizmoConfig;
|
|
62
|
+
/**
|
|
63
|
+
* @description 自动布局指示器配置
|
|
64
|
+
*/
|
|
65
|
+
autoLayoutIndicatorConfig: AutoLayoutIndicatorConfig;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* @description 元素配置
|
|
69
|
+
*/
|
|
70
|
+
itemConfig: {
|
|
71
|
+
/**
|
|
72
|
+
* @description 画板元素参数配置
|
|
73
|
+
*/
|
|
74
|
+
frameConfig: FrameConfig;
|
|
75
|
+
/**
|
|
76
|
+
* @description 生成器元素参数配置
|
|
77
|
+
*/
|
|
78
|
+
generatorConfig: GeneratorConfig;
|
|
79
|
+
/**
|
|
80
|
+
* @description 卡片元素参数配置
|
|
81
|
+
*/
|
|
82
|
+
cardConfig: CardConfig;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* @description 画板元素参数配置
|
|
87
|
+
*/
|
|
88
|
+
export type FrameConfig = {
|
|
89
|
+
/**
|
|
90
|
+
* @description 自动布局边距
|
|
91
|
+
*/
|
|
92
|
+
layoutPadding: number;
|
|
93
|
+
/**
|
|
94
|
+
* @description 自动布局元素间隔
|
|
95
|
+
*/
|
|
96
|
+
layoutGap: number;
|
|
97
|
+
/**
|
|
98
|
+
* @description 默认画板[无子元素时]宽度
|
|
99
|
+
*/
|
|
100
|
+
defaultWidth: number;
|
|
101
|
+
/**
|
|
102
|
+
* @description 默认画板[无子元素时]高度
|
|
103
|
+
*/
|
|
104
|
+
defaultHeight: number;
|
|
105
|
+
/**
|
|
106
|
+
* @description 自动布局背景颜色
|
|
107
|
+
*/
|
|
108
|
+
autoLayoutBackgroundColor: [number, number, number, number];
|
|
109
|
+
/**
|
|
110
|
+
* @description 自由布局背景颜色
|
|
111
|
+
*/
|
|
112
|
+
freeLayoutBackgroundColor: [number, number, number, number];
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* @description 生成器元素参数配置
|
|
116
|
+
*/
|
|
117
|
+
export type GeneratorConfig = {
|
|
118
|
+
/**
|
|
119
|
+
* @description 生成器背景颜色
|
|
120
|
+
*/
|
|
121
|
+
backgroundColor: [number, number, number, number];
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* @description 卡片类型配置条目
|
|
125
|
+
*/
|
|
126
|
+
export type CardTypeConfig = {
|
|
127
|
+
/**
|
|
128
|
+
* @description 卡片类型标识
|
|
129
|
+
*/
|
|
130
|
+
type: string;
|
|
131
|
+
/**
|
|
132
|
+
* @description 卡片类型显示名称
|
|
133
|
+
*/
|
|
134
|
+
label: string;
|
|
135
|
+
/**
|
|
136
|
+
* @description TransformGizmo 左上角展示的 icon URL
|
|
137
|
+
*/
|
|
138
|
+
iconUrl: string;
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* @description 卡片元素参数配置
|
|
142
|
+
*/
|
|
143
|
+
export type CardConfig = {
|
|
144
|
+
/**
|
|
145
|
+
* @description 卡片元素背景颜色
|
|
146
|
+
*/
|
|
147
|
+
backgroundColor: [number, number, number, number];
|
|
148
|
+
/**
|
|
149
|
+
* @description 注册的卡片类型列表,支持动态配置
|
|
150
|
+
* 每个条目包含 type 标识、显示名称和图标 URL
|
|
151
|
+
*/
|
|
152
|
+
cardTypes: CardTypeConfig[];
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* @description 自动布局指示器配置
|
|
156
|
+
*/
|
|
157
|
+
export type AutoLayoutIndicatorConfig = {
|
|
158
|
+
/**
|
|
159
|
+
* @description 指示线宽度
|
|
160
|
+
*/
|
|
161
|
+
lineWidth: number;
|
|
162
|
+
/**
|
|
163
|
+
* @description 指示线颜色
|
|
164
|
+
*/
|
|
165
|
+
lineColor: number;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* @description 页面功能配置
|
|
169
|
+
*/
|
|
170
|
+
export type PageConfig = {
|
|
171
|
+
/**
|
|
172
|
+
* @description 同步修改功能开关
|
|
173
|
+
*/
|
|
174
|
+
asncMode: boolean;
|
|
175
|
+
/**
|
|
176
|
+
* @description 静态预览【视图只提供播放预览功能】功能开关
|
|
177
|
+
*/
|
|
178
|
+
staticPreview: boolean;
|
|
179
|
+
/**
|
|
180
|
+
* @description 静态预览视图名称
|
|
181
|
+
*/
|
|
182
|
+
staticPreviewName: string;
|
|
183
|
+
/**
|
|
184
|
+
* @description 需过滤的元素名称
|
|
185
|
+
*/
|
|
186
|
+
filterItemNames: string[];
|
|
187
|
+
/**
|
|
188
|
+
* @description 成组操作元素显隐
|
|
189
|
+
*/
|
|
190
|
+
groupVisible: boolean;
|
|
191
|
+
/**
|
|
192
|
+
* @description 缩放最大值
|
|
193
|
+
*/
|
|
194
|
+
maxZoom: number;
|
|
195
|
+
/**
|
|
196
|
+
* @description 缩放最小值
|
|
197
|
+
*/
|
|
198
|
+
minZoom: number;
|
|
199
|
+
/**
|
|
200
|
+
* @description 全局自适应排布模式
|
|
201
|
+
*/
|
|
202
|
+
autoLayoutDefaultMode: GlobalLayoutMode;
|
|
203
|
+
/**
|
|
204
|
+
* @description 全局自适应排布间隔
|
|
205
|
+
*/
|
|
206
|
+
autoLayoutDefaultGap: number;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* @description 异步加载配置
|
|
210
|
+
*/
|
|
211
|
+
export type AsyncLoadConfig = {
|
|
212
|
+
enabled: boolean;
|
|
213
|
+
loadingTextureUrl: string;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* @description 视频导出功能配置
|
|
217
|
+
*/
|
|
218
|
+
export type ExportConfig = {
|
|
219
|
+
enabled: boolean;
|
|
220
|
+
} & ExportMediaInitOptions;
|
|
221
|
+
/**
|
|
222
|
+
* @description 截图功能配置
|
|
223
|
+
*/
|
|
224
|
+
export type ScreenShotConfig = {
|
|
225
|
+
enabled: boolean;
|
|
226
|
+
defaultBackgroundColor: [number, number, number, number];
|
|
227
|
+
};
|
|
228
|
+
/**
|
|
229
|
+
* @description 尺寸自适应功能配置
|
|
230
|
+
*/
|
|
231
|
+
export type SizeAdaptConfig = {
|
|
232
|
+
enabled: boolean;
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* @description 对齐吸附功能参数
|
|
236
|
+
*/
|
|
237
|
+
export type AdsorptionGizmoConfig = {
|
|
238
|
+
/**
|
|
239
|
+
* @description 对齐吸附线宽
|
|
240
|
+
*/
|
|
241
|
+
lineWidth: number;
|
|
242
|
+
/**
|
|
243
|
+
* @description 对齐线颜色
|
|
244
|
+
*/
|
|
245
|
+
lineColor: number;
|
|
246
|
+
/**
|
|
247
|
+
* @description 对齐吸附距离
|
|
248
|
+
*/
|
|
249
|
+
distance: number;
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* @description 视图控制功能参数
|
|
253
|
+
*/
|
|
254
|
+
export type ControlGizmoConfig = {
|
|
255
|
+
/**
|
|
256
|
+
* @description 缩放步长
|
|
257
|
+
*/
|
|
258
|
+
zoomStep: number;
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* @description 视口展示功能参数
|
|
262
|
+
*/
|
|
263
|
+
export type PreferenceGizmoConfig = {
|
|
264
|
+
/**
|
|
265
|
+
* @description 视口窗包围盒颜色
|
|
266
|
+
*/
|
|
267
|
+
boxColor: number;
|
|
268
|
+
/**
|
|
269
|
+
* @description 视口窗包围盒宽度
|
|
270
|
+
*/
|
|
271
|
+
boxWidth: number;
|
|
272
|
+
/**
|
|
273
|
+
* @description 视口区域外遮罩颜色
|
|
274
|
+
*/
|
|
275
|
+
markColor: number;
|
|
276
|
+
/**
|
|
277
|
+
* @description 视口区域外遮罩透明度
|
|
278
|
+
*/
|
|
279
|
+
markAlpha: number;
|
|
280
|
+
/**
|
|
281
|
+
* @description 出血区预览开关
|
|
282
|
+
*/
|
|
283
|
+
safeAreaEnabled: boolean;
|
|
284
|
+
/**
|
|
285
|
+
* @description 出血区颜色
|
|
286
|
+
*/
|
|
287
|
+
safeAreaBoxColor: number;
|
|
288
|
+
/**
|
|
289
|
+
* @description 出血区透明度
|
|
290
|
+
*/
|
|
291
|
+
safeAreaBoxAlpha: number;
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* @description 选择功能参数
|
|
295
|
+
*/
|
|
296
|
+
export type SelectorGizmoConfig = {
|
|
297
|
+
/**
|
|
298
|
+
* @description 视频预选中时
|
|
299
|
+
*/
|
|
300
|
+
videoPreSelectedPlay: boolean;
|
|
301
|
+
/**
|
|
302
|
+
* @description 预选框线宽
|
|
303
|
+
*/
|
|
304
|
+
preSelectedWidth: number;
|
|
305
|
+
/**
|
|
306
|
+
* @description 预选框颜色
|
|
307
|
+
*/
|
|
308
|
+
preSelectedColor: number;
|
|
309
|
+
/**
|
|
310
|
+
* @description 框选区域颜色
|
|
311
|
+
*/
|
|
312
|
+
regionBoxColor: number;
|
|
313
|
+
/**
|
|
314
|
+
* @description 框选区域透明度
|
|
315
|
+
*/
|
|
316
|
+
regionBoxAlpha: number;
|
|
317
|
+
/**
|
|
318
|
+
* @description 框选区域包围框颜色
|
|
319
|
+
*/
|
|
320
|
+
regionWireframeColor: number;
|
|
321
|
+
/**
|
|
322
|
+
* @description 框选区域包围框透明度
|
|
323
|
+
*/
|
|
324
|
+
regionWireframeAlpha: number;
|
|
325
|
+
/**
|
|
326
|
+
* @description 框选区域包围框宽度
|
|
327
|
+
*/
|
|
328
|
+
regionWireframeWidth: number;
|
|
329
|
+
};
|
|
330
|
+
/**
|
|
331
|
+
* @description 变换功能参数
|
|
332
|
+
*/
|
|
333
|
+
export type TransformGizmoConfig = {
|
|
334
|
+
/**
|
|
335
|
+
* @description 变换交互框颜色
|
|
336
|
+
*/
|
|
337
|
+
wireframeColor: number;
|
|
338
|
+
/**
|
|
339
|
+
* @description 变换交互框透明度
|
|
340
|
+
*/
|
|
341
|
+
wireframeAlpha: number;
|
|
342
|
+
/**
|
|
343
|
+
* @description 变换交互框宽度
|
|
344
|
+
*/
|
|
345
|
+
wireframeWidth: number;
|
|
346
|
+
/**
|
|
347
|
+
* @description 变换交互框角点填充色
|
|
348
|
+
*/
|
|
349
|
+
cornerFillColor: number;
|
|
350
|
+
/**
|
|
351
|
+
* @description 变换交互框角点线框色
|
|
352
|
+
*/
|
|
353
|
+
cornerLineColor: number;
|
|
354
|
+
/**
|
|
355
|
+
* @description 变换交互框角点线框宽度
|
|
356
|
+
*/
|
|
357
|
+
cornerLineWidth: number;
|
|
358
|
+
/**
|
|
359
|
+
* @description 变换交互框角点线框透明度
|
|
360
|
+
*/
|
|
361
|
+
cornerLineAlpha: number;
|
|
362
|
+
/**
|
|
363
|
+
* @description 交互框缩放圆半径
|
|
364
|
+
*/
|
|
365
|
+
scaleCircleSize: number;
|
|
366
|
+
/**
|
|
367
|
+
* @description 交互框旋转圆半径
|
|
368
|
+
*/
|
|
369
|
+
rotationCircleSize: number;
|
|
370
|
+
/**
|
|
371
|
+
* @description 图片Logo地址
|
|
372
|
+
*/
|
|
373
|
+
pictureLogoUrl: string;
|
|
374
|
+
/**
|
|
375
|
+
* @description 空节点Logo地址
|
|
376
|
+
*/
|
|
377
|
+
groupLogoUrl: string;
|
|
378
|
+
/**
|
|
379
|
+
* @description 文本Logo地址
|
|
380
|
+
*/
|
|
381
|
+
textLogoUrl: string;
|
|
382
|
+
/**
|
|
383
|
+
* @description 视频Logo地址
|
|
384
|
+
*/
|
|
385
|
+
videoLogoUrl: string;
|
|
386
|
+
/**
|
|
387
|
+
* @description 画板Logo地址
|
|
388
|
+
*/
|
|
389
|
+
frameLogoUrl: string;
|
|
390
|
+
/**
|
|
391
|
+
* @description 特效Logo地址
|
|
392
|
+
*/
|
|
393
|
+
effectsLogoUrl: string;
|
|
394
|
+
/**
|
|
395
|
+
* @description 大小文字颜色
|
|
396
|
+
*/
|
|
397
|
+
sizeTextColor: number;
|
|
398
|
+
/**
|
|
399
|
+
* @description 名称文字颜色
|
|
400
|
+
*/
|
|
401
|
+
nameTextColor: number;
|
|
402
|
+
/**
|
|
403
|
+
* @description 选中信息展示
|
|
404
|
+
*/
|
|
405
|
+
infoShowEnabled: boolean;
|
|
406
|
+
};
|
|
407
|
+
/**
|
|
408
|
+
* @description 图片裁切参数
|
|
409
|
+
*/
|
|
410
|
+
export type PictureCutGizmoConfig = {
|
|
411
|
+
/**
|
|
412
|
+
* @description 蒙版颜色
|
|
413
|
+
*/
|
|
414
|
+
maskColor: number;
|
|
415
|
+
/**
|
|
416
|
+
* @description 蒙版透明度
|
|
417
|
+
*/
|
|
418
|
+
maskAlpha: number;
|
|
419
|
+
/**
|
|
420
|
+
* @description 裁切包围盒线框宽度
|
|
421
|
+
*/
|
|
422
|
+
cutBoxLineWidth: number;
|
|
423
|
+
/**
|
|
424
|
+
* @description 裁切包围盒线框颜色
|
|
425
|
+
*/
|
|
426
|
+
cutBoxLineColor: number;
|
|
427
|
+
/**
|
|
428
|
+
* @description 裁切包围盒线框透明度
|
|
429
|
+
*/
|
|
430
|
+
cutBoxLineAlpha: number;
|
|
431
|
+
/**
|
|
432
|
+
* @description 元素包围盒线框宽度
|
|
433
|
+
*/
|
|
434
|
+
itemBoxLineWidth: number;
|
|
435
|
+
/**
|
|
436
|
+
* @description 元素包围盒线框颜色
|
|
437
|
+
*/
|
|
438
|
+
itemBoxLineColor: number;
|
|
439
|
+
/**
|
|
440
|
+
* @description 元素包围盒线框透明度
|
|
441
|
+
*/
|
|
442
|
+
itemBoxLineAlpha: number;
|
|
443
|
+
/**
|
|
444
|
+
* @description 裁切包围盒角度半径
|
|
445
|
+
*/
|
|
446
|
+
cutBoxCornerRadius: number;
|
|
447
|
+
/**
|
|
448
|
+
* @description 裁切包围盒角点宽度
|
|
449
|
+
*/
|
|
450
|
+
cutBoxCornerLineWidth: number;
|
|
451
|
+
/**
|
|
452
|
+
* @description 裁切包围盒角点颜色
|
|
453
|
+
*/
|
|
454
|
+
cutBoxCornerLineColor: number;
|
|
455
|
+
/**
|
|
456
|
+
* @description 裁切包围盒角点透明度
|
|
457
|
+
*/
|
|
458
|
+
cutBoxCornerLineAlpha: number;
|
|
459
|
+
/**
|
|
460
|
+
* @description 裁切包围盒角点填充色
|
|
461
|
+
*/
|
|
462
|
+
cutBoxCornerFillColor: number;
|
|
463
|
+
/**
|
|
464
|
+
* @description 缩放判断距离
|
|
465
|
+
*/
|
|
466
|
+
scaleInteractionDistance: number;
|
|
467
|
+
/**
|
|
468
|
+
* @description 单向缩放判断距离
|
|
469
|
+
*/
|
|
470
|
+
directionScaleInteractionDistance: number;
|
|
471
|
+
/**
|
|
472
|
+
* @description 网格线数量
|
|
473
|
+
*/
|
|
474
|
+
gridCount: number;
|
|
475
|
+
/**
|
|
476
|
+
* @description 网格线颜色
|
|
477
|
+
*/
|
|
478
|
+
gridLineColor: number;
|
|
479
|
+
/**
|
|
480
|
+
* @description 网格线宽度
|
|
481
|
+
*/
|
|
482
|
+
gridLineWidth: number;
|
|
483
|
+
/**
|
|
484
|
+
* @description 网格线透明度
|
|
485
|
+
*/
|
|
486
|
+
gridLineAlpha: number;
|
|
487
|
+
};
|
|
488
|
+
/**
|
|
489
|
+
* @description 图片扩边参数
|
|
490
|
+
*/
|
|
491
|
+
export type PictureExpandGizmoConfig = {
|
|
492
|
+
/**
|
|
493
|
+
* @description 蒙版颜色
|
|
494
|
+
*/
|
|
495
|
+
maskColor: number;
|
|
496
|
+
/**
|
|
497
|
+
* @description 蒙版透明度
|
|
498
|
+
*/
|
|
499
|
+
maskAlpha: number;
|
|
500
|
+
/**
|
|
501
|
+
* @description 扩边包围盒线框宽度
|
|
502
|
+
*/
|
|
503
|
+
expandBoxLineWidth: number;
|
|
504
|
+
/**
|
|
505
|
+
* @description 扩边包围盒线框颜色
|
|
506
|
+
*/
|
|
507
|
+
expandBoxLineColor: number;
|
|
508
|
+
/**
|
|
509
|
+
* @description 扩边包围盒线框透明度
|
|
510
|
+
*/
|
|
511
|
+
expandBoxLineAlpha: number;
|
|
512
|
+
/**
|
|
513
|
+
* @description 扩边包围盒角度半径
|
|
514
|
+
*/
|
|
515
|
+
expandBoxCornerRadius: number;
|
|
516
|
+
/**
|
|
517
|
+
* @description 扩边包围盒角点宽度
|
|
518
|
+
*/
|
|
519
|
+
expandBoxCornerLineWidth: number;
|
|
520
|
+
/**
|
|
521
|
+
* @description 扩边包围盒角点颜色
|
|
522
|
+
*/
|
|
523
|
+
expandBoxCornerLineColor: number;
|
|
524
|
+
/**
|
|
525
|
+
* @description 扩边包围盒角点透明度
|
|
526
|
+
*/
|
|
527
|
+
expandBoxCornerLineAlpha: number;
|
|
528
|
+
/**
|
|
529
|
+
* @description 扩边包围盒角点填充色
|
|
530
|
+
*/
|
|
531
|
+
expandBoxCornerFillColor: number;
|
|
532
|
+
/**
|
|
533
|
+
* @description 缩放判断距离
|
|
534
|
+
*/
|
|
535
|
+
scaleInteractionDistance: number;
|
|
536
|
+
/**
|
|
537
|
+
* @description 单向缩放判断距离
|
|
538
|
+
*/
|
|
539
|
+
directionScaleInteractionDistance: number;
|
|
540
|
+
/**
|
|
541
|
+
* @description 网格线数量
|
|
542
|
+
*/
|
|
543
|
+
gridCount: number;
|
|
544
|
+
/**
|
|
545
|
+
* @description 网格线颜色
|
|
546
|
+
*/
|
|
547
|
+
gridLineColor: number;
|
|
548
|
+
/**
|
|
549
|
+
* @description 网格线宽度
|
|
550
|
+
*/
|
|
551
|
+
gridLineWidth: number;
|
|
552
|
+
/**
|
|
553
|
+
* @description 网格线透明度
|
|
554
|
+
*/
|
|
555
|
+
gridLineAlpha: number;
|
|
556
|
+
};
|
|
557
|
+
/**
|
|
558
|
+
* @description 文本交互控制器旋转交互模式
|
|
559
|
+
* 'corner': 角点旋转
|
|
560
|
+
* 'top-center': 顶部中心旋转
|
|
561
|
+
*/
|
|
562
|
+
export type TextGizmoRotateInteractMode = 'corner' | 'top-center';
|
|
563
|
+
/**
|
|
564
|
+
* @description 文本交互控制器参数
|
|
565
|
+
*/
|
|
566
|
+
export type TextGizmoConfig = {
|
|
567
|
+
/**
|
|
568
|
+
* @description 旋转交互模式
|
|
569
|
+
*/
|
|
570
|
+
rotateInteractMode: TextGizmoRotateInteractMode;
|
|
571
|
+
/**
|
|
572
|
+
* @description 包围盒线宽
|
|
573
|
+
*/
|
|
574
|
+
boxLineWidth: number;
|
|
575
|
+
/**
|
|
576
|
+
* @description 包围盒线色
|
|
577
|
+
*/
|
|
578
|
+
boxLineColor: number;
|
|
579
|
+
/**
|
|
580
|
+
* @description 旋转交互点边长 - 用于 top-center 交互模式
|
|
581
|
+
*/
|
|
582
|
+
rotationCornerWidth: number;
|
|
583
|
+
/**
|
|
584
|
+
* @description 旋转交互贴图地址
|
|
585
|
+
*/
|
|
586
|
+
rotationCornerTexture: string;
|
|
587
|
+
/**
|
|
588
|
+
* @description 旋转交互点半径
|
|
589
|
+
*/
|
|
590
|
+
rotationCornerRadius: number;
|
|
591
|
+
/**
|
|
592
|
+
* @description top-center 模式旋转交互距离
|
|
593
|
+
*/
|
|
594
|
+
rotationTopCenterInteractionDistance: number;
|
|
595
|
+
/**
|
|
596
|
+
* @description 旋转交互点填充色
|
|
597
|
+
*/
|
|
598
|
+
rotationCornerFillColor: number;
|
|
599
|
+
/**
|
|
600
|
+
* @description 旋转交互点描边宽度
|
|
601
|
+
*/
|
|
602
|
+
rotationCornerStrokeWidth: number;
|
|
603
|
+
/**
|
|
604
|
+
* @description 旋转交互点描边颜色
|
|
605
|
+
*/
|
|
606
|
+
rotationCornerStrokeColor: number;
|
|
607
|
+
/**
|
|
608
|
+
* @description Corner 模式旋转交互距离
|
|
609
|
+
*/
|
|
610
|
+
rotationCornerInteractionDistance: number;
|
|
611
|
+
/**
|
|
612
|
+
* @description 缩放交互点半径
|
|
613
|
+
*/
|
|
614
|
+
scaleCornerRadius: number;
|
|
615
|
+
/**
|
|
616
|
+
* @description 缩放交互点填充色
|
|
617
|
+
*/
|
|
618
|
+
scaleCornerFillColor: number;
|
|
619
|
+
/**
|
|
620
|
+
* @description 缩放交互点描边宽度
|
|
621
|
+
*/
|
|
622
|
+
scaleCornerStrokeWidth: number;
|
|
623
|
+
/**
|
|
624
|
+
* @description 缩放交互点描边颜色
|
|
625
|
+
*/
|
|
626
|
+
scaleCornerStrokeColor: number;
|
|
627
|
+
/**
|
|
628
|
+
* @description 触发缩放交互的距离
|
|
629
|
+
*/
|
|
630
|
+
scaleInteractionDistance: number;
|
|
631
|
+
/**
|
|
632
|
+
* @description 触发边缩放交互的距离
|
|
633
|
+
*/
|
|
634
|
+
widthScaleInteractionDistance: number;
|
|
635
|
+
/**
|
|
636
|
+
* @description 画板线框颜色
|
|
637
|
+
*/
|
|
638
|
+
wireframeColor: number;
|
|
639
|
+
/**
|
|
640
|
+
* @description 画板线框透明度
|
|
641
|
+
*/
|
|
642
|
+
wireframeAlpha: number;
|
|
643
|
+
/**
|
|
644
|
+
* @description 画板线框线宽
|
|
645
|
+
*/
|
|
646
|
+
wireframeWidth: number;
|
|
647
|
+
};
|
|
648
|
+
/**
|
|
649
|
+
* @description 蒙版参数
|
|
650
|
+
*/
|
|
651
|
+
export type MaskGizmoConfig = {
|
|
652
|
+
/**
|
|
653
|
+
* @description 画笔大小
|
|
654
|
+
*/
|
|
655
|
+
brushSize: number;
|
|
656
|
+
/**
|
|
657
|
+
* @description 笔刷颜色
|
|
658
|
+
*/
|
|
659
|
+
brushColor: number;
|
|
660
|
+
/**
|
|
661
|
+
* @description 笔刷透明度
|
|
662
|
+
*/
|
|
663
|
+
brushAlpha: number;
|
|
664
|
+
/**
|
|
665
|
+
* @description 蒙版颜色
|
|
666
|
+
*/
|
|
667
|
+
maskColor: number;
|
|
668
|
+
/**
|
|
669
|
+
* @description 蒙版背景色
|
|
670
|
+
*/
|
|
671
|
+
maskBackgroundColor: number;
|
|
672
|
+
/**
|
|
673
|
+
* @description 蒙版透明度
|
|
674
|
+
*/
|
|
675
|
+
maskAlpha: number;
|
|
676
|
+
/**
|
|
677
|
+
* @description 蒙版图片
|
|
678
|
+
*/
|
|
679
|
+
maskImage?: HTMLImageElement;
|
|
680
|
+
/**
|
|
681
|
+
* @description 元素包围盒线框宽度
|
|
682
|
+
*/
|
|
683
|
+
boxLineWidth: number;
|
|
684
|
+
/**
|
|
685
|
+
* @description 元素包围盒线框颜色
|
|
686
|
+
*/
|
|
687
|
+
boxLineColor: number;
|
|
688
|
+
/**
|
|
689
|
+
* @description 元素包围盒线框透明度
|
|
690
|
+
*/
|
|
691
|
+
boxLineAlpha: number;
|
|
692
|
+
};
|
|
693
|
+
/**
|
|
694
|
+
* @description Loading 参数
|
|
695
|
+
*/
|
|
696
|
+
export type LoadingGizmoConfig = {
|
|
697
|
+
/**
|
|
698
|
+
* @description 加载中 effect fragment
|
|
699
|
+
*/
|
|
700
|
+
loadingFragment?: string;
|
|
701
|
+
};
|
|
702
|
+
/**
|
|
703
|
+
* @description 精准改字编辑参数
|
|
704
|
+
*/
|
|
705
|
+
export type SpriteTextEditGizmoConfig = {
|
|
706
|
+
/**
|
|
707
|
+
* @description 文案颜色
|
|
708
|
+
*/
|
|
709
|
+
textColor: number;
|
|
710
|
+
/**
|
|
711
|
+
* @description 包围盒线框宽度
|
|
712
|
+
*/
|
|
713
|
+
boxLineWidth: number;
|
|
714
|
+
/**
|
|
715
|
+
* @description 包围盒间隔线长度
|
|
716
|
+
*/
|
|
717
|
+
dashLineDash: number;
|
|
718
|
+
/**
|
|
719
|
+
* @description 包围盒间隔线间隔
|
|
720
|
+
*/
|
|
721
|
+
dashLineGap: number;
|
|
722
|
+
/**
|
|
723
|
+
* @description 预选中文案颜色
|
|
724
|
+
*/
|
|
725
|
+
preSelectedTextColor: number;
|
|
726
|
+
/**
|
|
727
|
+
* @description 标记包围盒颜色
|
|
728
|
+
*/
|
|
729
|
+
editBoxColor: number;
|
|
730
|
+
/**
|
|
731
|
+
* @description 编辑包围盒透明度
|
|
732
|
+
*/
|
|
733
|
+
editBoxAlpha: number;
|
|
734
|
+
/**
|
|
735
|
+
* @description 编辑包围盒线框颜色
|
|
736
|
+
*/
|
|
737
|
+
editBoxLineColor: number;
|
|
738
|
+
/**
|
|
739
|
+
* @description 编辑包围盒线框透明度
|
|
740
|
+
*/
|
|
741
|
+
editBoxLineAlpha: number;
|
|
742
|
+
/**
|
|
743
|
+
* @description 已更改编辑包围盒颜色
|
|
744
|
+
*/
|
|
745
|
+
hasChangedEditBoxColor: number;
|
|
746
|
+
/**
|
|
747
|
+
* @description 已更改编辑包围盒透明度
|
|
748
|
+
*/
|
|
749
|
+
hasChangedEditBoxAlpha: number;
|
|
750
|
+
/**
|
|
751
|
+
* @description 已更改编辑包围盒线框颜色
|
|
752
|
+
*/
|
|
753
|
+
hasChangedEditBoxLineColor: number;
|
|
754
|
+
/**
|
|
755
|
+
* @description 已更改编辑包围盒线框透明度
|
|
756
|
+
*/
|
|
757
|
+
hasChangedEditBoxLineAlpha: number;
|
|
758
|
+
/**
|
|
759
|
+
* @description 编辑包围盒预选颜色
|
|
760
|
+
*/
|
|
761
|
+
editBoxPreSelectedColor: number;
|
|
762
|
+
/**
|
|
763
|
+
* @description 编辑包围盒预选透明度
|
|
764
|
+
*/
|
|
765
|
+
editBoxPreSelectedAlpha: number;
|
|
766
|
+
/**
|
|
767
|
+
* @description 编辑包围盒预选线框颜色
|
|
768
|
+
*/
|
|
769
|
+
editBoxLinePreSelectedColor: number;
|
|
770
|
+
/**
|
|
771
|
+
* @description 编辑包围盒预选线框透明度
|
|
772
|
+
*/
|
|
773
|
+
editBoxLinePreSelectedAlpha: number;
|
|
774
|
+
/**
|
|
775
|
+
* @description 已更改编辑包围盒预选颜色
|
|
776
|
+
*/
|
|
777
|
+
hasChangedEditBoxPreSelectedColor: number;
|
|
778
|
+
/**
|
|
779
|
+
* @description 已更改编辑包围盒预选透明度
|
|
780
|
+
*/
|
|
781
|
+
hasChangedEditBoxPreSelectedAlpha: number;
|
|
782
|
+
/**
|
|
783
|
+
* @description 已更改编辑包围盒线框颜色
|
|
784
|
+
*/
|
|
785
|
+
hasChangedEditBoxLinePreSelectedColor: number;
|
|
786
|
+
/**
|
|
787
|
+
* @description 已更改编辑包围盒线框透明度
|
|
788
|
+
*/
|
|
789
|
+
hasChangedEditBoxLinePreSelectedAlpha: number;
|
|
790
|
+
/**
|
|
791
|
+
* @description 选中状态标记包围盒颜色
|
|
792
|
+
*/
|
|
793
|
+
editBoxSelectedColor: number;
|
|
794
|
+
/**
|
|
795
|
+
* @description 选中状态标记包围盒颜色
|
|
796
|
+
*/
|
|
797
|
+
editBoxSelectedAlpha: number;
|
|
798
|
+
};
|
|
799
|
+
export type IconGizmoConfig = {
|
|
800
|
+
/**
|
|
801
|
+
* @description 自动展示
|
|
802
|
+
*/
|
|
803
|
+
autoShow: boolean;
|
|
804
|
+
/**
|
|
805
|
+
* @description 图标地址
|
|
806
|
+
*/
|
|
807
|
+
videoPlayUrl: string;
|
|
808
|
+
/**
|
|
809
|
+
* @description 距离右下角偏移值
|
|
810
|
+
*/
|
|
811
|
+
videoPlayShift: [number, number];
|
|
812
|
+
/**
|
|
813
|
+
* @description 宽
|
|
814
|
+
*/
|
|
815
|
+
videoPlayWidth: number;
|
|
816
|
+
/**
|
|
817
|
+
* @description 高
|
|
818
|
+
*/
|
|
819
|
+
videoPlayHeight: number;
|
|
820
|
+
imageGeneratorUrl: string;
|
|
821
|
+
videoGeneratorUrl: string;
|
|
822
|
+
generatorWidth: number;
|
|
823
|
+
generatorHeight: number;
|
|
824
|
+
};
|
|
825
|
+
export type ItemCreateGizmoConfig = {
|
|
826
|
+
/**
|
|
827
|
+
* @description 边框颜色
|
|
828
|
+
*/
|
|
829
|
+
frameBorderColor: number;
|
|
830
|
+
/**
|
|
831
|
+
* @description 边框宽度
|
|
832
|
+
*/
|
|
833
|
+
frameBorderWidth: number;
|
|
834
|
+
/**
|
|
835
|
+
* @description 边框透明度
|
|
836
|
+
*/
|
|
837
|
+
frameBorderAlpha: number;
|
|
838
|
+
/**
|
|
839
|
+
* @description 填充颜色
|
|
840
|
+
*/
|
|
841
|
+
frameFillColor: number;
|
|
842
|
+
/**
|
|
843
|
+
* @description 填充透明度
|
|
844
|
+
*/
|
|
845
|
+
frameFillAlpha: number;
|
|
846
|
+
/**
|
|
847
|
+
* @description 选中子元素包围盒透明度
|
|
848
|
+
*/
|
|
849
|
+
frameChildBoxAlpha: number;
|
|
850
|
+
/**
|
|
851
|
+
* @description 选中子元素包围盒颜色
|
|
852
|
+
*/
|
|
853
|
+
frameChildBoxColor: number;
|
|
854
|
+
};
|
|
855
|
+
export declare const BaseConfig: SDKConfig;
|