@logicflow/core 2.1.7 → 2.1.9
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$colon$dev.log +2 -2
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +12 -0
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/es/LogicFlow.js +0 -1
- package/es/model/GraphModel.js +1 -1
- package/es/view/overlay/OutlineOverlay.js +1 -1
- package/lib/LogicFlow.js +0 -1
- package/lib/model/GraphModel.js +1 -1
- package/lib/view/overlay/OutlineOverlay.js +1 -1
- package/package.json +1 -1
- package/src/LogicFlow.tsx +0 -1
- package/src/model/GraphModel.ts +2 -1
- package/src/view/overlay/OutlineOverlay.tsx +1 -1
- package/stats.html +1 -1
package/es/LogicFlow.js
CHANGED
|
@@ -1217,7 +1217,6 @@ var LogicFlow = /** @class */ (function () {
|
|
|
1217
1217
|
this.graphModel.destroy();
|
|
1218
1218
|
this.tool.destroy();
|
|
1219
1219
|
this.history.destroy();
|
|
1220
|
-
clearThemeMode();
|
|
1221
1220
|
for (var extensionName in this.extension) {
|
|
1222
1221
|
var extensionInstance = this.extension[extensionName];
|
|
1223
1222
|
if ('destroy' in extensionInstance) {
|
package/es/model/GraphModel.js
CHANGED
|
@@ -51,7 +51,7 @@ var OutlineOverlay = /** @class */ (function (_super) {
|
|
|
51
51
|
var isHovered = element.isHovered, isSelected = element.isSelected, x = element.x, y = element.y, width = element.width, height = element.height;
|
|
52
52
|
if ((nodeSelectedOutline && isSelected) ||
|
|
53
53
|
(hoverOutline && isHovered)) {
|
|
54
|
-
var style_1 = element.getOutlineStyle();
|
|
54
|
+
var style_1 = element.getOutlineStyle() || {};
|
|
55
55
|
var attributes_1 = {};
|
|
56
56
|
Object.keys(style_1).forEach(function (key) {
|
|
57
57
|
if (key !== 'hover') {
|
package/lib/LogicFlow.js
CHANGED
|
@@ -1246,7 +1246,6 @@ var LogicFlow = /** @class */ (function () {
|
|
|
1246
1246
|
this.graphModel.destroy();
|
|
1247
1247
|
this.tool.destroy();
|
|
1248
1248
|
this.history.destroy();
|
|
1249
|
-
(0, util_1.clearThemeMode)();
|
|
1250
1249
|
for (var extensionName in this.extension) {
|
|
1251
1250
|
var extensionInstance = this.extension[extensionName];
|
|
1252
1251
|
if ('destroy' in extensionInstance) {
|
package/lib/model/GraphModel.js
CHANGED
|
@@ -54,7 +54,7 @@ var OutlineOverlay = /** @class */ (function (_super) {
|
|
|
54
54
|
var isHovered = element.isHovered, isSelected = element.isSelected, x = element.x, y = element.y, width = element.width, height = element.height;
|
|
55
55
|
if ((nodeSelectedOutline && isSelected) ||
|
|
56
56
|
(hoverOutline && isHovered)) {
|
|
57
|
-
var style_1 = element.getOutlineStyle();
|
|
57
|
+
var style_1 = element.getOutlineStyle() || {};
|
|
58
58
|
var attributes_1 = {};
|
|
59
59
|
Object.keys(style_1).forEach(function (key) {
|
|
60
60
|
if (key !== 'hover') {
|
package/package.json
CHANGED
package/src/LogicFlow.tsx
CHANGED
|
@@ -1445,7 +1445,6 @@ export class LogicFlow {
|
|
|
1445
1445
|
this.graphModel.destroy()
|
|
1446
1446
|
this.tool.destroy()
|
|
1447
1447
|
this.history.destroy()
|
|
1448
|
-
clearThemeMode()
|
|
1449
1448
|
for (const extensionName in this.extension) {
|
|
1450
1449
|
const extensionInstance = this.extension[extensionName]
|
|
1451
1450
|
if ('destroy' in extensionInstance) {
|
package/src/model/GraphModel.ts
CHANGED
|
@@ -31,7 +31,7 @@ export class OutlineOverlay extends Component<IProps> {
|
|
|
31
31
|
(nodeSelectedOutline && isSelected) ||
|
|
32
32
|
(hoverOutline && isHovered)
|
|
33
33
|
) {
|
|
34
|
-
const style = element.getOutlineStyle()
|
|
34
|
+
const style = element.getOutlineStyle() || {}
|
|
35
35
|
let attributes = {}
|
|
36
36
|
Object.keys(style).forEach((key) => {
|
|
37
37
|
if (key !== 'hover') {
|