@logicflow/extension 2.1.2 → 2.1.4
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +16 -0
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/es/components/mini-map/index.js +2 -1
- package/lib/components/mini-map/index.js +1 -0
- package/package.json +5 -5
- package/src/components/mini-map/index.ts +5 -1
- package/stats.html +1 -1
|
@@ -9,7 +9,7 @@ var __values = (this && this.__values) || function(o) {
|
|
|
9
9
|
};
|
|
10
10
|
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
11
11
|
};
|
|
12
|
-
import { createTeleportContainer } from '@logicflow/vue-node-registry';
|
|
12
|
+
import { createTeleportContainer, destroyTeleportContainer, } from '@logicflow/vue-node-registry';
|
|
13
13
|
var MiniMap = /** @class */ (function () {
|
|
14
14
|
function MiniMap(_a) {
|
|
15
15
|
var lf = _a.lf, LogicFlow = _a.LogicFlow, options = _a.options;
|
|
@@ -519,6 +519,7 @@ var MiniMap = /** @class */ (function () {
|
|
|
519
519
|
this.viewport = div;
|
|
520
520
|
};
|
|
521
521
|
MiniMap.prototype.destroy = function () {
|
|
522
|
+
destroyTeleportContainer(this.lfMap.graphModel.flowId);
|
|
522
523
|
this.lf.off('graph:resize', this.onGraphResize);
|
|
523
524
|
};
|
|
524
525
|
MiniMap.pluginName = 'miniMap';
|
|
@@ -522,6 +522,7 @@ var MiniMap = /** @class */ (function () {
|
|
|
522
522
|
this.viewport = div;
|
|
523
523
|
};
|
|
524
524
|
MiniMap.prototype.destroy = function () {
|
|
525
|
+
(0, vue_node_registry_1.destroyTeleportContainer)(this.lfMap.graphModel.flowId);
|
|
525
526
|
this.lf.off('graph:resize', this.onGraphResize);
|
|
526
527
|
};
|
|
527
528
|
MiniMap.pluginName = 'miniMap';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logicflow/extension",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "LogicFlow Extensions",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"author": "Logicflow-Team",
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@logicflow/
|
|
24
|
-
"@logicflow/
|
|
23
|
+
"@logicflow/vue-node-registry": "1.1.3",
|
|
24
|
+
"@logicflow/core": "2.1.2"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antv/hierarchy": "^0.6.11",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
"preact": "^10.17.1",
|
|
33
33
|
"rangy": "^1.3.1",
|
|
34
34
|
"vanilla-picker": "^2.12.3",
|
|
35
|
-
"@logicflow/
|
|
36
|
-
"@logicflow/
|
|
35
|
+
"@logicflow/core": "2.1.2",
|
|
36
|
+
"@logicflow/vue-node-registry": "1.1.3"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"less": "^4.1.1",
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import LogicFlow from '@logicflow/core'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
createTeleportContainer,
|
|
4
|
+
destroyTeleportContainer,
|
|
5
|
+
} from '@logicflow/vue-node-registry'
|
|
3
6
|
|
|
4
7
|
import Position = LogicFlow.Position
|
|
5
8
|
import MiniMapOption = MiniMap.MiniMapOption
|
|
@@ -675,6 +678,7 @@ export class MiniMap {
|
|
|
675
678
|
})
|
|
676
679
|
}
|
|
677
680
|
destroy() {
|
|
681
|
+
destroyTeleportContainer(this.lfMap.graphModel.flowId)
|
|
678
682
|
this.lf.off('graph:resize', this.onGraphResize)
|
|
679
683
|
}
|
|
680
684
|
}
|