@logicflow/core 1.1.28 → 1.1.29

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logicflow/core",
3
- "version": "1.1.28",
3
+ "version": "1.1.29",
4
4
  "description": "LogicFlow core, to quickly build flowchart editor",
5
5
  "main": "dist/entry.js",
6
6
  "module": "dist/logic-flow.js",
@@ -1,5 +1,5 @@
1
1
  import { Point } from '../type/index';
2
- export declare const getCorssPointOfLine: (a: Point, b: Point, c: Point, d: Point) => false | {
2
+ export declare const getCrossPointOfLine: (a: Point, b: Point, c: Point, d: Point) => false | {
3
3
  x: number;
4
4
  y: number;
5
5
  };
@@ -130,6 +130,7 @@ declare class BaseEdgeModel implements IBaseModel {
130
130
  setProperty(key: any, val: any): void;
131
131
  deleteProperty(key: string): void;
132
132
  setProperties(properties: any): void;
133
+ changeEdgeId(id: string): void;
133
134
  setStyle(key: any, val: any): void;
134
135
  setStyles(styles: any): void;
135
136
  updateStyles(styles: any): void;
@@ -140,7 +140,7 @@ export default class BaseNodeModel implements IBaseNodeModel {
140
140
  * 获取当前节点锚点拖出连线样式
141
141
  * @returns 自定义锚点拖出样式
142
142
  */
143
- getAnchorLineStyle(): import("../../constant/DefaultTheme").CommonTheme;
143
+ getAnchorLineStyle(anchorInfo: any): import("../../constant/DefaultTheme").CommonTheme;
144
144
  /**
145
145
  * @overridable 支持重写
146
146
  * 获取outline样式,重写可以定义此类型节点outline样式, 默认使用主题样式
@@ -2,7 +2,7 @@ import { h } from 'preact';
2
2
  import BaseNode from './BaseNode';
3
3
  export default class HtmlNode extends BaseNode {
4
4
  ref: HTMLElement;
5
- currrentProperties: string;
5
+ currentProperties: string;
6
6
  preProperties: string;
7
7
  setRef: (dom: any) => void;
8
8
  get rootEl(): HTMLElement;
@@ -1,6 +1,6 @@
1
1
  import { h } from 'preact';
2
2
  import BaseNode from './BaseNode';
3
3
  export default class TextNode extends BaseNode {
4
- getBackgroud(): h.JSX.Element;
4
+ getBackground(): h.JSX.Element;
5
5
  getShape(): h.JSX.Element;
6
6
  }
@@ -2,7 +2,7 @@ import { h } from 'preact';
2
2
  import BaseText from './BaseText';
3
3
  export default class LineText extends BaseText {
4
4
  constructor(config: any);
5
- getBackgroud(): h.JSX.Element;
5
+ getBackground(): h.JSX.Element;
6
6
  setHoverON: () => void;
7
7
  setHoverOFF: () => void;
8
8
  getShape(): h.JSX.Element;