@logicflow/core 2.1.7 → 2.1.8

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/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) {
@@ -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) {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logicflow/core",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "LogicFlow, help you quickly create flowcharts",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
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) {
@@ -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') {