@soonspacejs/plugin-flow 2.14.2 → 2.14.3

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.
@@ -1,10 +1,8 @@
1
- import { Object3D } from 'three';
2
1
  import { FlowParser } from '../FlowParser';
3
2
  import { NodeGlobalType, NodeType } from '../types';
4
3
  import { Node } from './Node';
5
4
  declare class EmissiveNode extends Node {
6
5
  constructor(parser: FlowParser, node: NodeType);
7
- filterEmissiveObject(objectsValue: Object3D[] | Object3D): Object3D<import('three').Object3DEventMap>[];
8
6
  exec(global: NodeGlobalType): Promise<void>;
9
7
  }
10
8
  export { EmissiveNode, };
@@ -1,10 +1,8 @@
1
- import { Object3D } from 'three';
2
1
  import { FlowParser } from '../FlowParser';
3
2
  import { NodeGlobalType, NodeType } from '../types';
4
3
  import { Node } from './Node';
5
4
  declare class HighlightNode extends Node {
6
5
  constructor(parser: FlowParser, node: NodeType);
7
- filterHighlightObject(objectsValue: Object3D[] | Object3D): Object3D<import('three').Object3DEventMap>[];
8
6
  exec(global: NodeGlobalType): Promise<void>;
9
7
  }
10
8
  export { HighlightNode, };
@@ -1,10 +1,8 @@
1
- import { Object3D } from 'three';
2
1
  import { FlowParser } from '../FlowParser';
3
2
  import { NodeGlobalType, NodeType } from '../types';
4
3
  import { Node } from './Node';
5
4
  declare class OpacityNode extends Node {
6
5
  constructor(parser: FlowParser, node: NodeType);
7
- filterOpacityObject(objectsValue: Object3D[] | Object3D): Object3D<import('three').Object3DEventMap>[];
8
6
  exec(global: NodeGlobalType): Promise<void>;
9
7
  }
10
8
  export { OpacityNode, };
@@ -1,10 +1,8 @@
1
- import { Object3D } from 'three';
2
1
  import { FlowParser } from '../FlowParser';
3
2
  import { NodeGlobalType, NodeType } from '../types';
4
3
  import { Node } from './Node';
5
4
  declare class UnEmissiveNode extends Node {
6
5
  constructor(parser: FlowParser, node: NodeType);
7
- filterUnEmissiveObject(objectsValue: Object3D[] | Object3D): Object3D<import('three').Object3DEventMap>[];
8
6
  exec(global: NodeGlobalType): Promise<void>;
9
7
  }
10
8
  export { UnEmissiveNode, };
@@ -1,10 +1,8 @@
1
- import { Object3D } from 'three';
2
1
  import { FlowParser } from '../FlowParser';
3
2
  import { NodeGlobalType, NodeType } from '../types';
4
3
  import { Node } from './Node';
5
4
  declare class UnHighlightNode extends Node {
6
5
  constructor(parser: FlowParser, node: NodeType);
7
- filterUnHighlightObject(objectsValue: Object3D[] | Object3D): Object3D<import('three').Object3DEventMap>[];
8
6
  exec(global: NodeGlobalType): Promise<void>;
9
7
  }
10
8
  export { UnHighlightNode, };
@@ -1,10 +1,8 @@
1
- import { Object3D } from 'three';
2
1
  import { FlowParser } from '../FlowParser';
3
2
  import { NodeGlobalType, NodeType } from '../types';
4
3
  import { Node } from './Node';
5
4
  declare class UnOpacityNode extends Node {
6
5
  constructor(parser: FlowParser, node: NodeType);
7
- filterUnOpacityObject(objectsValue: Object3D[] | Object3D): Object3D<import('three').Object3DEventMap>[];
8
6
  exec(global: NodeGlobalType): Promise<void>;
9
7
  }
10
8
  export { UnOpacityNode, };
package/dist/index.esm.js CHANGED
@@ -1,6 +1,6 @@
1
- import { Vector3 as b, Euler as S, EventDispatcher as z } from "three";
1
+ import { Vector3 as I, Euler as S, EventDispatcher as z } from "three";
2
2
  import T from "soonspacejs";
3
- import { AnimationPlayer as k } from "umanager-animation-parser";
3
+ import { AnimationPlayer as U } from "umanager-animation-parser";
4
4
  import { InteractionType as L, InteractionObsType as j, FlowParser as Y, InteractionAction as $ } from "@soonspacejs/plugin-flow";
5
5
  class K {
6
6
  id;
@@ -167,158 +167,161 @@ class tt extends f {
167
167
  t && s && this.writeContext(l(s.value), l(t.value));
168
168
  }
169
169
  }
