@tmagic/stage 1.7.10 → 1.7.12

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.
@@ -70,7 +70,9 @@ var MoveableOptionsManager = class extends EventEmitter$1 {
70
70
  * @returns moveable所需参数
71
71
  */
72
72
  getOptions(isMultiSelect, runtimeOptions = {}) {
73
- this.options = merge(this.getDefaultOptions(isMultiSelect), this.getCustomizeOptions() || {}, runtimeOptions);
73
+ const defaultOptions = this.getDefaultOptions(isMultiSelect);
74
+ const customizedOptions = this.getCustomizeOptions() || {};
75
+ this.options = merge(defaultOptions, customizedOptions, runtimeOptions);
74
76
  return this.options;
75
77
  }
76
78
  /**
@@ -36,11 +36,11 @@
36
36
  enumerable: true
37
37
  }) : target, mod));
38
38
  //#endregion
39
- events = __toESM(events);
40
- keycon = __toESM(keycon);
41
- moveable_helper = __toESM(moveable_helper);
42
- moveable = __toESM(moveable);
43
- _scena_guides = __toESM(_scena_guides);
39
+ events = __toESM(events, 1);
40
+ keycon = __toESM(keycon, 1);
41
+ moveable_helper = __toESM(moveable_helper, 1);
42
+ moveable = __toESM(moveable, 1);
43
+ _scena_guides = __toESM(_scena_guides, 1);
44
44
  //#region node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js
45
45
  /** Detect free variable `global` from Node.js. */
46
46
  var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
@@ -1651,7 +1651,8 @@
1651
1651
  * @param {Array} [entries] The key-value pairs to cache.
1652
1652
  */
1653
1653
  function Stack(entries) {
1654
- this.size = (this.__data__ = new ListCache(entries)).size;
1654
+ var data = this.__data__ = new ListCache(entries);
1655
+ this.size = data.size;
1655
1656
  }
1656
1657
  Stack.prototype.clear = stackClear;
1657
1658
  Stack.prototype["delete"] = stackDelete;
@@ -2915,7 +2916,9 @@
2915
2916
  * @returns moveable所需参数
2916
2917
  */
2917
2918
  getOptions(isMultiSelect, runtimeOptions = {}) {
2918
- this.options = merge(this.getDefaultOptions(isMultiSelect), this.getCustomizeOptions() || {}, runtimeOptions);
2919
+ const defaultOptions = this.getDefaultOptions(isMultiSelect);
2920
+ const customizedOptions = this.getCustomizeOptions() || {};
2921
+ this.options = merge(defaultOptions, customizedOptions, runtimeOptions);
2919
2922
  return this.options;
2920
2923
  }
2921
2924
  /**
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.10",
2
+ "version": "1.7.12",
3
3
  "name": "@tmagic/stage",
4
4
  "type": "module",
5
5
  "sideEffects": false,
@@ -43,8 +43,8 @@
43
43
  "@types/lodash-es": "^4.17.4"
44
44
  },
45
45
  "peerDependencies": {
46
- "typescript": "^6.0.2",
47
- "@tmagic/core": "1.7.10"
46
+ "typescript": "^6.0.3",
47
+ "@tmagic/core": "1.7.12"
48
48
  },
49
49
  "peerDependenciesMeta": {
50
50
  "typescript": {
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as _tmagic_editor0 from "@tmagic/editor";
1
+ import * as _$_tmagic_editor0 from "@tmagic/editor";
2
2
  import EventEmitter$1, { EventEmitter } from "events";
3
3
  import { SnapdomOptions } from "@zumer/snapdom";
4
4
  import { MoveableManagerInterface, MoveableOptions, OnDrag, OnDragGroup, OnDragGroupStart, OnDragStart, OnResize, OnResizeGroup, OnResizeGroupStart, OnResizeStart, OnRotate, OnRotateStart, OnScale, OnScaleStart, Renderer } from "moveable";
@@ -811,7 +811,7 @@ declare class StageCore extends EventEmitter {
811
811
  */
812
812
  delayedMarkContainer(event: MouseEvent, excludeElList?: Element[]): NodeJS.Timeout | undefined;
813
813
  getMoveableOption<K extends keyof MoveableOptions>(key: K): MoveableOptions[K] | undefined;
814
- getDragStatus(): _tmagic_editor0.StageDragStatus | undefined;
814
+ getDragStatus(): _$_tmagic_editor0.StageDragStatus | undefined;
815
815
  disableMultiSelect(): void;
816
816
  enableMultiSelect(): void;
817
817
  reloadIframe(url: string): void;