@logicflow/core 1.1.16 → 1.1.19

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.16",
3
+ "version": "1.1.19",
4
4
  "description": "LogicFlow core, to quickly build flowchart editor",
5
5
  "main": "dist/logic-flow.js",
6
6
  "unpkg": "dist/logic-flow.js",
@@ -37,6 +37,10 @@ declare class BaseEdgeModel implements IBaseModel {
37
37
  menu?: MenuConfig[];
38
38
  customTextPosition: boolean;
39
39
  animationData: import("../../constant/DefaultAnimation").Animation;
40
+ arrowConfig: {
41
+ markerEnd: string;
42
+ markerStart: string;
43
+ };
40
44
  [propName: string]: any;
41
45
  constructor(data: EdgeConfig, graphModel: GraphModel);
42
46
  /**
@@ -382,4 +382,25 @@ export declare type VirtualRectSize = {
382
382
  virtualRectCenterPositionX: number;
383
383
  virtualRectCenterPositionY: number;
384
384
  };
385
+ export declare type ArrowPath = {
386
+ d: string;
387
+ stroke?: string;
388
+ fill?: string;
389
+ transform?: string;
390
+ [key: string]: any;
391
+ };
392
+ export declare type ArrowMarker = {
393
+ id: string;
394
+ refX?: string | number;
395
+ refY?: string | number;
396
+ overflow?: string;
397
+ orient?: string;
398
+ markerUnits?: string;
399
+ viewBox?: string;
400
+ markerWidth?: number;
401
+ markerHeight?: number;
402
+ path: ArrowPath;
403
+ [key: string]: any;
404
+ };
405
+ export declare type ArrowMarkerList = ArrowMarker[];
385
406
  export {};
@@ -17,6 +17,8 @@ export default class BaseEdge extends Component<IProps> {
17
17
  getArrowInfo(): ArrowInfo;
18
18
  getArrowStyle(): ArrowStyle;
19
19
  getArrow(): h.JSX.Element;
20
+ getStartArrow(): h.JSX.Element;
21
+ getEndArrow(): h.JSX.Element;
20
22
  getAdjustPoints(): h.JSX.Element;
21
23
  getAnimation(): void;
22
24
  getAppendWidth(): h.JSX.Element;