@meta2d/core 1.1.0 → 1.1.1

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/src/core.js CHANGED
@@ -1,4 +1,4 @@
1
- import { commonAnchors, commonPens, cube, reset, updateFormData } from './diagrams';
1
+ import { clearIframes, commonAnchors, commonPens, cube, updateIframes, reset, updateFormData } from './diagrams';
2
2
  import { Canvas } from './canvas';
3
3
  import { calcInView, calcTextDrawRect, calcTextLines, calcTextRect, facePen, formatAttrs, getAllChildren, getFromAnchor, getParent, getToAnchor, getWords, LockState, PenType, renderPenRaw, setElemPosition, connectLine, nearestAnchor, setChildValue, isAncestor, isShowChild, CanvasLayer, validationPlugin, setLifeCycleFunc, getAllFollowers, isInteraction, calcWorldAnchors, isDomShapes, defaultFormat, findOutliersByZScore, } from './pen';
4
4
  import { rotatePoint } from './point';
@@ -685,7 +685,7 @@ export class Meta2d {
685
685
  else {
686
686
  this.fitView(true, 10);
687
687
  }
688
- document.title = data.name + "-" + window.name;
688
+ // document.title = data.name + "-" + window.name;
689
689
  }
690
690
  }
691
691
  doSendDataEvent(value, topics) {
@@ -939,6 +939,7 @@ export class Meta2d {
939
939
  if (data.theme) {
940
940
  this.setTheme(data.theme);
941
941
  }
942
+ updateIframes(data.pens);
942
943
  this.setBackgroundImage(data.bkImage, data);
943
944
  Object.assign(this.store.data, data);
944
945
  this.store.data.pens = [];
@@ -6019,6 +6020,7 @@ export class Meta2d {
6019
6020
  setLifeCycleFunc = setLifeCycleFunc;
6020
6021
  destroy(onlyData) {
6021
6022
  this.clear(false);
6023
+ clearIframes();
6022
6024
  this.stopDataMock();
6023
6025
  this.closeSocket();
6024
6026
  this.closeNetwork();