@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/package.json +1 -1
- package/src/canvas/canvas.d.ts +2 -1
- package/src/canvas/canvas.js +27 -4
- package/src/canvas/canvas.js.map +1 -1
- package/src/core.js +4 -2
- package/src/core.js.map +1 -1
- package/src/diagrams/iframe.d.ts +2 -0
- package/src/diagrams/iframe.js +46 -5
- package/src/diagrams/iframe.js.map +1 -1
- package/src/dialog/dialog.d.ts +1 -0
- package/src/dialog/dialog.js +1 -1
- package/src/dialog/dialog.js.map +1 -1
- package/src/pen/model.d.ts +2 -0
- package/src/pen/model.js.map +1 -1
- package/src/pen/render.js +6 -9
- package/src/pen/render.js.map +1 -1
- package/src/pen/text.js +8 -0
- package/src/pen/text.js.map +1 -1
- package/src/store/store.d.ts +1 -1
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();
|