@tmagic/stage 1.3.0-alpha.1 → 1.3.0-alpha.11

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.
@@ -685,6 +685,7 @@
685
685
  mode = Mode.ABSOLUTE;
686
686
  /** 画布容器 */
687
687
  container;
688
+ options = {};
688
689
  /** 水平参考线 */
689
690
  horizontalGuidelines = [];
690
691
  /** 垂直参考线 */
@@ -701,6 +702,9 @@
701
702
  this.container = config.container;
702
703
  this.getRootContainer = config.getRootContainer;
703
704
  }
705
+ getOption(key) {
706
+ return this.options[key];
707
+ }
704
708
  /**
705
709
  * 设置水平/垂直参考线
706
710
  * @param type 参考线类型
@@ -745,7 +749,8 @@
745
749
  getOptions(isMultiSelect, runtimeOptions = {}) {
746
750
  const defaultOptions = this.getDefaultOptions(isMultiSelect);
747
751
  const customizedOptions = this.getCustomizeOptions();
748
- return lodashEs.merge(defaultOptions, customizedOptions, runtimeOptions);
752
+ this.options = lodashEs.merge(defaultOptions, customizedOptions, runtimeOptions);
753
+ return this.options;
749
754
  }
750
755
  /**
751
756
  * 获取单选和多选的moveable公共参数
@@ -1448,6 +1453,14 @@
1448
1453
  getSelectedElList() {
1449
1454
  return this.selectedElList;
1450
1455
  }
1456
+ getMoveableOption(key) {
1457
+ if (this.dr.getTarget()) {
1458
+ return this.dr.getOption(key);
1459
+ }
1460
+ if (this.multiDr.targetList.length) {
1461
+ return this.multiDr.getOption(key);
1462
+ }
1463
+ }
1451
1464
  /**
1452
1465
  * 获取鼠标下方第一个可选中元素,如果元素层叠,返回到是最上层元素
1453
1466
  * @param event 鼠标事件
@@ -2434,6 +2447,9 @@
2434
2447
  delayedMarkContainer(event, excludeElList = []) {
2435
2448
  return this.actionManager.delayedMarkContainer(event, excludeElList);
2436
2449
  }
2450
+ getMoveableOption(key) {
2451
+ return this.actionManager.getMoveableOption(key);
2452
+ }
2437
2453
  /**
2438
2454
  * 销毁实例
2439
2455
  */