@logicflow/core 1.2.17 → 1.2.18

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.
@@ -189,6 +189,7 @@
189
189
  border: 2px dashed rgba(24, 125, 255, 0.8);
190
190
  box-shadow: 0px 0px 3px 0px rgba(24, 125, 255, 0.5);
191
191
  cursor: move;
192
+ pointer-events: none;
192
193
  }
193
194
  .lf-edge-adjust-point {
194
195
  cursor: move;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logicflow/core",
3
- "version": "1.2.17",
3
+ "version": "1.2.18",
4
4
  "description": "LogicFlow core, to quickly build flowchart editor",
5
5
  "main": "dist/entry.js",
6
6
  "module": "dist/logic-flow.js",
@@ -265,5 +265,6 @@ export declare type Theme = {
265
265
  * 节点旋转控制点样式
266
266
  */
267
267
  rotateControl?: CommonTheme;
268
+ inputText?: CommonTheme;
268
269
  };
269
270
  export declare const defaultTheme: Theme;
@@ -143,11 +143,11 @@ declare class BaseEdgeModel implements IBaseModel {
143
143
  /**
144
144
  * 内部方法,计算两个节点相连是起点位置
145
145
  */
146
- getBeginAnchor(sourceNode: any, targetNode: any): Point;
146
+ getBeginAnchor(sourceNode: any, targetNode: any): Point | undefined;
147
147
  /**
148
148
  * 内部方法,计算两个节点相连是终点位置
149
149
  */
150
- getEndAnchor(targetNode: any): Point;
150
+ getEndAnchor(targetNode: any): Point | undefined;
151
151
  /**
152
152
  * 获取当前边的properties
153
153
  */
@@ -122,6 +122,7 @@ export declare type EdgeData = {
122
122
  properties: Record<string, unknown>;
123
123
  zIndex?: number;
124
124
  pointsList?: Point[];
125
+ [key: string]: unknown;
125
126
  };
126
127
  export declare type EdgeAttribute = {
127
128
  id: string;
@@ -242,6 +243,7 @@ export declare type TextStyle = {
242
243
  fontSize?: number;
243
244
  fontWeight?: string;
244
245
  fontFamily?: string;
246
+ [key: string]: any;
245
247
  };
246
248
  export declare type NodeTextStyle = TextStyle & {
247
249
  lineHeight?: number;
@@ -1,12 +1,5 @@
1
1
  import EventEmitter from '../event/eventEmitter';
2
2
  import { IBaseModel } from '../model';
3
- declare function createDrag({ onDragStart, onDragging, onDragEnd, step, isStopPropagation, }: {
4
- onDragStart?: (...args: any[]) => void;
5
- onDragging?: (...args: any[]) => void;
6
- onDragEnd?: (...args: any[]) => void;
7
- step?: number;
8
- isStopPropagation?: boolean;
9
- }): (e: MouseEvent) => void;
10
3
  declare class StepDrag {
11
4
  onDragStart: Function;
12
5
  onDragging: Function;
@@ -42,4 +35,4 @@ declare class StepDrag {
42
35
  handleMouseUp: (e: MouseEvent) => void;
43
36
  cancelDrag: () => void;
44
37
  }
45
- export { createDrag, StepDrag, };
38
+ export { StepDrag, };
@@ -47,7 +47,7 @@ export default abstract class BaseNode extends Component<IProps, IState> {
47
47
  setHoverOFF: (ev: any) => void;
48
48
  onMouseOut: (ev: any) => void;
49
49
  /**
50
- * 节点置顶,可以被某些不需要置顶的节点重写,如group节点。
50
+ * @overridable 支持重写, 节点置顶,可以被某些不需要置顶的节点重写,如group节点。
51
51
  */
52
52
  toFront(): void;
53
53
  render(): any;