170
- const { objectHandle: st } = T.utils;
171
- class et extends f {
170
+ const { objectHandle: Zt } = T.utils;
171
+ class st extends f {
172
172
  constructor(t, s) {
173
173
  super(t, s);
174
174
  }
175
- filterHighlightObject(t) {
176
- const s = [];
177
- return st(t, (i) => {
178
- this.ssp.viewport.scener.selectedObjects.highlight.has(i) || s.push(i);
179
- }), s;
180
- }
175
+ // filterHighlightObject ( objectsValue: Object3D[] | Object3D ) {
176
+ // const objects: Object3D[] = []
177
+ // objectHandle( objectsValue, obj => {
178
+ // if ( !this.ssp.viewport.scener.selectedObjects.highlight.has( obj ) ) {
179
+ // objects.push( obj )
180
+ // }
181
+ // } )
182
+ // return objects
183
+ // }
181
184
  async exec(t) {
182
185
  const s = this.findProp("objects", [n.READ_CTX, n.LOCAL]), i = this.findProp("color", [n.READ_CTX, n.LOCAL]), o = this.findProp("opacity", [n.READ_CTX, n.LOCAL]), a = await t.getTarget?.(this);
183
186
  if (s && i && o) {
184
187
  const c = this.getValue(s, a), h = this.getValue(i), u = this.getValue(o);
185
- if (c) {
186
- const d = this.filterHighlightObject(c);
187
- this.ssp.highlightShow(d, { color: h, opacity: u }), this.cleanSets.add(() => {
188
- this.ssp.unHighlightShow(d);
189
- });
190
- }
188
+ c && (this.ssp.highlightShow(c, { color: h, opacity: u }), this.cleanSets.add(() => {
189
+ this.ssp.unHighlightShow(c);
190
+ }));
191
191
  }
192
192
  }
193
193
  }
194
- const { objectHandle: it } = T.utils;
195
- class ot extends f {
194
+ const { objectHandle: Qt } = T.utils;
195
+ class et extends f {
196
196
  constructor(t, s) {
197
197
  super(t, s);
198
198
  }
199
- filterUnHighlightObject(t) {
200
- const s = [];
201
- return it(t, (i) => {
202
- this.ssp.viewport.scener.selectedObjects.highlight.has(i) && s.push(i);
203
- }), s;
204
- }
199
+ // filterUnHighlightObject ( objectsValue: Object3D[] | Object3D ) {
200
+ // const objects: Object3D[] = []
201
+ // objectHandle( objectsValue, obj => {
202
+ // if ( this.ssp.viewport.scener.selectedObjects.highlight.has( obj ) ) {
203
+ // objects.push( obj )
204
+ // }
205
+ // } )
206
+ // return objects
207
+ // }
205
208
  async exec(t) {
206
209
  const s = this.findProp("objects", [n.READ_CTX, n.LOCAL]), i = await t.getTarget?.(this);
207
210
  if (s) {
208
211
  const o = this.getValue(s, i);
209
- if (o) {
210
- const a = this.filterUnHighlightObject(o);
211
- this.ssp.unHighlightShow(a), this.cleanSets.add(() => {
212
- this.ssp.highlightShow(a);
213
- });
214
- }
212
+ o && (this.ssp.unHighlightShow(o), this.cleanSets.add(() => {
213
+ this.ssp.highlightShow(o);
214
+ }));
215
215
  }
216
216
  }
217
217
  }
218
- const { objectHandle: nt } = T.utils;
219
- class at extends f {
218
+ const { objectHandle: it } = T.utils;
219
+ class ot extends f {
220
220
  constructor(t, s) {
221
221
  super(t, s);
222
222
  }
223
- filterOpacityObject(t) {
224
- const s = [];
225
- return nt(t, (i) => {
226
- this.ssp.viewport.scener.selectedObjects.opacity.has(i) || s.push(i);
227
- }), s;
228
- }
223
+ // filterOpacityObject ( objectsValue: Object3D[] | Object3D ) {
224
+ // const objects: Object3D[] = []
225
+ // objectHandle( objectsValue, obj => {
226
+ // if ( !this.ssp.viewport.scener.selectedObjects.opacity.has( obj ) ) {
227
+ // objects.push( obj )
228
+ // }
229
+ // } )
230
+ // return objects
231
+ // }
229
232
  async exec(t) {
230
233
  const s = this.findProp("objects", [n.READ_CTX, n.LOCAL]), i = this.findProp("color", [n.READ_CTX, n.LOCAL]), o = this.findProp("opacity", [n.READ_CTX, n.LOCAL]), a = await t.getTarget?.(this);
231
234
  if (s && i && o) {
232
235
  const c = this.getValue(s, a), h = this.getValue(i), u = this.getValue(o);
233
236
  if (c) {
234
- const d = this.filterOpacityObject(c);
235
- this.ssp.opacityShow(d, { color: h, opacity: u }), this.cleanSets.add(() => {
236
- this.ssp.unOpacityShow(d);
237
+ const C = it(c, (d) => d);
238
+ this.ssp.opacityShow(C, { color: h, opacity: u }), this.cleanSets.add(() => {
239
+ this.ssp.unOpacityShow(C);
237
240
  });
238
241
  }
239
242
  }
240
243
  }
241
244
  }
242
- const { objectHandle: ct } = T.utils;
243
- class rt extends f {
245
+ const { objectHandle: ts } = T.utils;
246
+ class nt extends f {
244
247
  constructor(t, s) {
245
248
  super(t, s);
246
249
  }
247
- filterUnOpacityObject(t) {
248
- const s = [];
249
- return ct(t, (i) => {
250
- this.ssp.viewport.scener.selectedObjects.opacity.has(i) && s.push(i);
251
- }), s;
252
- }
250
+ // filterUnOpacityObject ( objectsValue: Object3D[] | Object3D ) {
251
+ // const objects: Object3D[] = []
252
+ // objectHandle( objectsValue, obj => {
253
+ // if ( this.ssp.viewport.scener.selectedObjects.opacity.has( obj ) ) {
254
+ // objects.push( obj )
255
+ // }
256
+ // } )
257
+ // return objects
258
+ // }
253
259
  async exec(t) {
254
260
  const s = this.findProp("objects", [n.READ_CTX, n.LOCAL]), i = await t.getTarget?.(this);
255
261
  if (s) {
256
262
  const o = this.getValue(s, i);
257
- if (o) {
258
- const a = this.filterUnOpacityObject(o);
259
- this.ssp.unOpacityShow(a), this.cleanSets.add(() => {
260
- this.ssp.opacityShow(a);
261
- });
262
- }
263
+ o && (this.ssp.unOpacityShow(o), this.cleanSets.add(() => {
264
+ this.ssp.opacityShow(o);
265
+ }));
263
266
  }
264
267
  }
265
268
  }
266
- const { objectHandle: lt } = T.utils;
267
- class ht extends f {
269
+ const { objectHandle: ss } = T.utils;
270
+ class at extends f {
268
271
  constructor(t, s) {
269
272
  super(t, s);
270
273
  }
271
- filterEmissiveObject(t) {
272
- const s = [];
273
- return lt(t, (i) => {
274
- this.ssp.viewport.scener.selectedObjects.emissive.has(i) || s.push(i);
275
- }), s;
276
- }
274
+ // filterEmissiveObject ( objectsValue: Object3D[] | Object3D ) {
275
+ // const objects: Object3D[] = []
276
+ // objectHandle( objectsValue, obj => {
277
+ // if ( !this.ssp.viewport.scener.selectedObjects.emissive.has( obj ) ) {
278
+ // objects.push( obj )
279
+ // }
280
+ // } )
281
+ // return objects
282
+ // }
277
283
  async exec(t) {
278
284
  const s = this.findProp("objects", [n.READ_CTX, n.LOCAL]), i = this.findProp("color", [n.READ_CTX, n.LOCAL]), o = this.findProp("baseColor", [n.READ_CTX, n.LOCAL]), a = this.findProp("minOpacity", [n.READ_CTX, n.LOCAL]), c = this.findProp("maxOpacity", [n.READ_CTX, n.LOCAL]), h = this.findProp("duration", [n.READ_CTX, n.LOCAL]), u = await t.getTarget?.(this);
279
285
  if (s && i && o && a && c && h) {
280
- const d = this.getValue(s, u), C = this.getValue(i), P = this.getValue(o), x = this.getValue(a), p = this.getValue(c), O = this.getValue(h);
281
- if (d) {
282
- const A = this.filterEmissiveObject(d);
283
- this.ssp.emissiveShow(A, {
284
- color: C,
285
- baseColor: P,
286
- minOpacity: x,
287
- maxOpacity: p,
288
- duration: O
289
- }), this.cleanSets.add(() => {
290
- this.ssp.unEmissiveShow(A);
291
- });
292
- }
286
+ const C = this.getValue(s, u), d = this.getValue(i), O = this.getValue(o), b = this.getValue(a), p = this.getValue(c), A = this.getValue(h);
287
+ C && (this.ssp.emissiveShow(C, {
288
+ color: d,
289
+ baseColor: O,
290
+ minOpacity: b,
291
+ maxOpacity: p,
292
+ duration: A
293
+ }), this.cleanSets.add(() => {
294
+ this.ssp.unEmissiveShow(C);
295
+ }));
293
296
  }
294
297
  }
295
298
  }
296
- const { objectHandle: ut } = T.utils;
297
- class dt extends f {
299
+ const { objectHandle: es } = T.utils;
300
+ class ct extends f {
298
301
  constructor(t, s) {
299
302
  super(t, s);
300
303
  }
301
- filterUnEmissiveObject(t) {
302
- const s = [];
303
- return ut(t, (i) => {
304
- this.ssp.viewport.scener.selectedObjects.emissive.has(i) && s.push(i);
305
- }), s;
306
- }
304
+ // filterUnEmissiveObject ( objectsValue: Object3D[] | Object3D ) {
305
+ // const objects: Object3D[] = []
306
+ // objectHandle( objectsValue, obj => {
307
+ // if ( this.ssp.viewport.scener.selectedObjects.emissive.has( obj ) ) {
308
+ // objects.push( obj )
309
+ // }
310
+ // } )
311
+ // return objects
312
+ // }
307
313
  async exec(t) {
308
314
  const s = this.findProp("objects", [n.READ_CTX, n.LOCAL]), i = await t.getTarget?.(this);
309
315
  if (s) {
310
316
  const o = this.getValue(s, i);
311
- if (o) {
312
- const a = this.filterUnEmissiveObject(o);
313
- this.ssp.unEmissiveShow(a), this.cleanSets.add(() => {
314
- this.ssp.emissiveShow(a);
315
- });
316
- }
317
+ o && (this.ssp.unEmissiveShow(o), this.cleanSets.add(() => {
318
+ this.ssp.emissiveShow(o);
319
+ }));
317
320
  }
318
321
  }
319
322
  }
320
323
  const y = Symbol("meshCache");
321
- class pt extends f {
324
+ class rt extends f {
322
325
  constructor(t, s) {
323
326
  super(t, s);
324
327
  }
@@ -328,18 +331,18 @@ class pt extends f {
328
331
  const o = this.findProp("mesh", n.LOCAL), a = this.findProp("out", n.WRITE_CTX);
329
332
  if (o && a) {
330
333
  let c = null;
331
- const h = l(o.value), u = l(a.value), d = t[y][h];
332
- if (d) {
333
- c = d;
334
+ const h = l(o.value), u = l(a.value), C = t[y][h];
335
+ if (C) {
336
+ c = C;
334
337
  return;
335
338
  }
336
- const C = _(i, h);
337
- C && (c = C, t[y][h] = C), this.writeContext(u, c);
339
+ const d = x(i, h);
340
+ d && (c = d, t[y][h] = d), this.writeContext(u, c);
338
341
  }
339
342
  }
340
343
  }
341
344
  const M = Symbol("meshesCache");
342
- class ft extends f {
345
+ class lt extends f {
343
346
  constructor(t, s) {
344
347
  super(t, s);
345
348
  }
@@ -349,19 +352,19 @@ class ft extends f {
349
352
  const o = this.findProp("meshes", n.LOCAL), a = this.findProp("out", n.WRITE_CTX);
350
353
  if (o && a) {
351
354
  const c = [], h = l(o.value), u = l(a.value);
352
- h.forEach((d) => {
353
- const C = t[M][d];
354
- if (C) {
355
- c.push(C);
355
+ h.forEach((C) => {
356
+ const d = t[M][C];
357
+ if (d) {
358
+ c.push(d);
356
359
  return;
357
360
  }
358
- const P = _(i, d);
359
- P && (c.push(P), t[M][d] = P);
361
+ const O = x(i, C);
362
+ O && (c.push(O), t[M][C] = O);
360
363
  }), this.writeContext(u, c);
361
364
  }
362
365
  }
363
366
  }
364
- class Ct extends f {
367
+ class ht extends f {
365
368
  constructor(t, s) {
366
369
  super(t, s);
367
370
  }
@@ -373,7 +376,7 @@ class Ct extends f {
373
376
  }
374
377
  }
375
378
  }
376
- class Ot extends f {
379
+ class ut extends f {
377
380
  constructor(t, s) {
378
381
  super(t, s);
379
382
  }
@@ -381,11 +384,11 @@ class Ot extends f {
381
384
  const t = this.findProp("models", n.LOCAL), s = this.findProp("out", n.WRITE_CTX);
382
385
  if (t && s) {
383
386
  const i = l(t.value), o = l(s.value);
384
- this.writeContext(o, Gt(this.ssp, i));
387
+ this.writeContext(o, jt(this.ssp, i));
385
388
  }
386
389
  }
387
390
  }
388
- class At extends f {
391
+ class dt extends f {
389
392
  constructor(t, s) {
390
393
  super(t, s);
391
394
  }
@@ -397,7 +400,7 @@ class At extends f {
397
400
  }
398
401
  }
399
402
  }
400
- class gt extends f {
403
+ class pt extends f {
401
404
  constructor(t, s) {
402
405
  super(t, s);
403
406
  }
@@ -421,7 +424,7 @@ class gt extends f {
421
424
  }
422
425
  }
423
426
  const { objectHandle: X } = T.utils;
424
- class Pt extends f {
427
+ class ft extends f {
425
428
  constructor(t, s) {
426
429
  super(t, s);
427
430
  }
@@ -446,14 +449,14 @@ class Pt extends f {
446
449
  }
447
450
  }
448
451
  }
449
- const { objectHandle: U } = T.utils;
450
- class Tt extends f {
452
+ const { objectHandle: k } = T.utils;
453
+ class Ct extends f {
451
454
  constructor(t, s) {
452
455
  super(t, s);
453
456
  }
454
457
  filterHideObject(t) {
455
458
  const s = [];
456
- return U(t, (i) => {
459
+ return k(t, (i) => {
457
460
  i.visible === !0 && s.push(i);
458
461
  }), s;
459
462
  }
@@ -463,7 +466,7 @@ class Tt extends f {
463
466
  const o = this.getValue(s, i);
464
467
  if (o) {
465
468
  const a = this.filterHideObject(o), c = (h) => {
466
- U(a, (u) => {
469
+ k(a, (u) => {
467
470
  u.visible = h;
468
471
  }), this.ssp.render();
469
472
  };
@@ -473,7 +476,7 @@ class Tt extends f {
473
476
  }
474
477
  }
475
478
  const { objectHandle: D } = T.utils;
476
- class Et extends f {
479
+ class At extends f {
477
480
  constructor(t, s) {
478
481
  super(t, s);
479
482
  }
@@ -482,43 +485,43 @@ class Et extends f {
482
485
  if (s && i && o) {
483
486
  const c = this.getValue(s, a), h = this.getValue(i), u = this.getValue(o);
484
487
  if (c) {
485
- const d = [];
488
+ const C = [];
486
489
  D(c, (p) => {
487
- d.push(p.position.clone());
490
+ C.push(p.position.clone());
488
491
  });
489
- const P = (p, O) => {
492
+ const O = (p, A) => {
490
493
  switch (h) {
491
494
  case "x":
492
- p.setX(O.x);
495
+ p.setX(A.x);
493
496
  break;
494
497
  case "y":
495
- p.setY(O.y);
498
+ p.setY(A.y);
496
499
  break;
497
500
  case "z":
498
- p.setZ(O.z);
501
+ p.setZ(A.z);
499
502
  break;
500
503
  }
501
504
  };
502
505
  await (async () => {
503
- const p = D(c, async (O) => {
504
- const A = O.position.clone();
506
+ const p = D(c, async (A) => {
507
+ const g = A.position.clone();
505
508
  switch (h) {
506
509
  case "x":
507
- await this.ssp.animation(A, new b().set(A.x + u, A.y, A.z), { duration: 800 }, (g) => P(O.position, g));
510
+ await this.ssp.animation(g, new I().set(g.x + u, g.y, g.z), { duration: 800 }, (P) => O(A.position, P));
508
511
  break;
509
512
  case "y":
510
- await this.ssp.animation(A, new b().set(A.x, A.y + u, A.z), { duration: 800 }, (g) => P(O.position, g));
513
+ await this.ssp.animation(g, new I().set(g.x, g.y + u, g.z), { duration: 800 }, (P) => O(A.position, P));
511
514
  break;
512
515
  case "z":
513
- await this.ssp.animation(A, new b().set(A.x, A.y, A.z + u), { duration: 800 }, (g) => P(O.position, g));
516
+ await this.ssp.animation(g, new I().set(g.x, g.y, g.z + u), { duration: 800 }, (P) => O(A.position, P));
514
517
  break;
515
518
  }
516
519
  });
517
520
  p instanceof Array ? await Promise.all(p) : await p, this.ssp.render();
518
521
  })(), this.cleanSets.add(() => {
519
522
  let p = 0;
520
- D(c, (O) => {
521
- O.position.copy(d[p++]);
523
+ D(c, (A) => {
524
+ A.position.copy(C[p++]);
522
525
  });
523
526
  });
524
527
  }
@@ -526,7 +529,7 @@ class Et extends f {
526
529
  }
527
530
  }
528
531
  const { objectHandle: v } = T.utils;
529
- class wt extends f {
532
+ class gt extends f {
530
533
  constructor(t, s) {
531
534
  super(t, s);
532
535
  }
@@ -535,51 +538,51 @@ class wt extends f {
535
538
  if (s && i && o) {
536
539
  const c = this.getValue(s, a), h = this.getValue(i), u = this.getValue(o);
537
540
  if (c) {
538
- const d = [];
541
+ const C = [];
539
542
  v(c, (p) => {
540
- d.push(p.scale.clone());
543
+ C.push(p.scale.clone());
541
544
  });
542
- const P = (p, O) => {
545
+ const O = (p, A) => {
543
546
  switch (h) {
544
547
  case "x":
545
- p.setX(O.x);
548
+ p.setX(A.x);
546
549
  break;
547
550
  case "y":
548
- p.setY(O.y);
551
+ p.setY(A.y);
549
552
  break;
550
553
  case "z":
551
- p.setZ(O.z);
554
+ p.setZ(A.z);
552
555
  break;
553
556
  }
554
557
  };
555
558
  await (async () => {
556
- const p = v(c, async (O) => {
557
- const A = O.scale.clone();
559
+ const p = v(c, async (A) => {
560
+ const g = A.scale.clone();
558
561
  switch (h) {
559
562
  case "x":
560
- await this.ssp.animation(A, new b().set(A.x * u, A.y, A.z), { duration: 800 }, (g) => P(O.scale, g));
563
+ await this.ssp.animation(g, new I().set(g.x * u, g.y, g.z), { duration: 800 }, (P) => O(A.scale, P));
561
564
  break;
562
565
  case "y":
563
- await this.ssp.animation(A, new b().set(A.x, A.y * u, A.z), { duration: 800 }, (g) => P(O.scale, g));
566
+ await this.ssp.animation(g, new I().set(g.x, g.y * u, g.z), { duration: 800 }, (P) => O(A.scale, P));
564
567
  break;
565
568
  case "z":
566
- await this.ssp.animation(A, new b().set(A.x, A.y, A.z * u), { duration: 800 }, (g) => P(O.scale, g));
569
+ await this.ssp.animation(g, new I().set(g.x, g.y, g.z * u), { duration: 800 }, (P) => O(A.scale, P));
567
570
  break;
568
571
  }
569
572
  });
570
573
  p instanceof Array ? await Promise.all(p) : await p, this.ssp.render();
571
574
  })(), this.cleanSets.add(() => {
572
575
  let p = 0;
573
- v(c, (O) => {
574
- O.scale.copy(d[p++]);
576
+ v(c, (A) => {
577
+ A.scale.copy(C[p++]);
575
578
  });
576
579
  });
577
580
  }
578
581
  }
579
582
  }
580
583
  }
581
- const { objectHandle: H } = T.utils;
582
- class Lt extends f {
584
+ const { objectHandle: V } = T.utils;
585
+ class Pt extends f {
583
586
  constructor(t, s) {
584
587
  super(t, s);
585
588
  }
@@ -588,50 +591,50 @@ class Lt extends f {
588
591
  if (s && i && o) {
589
592
  const c = this.getValue(s, a), h = this.getValue(i), u = this.getValue(o);
590
593
  if (c) {
591
- const d = [];
592
- H(c, (p) => {
593
- d.push(p.rotation.clone());
594
+ const C = [];
595
+ V(c, (p) => {
596
+ C.push(p.rotation.clone());
594
597
  });
595
- const P = (p, O) => {
598
+ const O = (p, A) => {
596
599
  switch (h) {
597
600
  case "x":
598
- p.x = O.x;
601
+ p.x = A.x;
599
602
  break;
600
603
  case "y":
601
- p.y = O.y;
604
+ p.y = A.y;
602
605
  break;
603
606
  case "z":
604
- p.z = O.z;
607
+ p.z = A.z;
605
608
  break;
606
609
  }
607
610
  };
608
611
  await (async () => {
609
- const p = u / 180 * Math.PI, O = H(c, async (A) => {
610
- const g = A.rotation.clone();
612
+ const p = u / 180 * Math.PI, A = V(c, async (g) => {
613
+ const P = g.rotation.clone();
611
614
  switch (h) {
612
615
  case "x":
613
- await this.ssp.animation(g, new S().set(g.x + p, g.y, g.z), { duration: 800 }, (m) => P(A.rotation, m));
616
+ await this.ssp.animation(P, new S().set(P.x + p, P.y, P.z), { duration: 800 }, (m) => O(g.rotation, m));
614
617
  break;
615
618
  case "y":
616
- await this.ssp.animation(g, new S().set(g.x, g.y + p, g.z), { duration: 800 }, (m) => P(A.rotation, m));
619
+ await this.ssp.animation(P, new S().set(P.x, P.y + p, P.z), { duration: 800 }, (m) => O(g.rotation, m));
617
620
  break;
618
621
  case "z":
619
- await this.ssp.animation(g, new S().set(g.x, g.y, g.z + p), { duration: 800 }, (m) => P(A.rotation, m));
622
+ await this.ssp.animation(P, new S().set(P.x, P.y, P.z + p), { duration: 800 }, (m) => O(g.rotation, m));
620
623
  break;
621
624
  }
622
625
  });
623
- O instanceof Array ? await Promise.all(O) : await O, this.ssp.render();
626
+ A instanceof Array ? await Promise.all(A) : await A, this.ssp.render();
624
627
  })(), this.cleanSets.add(() => {
625
628
  let p = 0;
626
- H(c, (O) => {
627
- O.rotation.copy(d[p++]);
629
+ V(c, (A) => {
630
+ A.rotation.copy(C[p++]);
628
631
  });
629
632
  });
630
633
  }
631
634
  }
632
635
  }
633
636
  }
634
- class bt extends f {
637
+ class Ot extends f {
635
638
  constructor(t, s) {
636
639
  super(t, s);
637
640
  }
@@ -643,7 +646,7 @@ class bt extends f {
643
646
  }
644
647
  }
645
648
  }
646
- class mt extends f {
649
+ class Tt extends f {
647
650
  constructor(t, s) {
648
651
  super(t, s);
649
652
  }
@@ -655,7 +658,7 @@ class mt extends f {
655
658
  }
656
659
  }
657
660
  }
658
- class It extends f {
661
+ class Et extends f {
659
662
  constructor(t, s) {
660
663
  super(t, s);
661
664
  }
@@ -667,7 +670,7 @@ class It extends f {
667
670
  }
668
671
  }
669
672
  }
670
- class Nt extends f {
673
+ class wt extends f {
671
674
  constructor(t, s) {
672
675
  super(t, s);
673
676
  }
@@ -679,7 +682,7 @@ class Nt extends f {
679
682
  }
680
683
  }
681
684
  }
682
- class _t extends f {
685
+ class Lt extends f {
683
686
  constructor(t, s) {
684
687
  super(t, s);
685
688
  }
@@ -691,7 +694,7 @@ class _t extends f {
691
694
  }
692
695
  }
693
696
  }
694
- class xt extends f {
697
+ class It extends f {
695
698
  constructor(t, s) {
696
699
  super(t, s);
697
700
  }
@@ -699,19 +702,19 @@ class xt extends f {
699
702
  const t = this.findProp("value", n.LOCAL), s = this.findProp("object", n.LOCAL), i = this.findProp("out", n.WRITE_CTX), o = this.findProp("extraction", n.LOCAL);
700
703
  if (t && i && o && s) {
701
704
  const a = l(o.value), c = l(i.value), h = l(s.value), u = this.getValue(s);
702
- let d = l(t.value);
705
+ let C = l(t.value);
703
706
  if (this.ctx._userDataMap) {
704
- const C = this.ctx._userDataMap.get(h);
705
- C && (d = C[a]);
707
+ const d = this.ctx._userDataMap.get(h);
708
+ d && (C = d[a]);
706
709
  } else if (u && u.userData.properties) {
707
- const C = u.userData.properties.find((P) => P.key === a);
708
- C && C.value !== void 0 && (d = C.value);
710
+ const d = u.userData.properties.find((O) => O.key === a);
711
+ d && d.value !== void 0 && (C = d.value);
709
712
  }
710
- this.writeContext(c, d);
713
+ this.writeContext(c, C);
711
714
  }
712
715
  }
713
716
  }
714
- class yt extends f {
717
+ class mt extends f {
715
718
  constructor(t, s) {
716
719
  super(t, s);
717
720
  }
@@ -726,7 +729,7 @@ class yt extends f {
726
729
  }
727
730
  }
728
731
  }
729
- class Mt extends f {
732
+ class Nt extends f {
730
733
  constructor(t, s) {
731
734
  super(t, s);
732
735
  }
@@ -738,7 +741,7 @@ class Mt extends f {
738
741
  }
739
742
  }
740
743
  }
741
- class St extends f {
744
+ class _t extends f {
742
745
  constructor(t, s) {
743
746
  super(t, s);
744
747
  }
@@ -750,7 +753,7 @@ class St extends f {
750
753
  }
751
754
  }
752
755
  }
753
- class Dt extends f {
756
+ class xt extends f {
754
757
  constructor(t, s) {
755
758
  super(t, s);
756
759
  }
@@ -767,7 +770,7 @@ class Dt extends f {
767
770
  }
768
771
  }
769
772
  }
770
- class vt extends f {
773
+ class bt extends f {
771
774
  constructor(t, s) {
772
775
  super(t, s);
773
776
  }
@@ -792,7 +795,7 @@ class vt extends f {
792
795
  }
793
796
  }
794
797
  }
795
- class Ht extends f {
798
+ class yt extends f {
796
799
  constructor(t, s) {
797
800
  super(t, s);
798
801
  }
@@ -815,15 +818,15 @@ class Ht extends f {
815
818
  }
816
819
  }
817
820
  }
818
- const I = /* @__PURE__ */ new Map();
819
- async function Vt(e, t, s) {
820
- const { id: i, keyframes: o } = s, a = new k(e, t);
821
- I.has(i) || I.set(i, /* @__PURE__ */ new Set()), I.get(i)?.add(a), await a.play(o);
821
+ const N = /* @__PURE__ */ new Map();
822
+ async function Mt(e, t, s) {
823
+ const { id: i, keyframes: o } = s, a = new U(e, t);
824
+ N.has(i) || N.set(i, /* @__PURE__ */ new Set()), N.get(i)?.add(a), await a.play(o);
822
825
  }
823
826
  function B(e) {
824
- I.get(e)?.forEach((t) => t.stop()), I.get(e)?.clear();
827
+ N.get(e)?.forEach((t) => t.stop()), N.get(e)?.clear();
825
828
  }
826
- class Rt extends f {
829
+ class St extends f {
827
830
  constructor(t, s) {
828
831
  super(t, s);
829
832
  }
@@ -834,11 +837,11 @@ class Rt extends f {
834
837
  if (a) {
835
838
  const u = await t.getAnimations?.(this, a, c);
836
839
  if (u) {
837
- const d = u.find((C) => C.id === c);
838
- d && await W(async () => {
839
- const C = a.matrix.clone();
840
- await Vt(this.ssp, a, d), this.cleanSets.add(() => {
841
- B(d.id), a && C.decompose(a.position, a.quaternion, a.scale);
840
+ const C = u.find((d) => d.id === c);
841
+ C && await W(async () => {
842
+ const d = a.matrix.clone();
843
+ await Mt(this.ssp, a, C), this.cleanSets.add(() => {
844
+ B(C.id), a && d.decompose(a.position, a.quaternion, a.scale);
842
845
  });
843
846
  }, h);
844
847
  }
@@ -846,7 +849,7 @@ class Rt extends f {
846
849
  }
847
850
  }
848
851
  }
849
- class jt extends f {
852
+ class Dt extends f {
850
853
  constructor(t, s) {
851
854
  super(t, s);
852
855
  }
@@ -858,15 +861,15 @@ class jt extends f {
858
861
  }
859
862
  }
860
863
  }
861
- const N = /* @__PURE__ */ new Map();
862
- async function Xt(e, t, s) {
863
- const { id: i, keyframes: o } = s, a = new k(e, t);
864
- N.has(i) || N.set(i, /* @__PURE__ */ new Set()), N.get(i)?.add(a), await a.play(o);
864
+ const _ = /* @__PURE__ */ new Map();
865
+ async function vt(e, t, s) {
866
+ const { id: i, keyframes: o } = s, a = new U(e, t);
867
+ _.has(i) || _.set(i, /* @__PURE__ */ new Set()), _.get(i)?.add(a), await a.play(o);
865
868
  }
866
869
  function G(e) {
867
- N.get(e)?.forEach((t) => t.stop()), N.get(e)?.clear();
870
+ _.get(e)?.forEach((t) => t.stop()), _.get(e)?.clear();
868
871
  }
869
- class Ut extends f {
872
+ class Vt extends f {
870
873
  constructor(t, s) {
871
874
  super(t, s);
872
875
  }
@@ -877,14 +880,14 @@ class Ut extends f {
877
880
  if (a) {
878
881
  const u = await t.getComponentAnimations?.(this, a, c);
879
882
  if (u) {
880
- const d = u.find((C) => C.id === c);
881
- if (d) {
882
- let C = null;
883
- s.valueType === "Mesh" ? C = a : s.valueType === "Model" && (C = _(a, d.refId)), C && await W(async () => {
884
- if (C) {
885
- const P = C.matrix.clone();
886
- await Xt(this.ssp, C, d), this.cleanSets.add(() => {
887
- G(d.id), C && P.decompose(C.position, C.quaternion, C.scale);
883
+ const C = u.find((d) => d.id === c);
884
+ if (C) {
885
+ let d = null;
886
+ s.valueType === "Mesh" ? d = a : s.valueType === "Model" && (d = x(a, C.refId)), d && await W(async () => {
887
+ if (d) {
888
+ const O = d.matrix.clone();
889
+ await vt(this.ssp, d, C), this.cleanSets.add(() => {
890
+ G(C.id), d && O.decompose(d.position, d.quaternion, d.scale);
888
891
  });
889
892
  }
890
893
  }, h);
@@ -894,7 +897,7 @@ class Ut extends f {
894
897
  }
895
898
  }
896
899
  }
897
- class kt extends f {
900
+ class Rt extends f {
898
901
  constructor(t, s) {
899
902
  super(t, s);
900
903
  }
@@ -906,7 +909,7 @@ class kt extends f {
906
909
  }
907
910
  }
908
911
  }
909
- function Bt(e, t) {
912
+ function Ht(e, t) {
910
913
  switch (t.type) {
911
914
  case r.START:
912
915
  return new Z(e, t);
@@ -915,77 +918,77 @@ function Bt(e, t) {
915
918
  case r.NUMBER:
916
919
  return new tt(e, t);
917
920
  case r.HIGHLIGHT:
918
- return new et(e, t);
921
+ return new st(e, t);
919
922
  case r.UN_HIGHLIGHT:
920
- return new ot(e, t);
923
+ return new et(e, t);
921
924
  case r.OPACITY:
922
- return new at(e, t);
925
+ return new ot(e, t);
923
926
  case r.UN_OPACITY:
924
- return new rt(e, t);
927
+ return new nt(e, t);
925
928
  case r.EMISSIVE:
926
- return new ht(e, t);
929
+ return new at(e, t);
927
930
  case r.UN_EMISSIVE:
928
- return new dt(e, t);
931
+ return new ct(e, t);
929
932
  // 获取对象
930
933
  case r.MESH:
931
- return new pt(e, t);
934
+ return new rt(e, t);
932
935
  case r.MESHES:
933
- return new ft(e, t);
936
+ return new lt(e, t);
934
937
  case r.MODEL:
935
- return new Ct(e, t);
938
+ return new ht(e, t);
936
939
  case r.MODELS:
937
- return new Ot(e, t);
940
+ return new ut(e, t);
938
941
  case r.SPACE:
939
- return new mt(e, t);
942
+ return new Tt(e, t);
940
943
  case r.SPACES:
941
- return new It(e, t);
944
+ return new Et(e, t);
942
945
  case r.POIS:
943
- return new _t(e, t);
946
+ return new Lt(e, t);
944
947
  case r.POI:
945
- return new Nt(e, t);
948
+ return new wt(e, t);
946
949
  case r.PATH:
947
- return new Mt(e, t);
950
+ return new Nt(e, t);
948
951
  case r.PATHS:
949
- return new St(e, t);
952
+ return new _t(e, t);
950
953
  // 逻辑节点
951
954
  case r.DELAY:
952
- return new At(e, t);
955
+ return new dt(e, t);
953
956
  case r.CONDITION_NODE:
954
- return new gt(e, t);
957
+ return new pt(e, t);
955
958
  // 显示隐藏
956
959
  case r.SHOW:
957
- return new Pt(e, t);
960
+ return new ft(e, t);
958
961
  case r.HIDE:
959
- return new Tt(e, t);
962
+ return new Ct(e, t);
960
963
  // 动画相关
961
964
  case r.CLIP_ANIMATION:
962
- return new vt(e, t);
965
+ return new bt(e, t);
963
966
  case r.UN_CLIP_ANIMATION:
964
- return new Ht(e, t);
967
+ return new yt(e, t);
965
968
  case r.TWEEN_ANIMATION:
966
- return new Rt(e, t);
969
+ return new St(e, t);
967
970
  case r.UN_TWEEN_ANIMATION:
968
- return new jt(e, t);
971
+ return new Dt(e, t);
969
972
  case r.COMPONENT_TWEEN_ANIMATION:
970
- return new Ut(e, t);
973
+ return new Vt(e, t);
971
974
  case r.UN_COMPONENT_TWEEN_ANIMATION:
972
- return new kt(e, t);
975
+ return new Rt(e, t);
973
976
  // 移动
974
977
  case r.TRANSLATE:
975
- return new Et(e, t);
978
+ return new At(e, t);
976
979
  case r.ROTATE:
977
- return new Lt(e, t);
980
+ return new Pt(e, t);
978
981
  case r.SCALE:
979
- return new wt(e, t);
982
+ return new gt(e, t);
980
983
  case r.FLY_TO:
981
- return new bt(e, t);
984
+ return new Ot(e, t);
982
985
  // 数据处理节点
983
986
  case r.DATA_EXTRACTION:
984
- return new xt(e, t);
987
+ return new It(e, t);
985
988
  case r.DATA_FILTER:
986
- return new yt(e, t);
989
+ return new mt(e, t);
987
990
  case r.USER_DATA_NODE:
988
- return new Dt(e, t);
991
+ return new xt(e, t);
989
992
  default:
990
993
  return new f(e, t);
991
994
  }
@@ -996,7 +999,7 @@ function l(e) {
996
999
  async function W(e, t) {
997
1000
  t ? await e() : e();
998
1001
  }
999
- function Gt(e, t) {
1002
+ function jt(e, t) {
1000
1003
  return t.map((s) => e.getObjectById(s)).filter(Boolean);
1001
1004
  }
1002
1005
  function E(e, t, s) {
@@ -1005,20 +1008,20 @@ function E(e, t, s) {
1005
1008
  return i;
1006
1009
  {
1007
1010
  const { viewport: { scene: o } } = e;
1008
- return _(s ?? o, t);
1011
+ return x(s ?? o, t);
1009
1012
  }
1010
1013
  }
1011
- function _(e, t) {
1014
+ function x(e, t) {
1012
1015
  if (e.userData.key === t || e.uuid === t) return e;
1013
1016
  for (let s = 0, i = e.children.length; s < i; s++) {
1014
- const o = e.children[s], a = _(o, t);
1017
+ const o = e.children[s], a = x(o, t);
1015
1018
  if (a !== null)
1016
1019
  return a;
1017
1020
  }
1018
1021
  return null;
1019
1022
  }
1020
- const { utils: { sleep: Wt } } = T;
1021
- class Ft extends z {
1023
+ const { utils: { sleep: Xt } } = T;
1024
+ class kt extends z {
1022
1025
  ssp;
1023
1026
  flow;
1024
1027
  nodes;
@@ -1052,7 +1055,7 @@ class Ft extends z {
1052
1055
  this.clear();
1053
1056
  const { nodes: t, edges: s } = this.flow;
1054
1057
  t.forEach((i) => {
1055
- const o = Bt(this, i);
1058
+ const o = Ht(this, i);
1056
1059
  this.addNode(o);
1057
1060
  }), s.forEach((i) => {
1058
1061
  const o = new K(i);
@@ -1076,7 +1079,7 @@ class Ft extends z {
1076
1079
  async debug(t = {}, s = 1500) {
1077
1080
  const i = this.onNodeAfter;
1078
1081
  this.onNodeAfter = async (o) => {
1079
- await Wt(s), i?.(o);
1082
+ await Xt(s), i?.(o);
1080
1083
  }, await this.run(t);
1081
1084
  }
1082
1085
  /**
@@ -1103,14 +1106,14 @@ class Ft extends z {
1103
1106
  this.stop(), this.cleanup();
1104
1107
  }
1105
1108
  }
1106
- class zt extends Ft {
1109
+ class Ut extends kt {
1107
1110
  flow;
1108
1111
  constructor(t, s) {
1109
1112
  super(t, s), this.flow = s;
1110
1113
  }
1111
1114
  }
1112
- const R = (e, t) => e.userData.key === t ? e : e.parent ? R(e.parent, t) : !1, { groupBy: Yt, asyncRunWithCode: $t } = T.utils;
1113
- class Kt {
1115
+ const H = (e, t) => e.userData.key === t ? e : e.parent ? H(e.parent, t) : !1, { groupBy: Bt, asyncRunWithCode: Gt } = T.utils;
1116
+ class Wt {
1114
1117
  ssp;
1115
1118
  interaction;
1116
1119
  flows;
@@ -1120,7 +1123,7 @@ class Kt {
1120
1123
  status = "ready";
1121
1124
  target;
1122
1125
  constructor(t, s, i, o) {
1123
- this.ssp = t, this.interaction = s, this.flows = i, this.flowsMap = Yt(i, "id"), this.options = o || {}, this.init();
1126
+ this.ssp = t, this.interaction = s, this.flows = i, this.flowsMap = Bt(i, "id"), this.options = o || {}, this.init();
1124
1127
  }
1125
1128
  init() {
1126
1129
  switch (this.interaction.type) {
@@ -1164,7 +1167,7 @@ class Kt {
1164
1167
  // 模型事件触发
1165
1168
  modelHandler(t) {
1166
1169
  const { target: s, currentTarget: i } = t, o = this.interaction.editionId;
1167
- o ? (s.sid === o || s.userData.familyId === o) && R(i, this.interaction.modelId) && (this.target = s, this.execBehavior()) : this.interaction.obsTargets?.forEach((a) => {
1170
+ o ? (s.sid === o || s.userData.familyId === o) && H(i, this.interaction.modelId) && (this.target = s, this.execBehavior()) : this.interaction.obsTargets?.forEach((a) => {
1168
1171
  (a === s.userData.id || a === s.userData.sid) && (this.target = s, this.execBehavior());
1169
1172
  });
1170
1173
  }
@@ -1174,7 +1177,7 @@ class Kt {
1174
1177
  const o = this.flowsMap.get(i);
1175
1178
  if (o) {
1176
1179
  const a = new Y(this.ssp, o[0]);
1177
- a.parse(), $t(
1180
+ a.parse(), Gt(
1178
1181
  () => a.run({
1179
1182
  getTarget: s,
1180
1183
  getAnimations: this.options.getAnimations,
@@ -1248,13 +1251,13 @@ class Kt {
1248
1251
  this.disposables.forEach((t) => t());
1249
1252
  }
1250
1253
  }
1251
- var Jt = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.SELF = "SELF", e.OTHER = "OTHER", e))(Jt || {}), F = /* @__PURE__ */ ((e) => (e.FLOW = "FLOW", e.ANIMATION = "ANIMATION", e.DELAY = "DELAY", e))(F || {}), V = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.INSTANCE = "INSTANCE", e.FAMILY = "FAMILY", e))(V || {}), w = /* @__PURE__ */ ((e) => (e.MOUSE_CLICK = "MOUSE_CLICK", e.MOUSE_DB_CLICK = "MOUSE_DB_CLICK", e.MOUSE_RIGHT_CLICK = "MOUSE_RIGHT_CLICK", e.THING_PROP_CHANGE = "THING_PROP_CHANGE", e.THING_EVENT = "THING_EVENT", e.LOADED = "LOADED", e.MODEL_PROP_CHANGE = "MODEL_PROP_CHANGE", e))(w || {});
1252
- const { groupBy: qt, asyncRunWithCode: Zt } = T.utils;
1253
- class is extends Kt {
1254
+ var Ft = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.SELF = "SELF", e.OTHER = "OTHER", e))(Ft || {}), F = /* @__PURE__ */ ((e) => (e.FLOW = "FLOW", e.ANIMATION = "ANIMATION", e.DELAY = "DELAY", e))(F || {}), R = /* @__PURE__ */ ((e) => (e.GLOBAL = "GLOBAL", e.INSTANCE = "INSTANCE", e.FAMILY = "FAMILY", e))(R || {}), w = /* @__PURE__ */ ((e) => (e.MOUSE_CLICK = "MOUSE_CLICK", e.MOUSE_DB_CLICK = "MOUSE_DB_CLICK", e.MOUSE_RIGHT_CLICK = "MOUSE_RIGHT_CLICK", e.THING_PROP_CHANGE = "THING_PROP_CHANGE", e.THING_EVENT = "THING_EVENT", e.LOADED = "LOADED", e.MODEL_PROP_CHANGE = "MODEL_PROP_CHANGE", e))(w || {});
1255
+ const { groupBy: zt, asyncRunWithCode: Yt } = T.utils;
1256
+ class is extends Wt {
1254
1257
  flows;
1255
1258
  flowsMap;
1256
1259
  constructor(t, s, i, o) {
1257
- super(t, s, i, o), this.flows = i, this.flowsMap = qt(i, "id");
1260
+ super(t, s, i, o), this.flows = i, this.flowsMap = zt(i, "id");
1258
1261
  }
1259
1262
  init() {
1260
1263
  switch (this.interaction.type) {
@@ -1284,9 +1287,9 @@ class is extends Kt {
1284
1287
  // 获取交互触发的Mesh
1285
1288
  async getComponentObsTarget(t) {
1286
1289
  const { obsType: s, obsTargets: i } = this.interaction;
1287
- if (s === V.GLOBAL)
1290
+ if (s === R.GLOBAL)
1288
1291
  return null;
1289
- if (s === V.INSTANCE) {
1292
+ if (s === R.INSTANCE) {
1290
1293
  const o = i?.map((a) => {
1291
1294
  const c = E(this.ssp, a);
1292
1295
  return c || console.warn("Component Target not found:", a), c;
@@ -1299,7 +1302,7 @@ class is extends Kt {
1299
1302
  modelHandler(t) {
1300
1303
  const { currentTarget: s } = t;
1301
1304
  this.interaction.obsTargets?.forEach((i) => {
1302
- R(s, i) && this.execBehavior();
1305
+ H(s, i) && this.execBehavior();
1303
1306
  });
1304
1307
  }
1305
1308
  // 物模型事件触发
@@ -1314,8 +1317,8 @@ class is extends Kt {
1314
1317
  t.forEach((i) => {
1315
1318
  const o = this.flowsMap.get(i);
1316
1319
  if (o) {
1317
- const a = new zt(this.ssp, o[0]);
1318
- a.parse(), Zt(
1320
+ const a = new Ut(this.ssp, o[0]);
1321
+ a.parse(), Yt(
1319
1322
  () => a.run({
1320
1323
  getTarget: s
1321
1324
  })
@@ -1358,15 +1361,15 @@ class is extends Kt {
1358
1361
  }
1359
1362
  }
1360
1363
  export {
1361
- zt as ComponentFlowParser,
1364
+ Ut as ComponentFlowParser,
1362
1365
  is as ComponentTrigger,
1363
- Ft as FlowParser,
1366
+ kt as FlowParser,
1364
1367
  F as InteractionAction,
1365
- Jt as InteractionActionType,
1366
- V as InteractionObsType,
1368
+ Ft as InteractionActionType,
1369
+ R as InteractionObsType,
1367
1370
  w as InteractionType,
1368
1371
  f as Node,
1369
1372
  n as NodePropTypeEnum,
1370
1373
  r as NodeTypeEnum,
1371
- Kt as Trigger
1374
+ Wt as Trigger
1372
1375
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@soonspacejs/plugin-flow",
3
3
  "pluginName": "FlowPlugin",
4
- "version": "2.14.2",
4
+ "version": "2.14.3",
5
5
  "description": "FlowPlugin plugin for SoonSpace.js",
6
6
  "main": "dist/index.esm.js",
7
7
  "module": "dist/index.esm.js",
@@ -13,9 +13,9 @@
13
13
  ],
14
14
  "author": "xunwei",
15
15
  "license": "UNLICENSED",
16
- "gitHead": "00bbf1c9241f4466abe494c009c99a316ccfc24a",
16
+ "gitHead": "fd0fa9cd584123a5e8bc9565940ccb68b034cd70",
17
17
  "peerDependencies": {
18
- "soonspacejs": "2.14.2",
18
+ "soonspacejs": "2.14.3",
19
19
  "umanager-animation-parser": "^0.0.6"
20
20
  }
21
21
  }