@tmagic/stage 1.2.0-beta.1 → 1.2.0-beta.2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.0-beta.1",
2
+ "version": "1.2.0-beta.2",
3
3
  "name": "@tmagic/stage",
4
4
  "sideEffects": [
5
5
  "dist/*"
@@ -29,9 +29,9 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@scena/guides": "^0.17.0",
32
- "@tmagic/core": "1.2.0-beta.1",
33
- "@tmagic/schema": "1.2.0-beta.1",
34
- "@tmagic/utils": "1.2.0-beta.1",
32
+ "@tmagic/core": "1.2.0-beta.2",
33
+ "@tmagic/schema": "1.2.0-beta.2",
34
+ "@tmagic/utils": "1.2.0-beta.2",
35
35
  "events": "^3.3.0",
36
36
  "keycon": "^1.1.2",
37
37
  "lodash-es": "^4.17.21",
@@ -395,10 +395,14 @@ export default class StageDragResize extends EventEmitter {
395
395
  this.dragStatus = StageDragStatus.END;
396
396
  const frame = this.moveableHelper?.getFrame(e.target);
397
397
  this.emit('update', {
398
- el: this.target,
399
- style: {
400
- transform: frame?.get('transform'),
401
- },
398
+ data: [
399
+ {
400
+ el: this.target,
401
+ style: {
402
+ transform: frame?.get('transform'),
403
+ },
404
+ },
405
+ ],
402
406
  });
403
407
  });
404
408
  }
@@ -422,10 +426,14 @@ export default class StageDragResize extends EventEmitter {
422
426
  this.dragStatus = StageDragStatus.END;
423
427
  const frame = this.moveableHelper?.getFrame(e.target);
424
428
  this.emit('update', {
425
- el: this.target,
426
- style: {
427
- transform: frame?.get('transform'),
428
- },
429
+ data: [
430
+ {
431
+ el: this.target,
432
+ style: {
433
+ transform: frame?.get('transform'),
434
+ },
435
+ },
436
+ ],
429
437
  });
430
438
  });
431
439
  }