@logicflow/core
Advanced tools
Comparing version 0.7.3 to 0.7.4
@@ -6,2 +6,20 @@ # Change Log | ||
## [0.7.4](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.7.3...@logicflow/core@0.7.4) (2021-11-04) | ||
### Bug Fixes | ||
* **core:** ts error ([83db114](https://github.com/didi/LogicFlow/commit/83db114f495307aa039ff45d743336f124a32221)) | ||
### Features | ||
* **core:** add anchor properties ([21b245e](https://github.com/didi/LogicFlow/commit/21b245ef858761babd42a5de558a77a39ff1e6d6)) | ||
* **core:** adjust edge ([0490ae0](https://github.com/didi/LogicFlow/commit/0490ae08d6d681dfbcf19bf678c46e2179d98cb8)) | ||
* **core:** support anchor setting properties ([ecf7aaa](https://github.com/didi/LogicFlow/commit/ecf7aaa0daa963c08fde6f2c64de0790a4133f8c)) | ||
## [0.7.3](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.7.2...@logicflow/core@0.7.3) (2021-11-03) | ||
@@ -8,0 +26,0 @@ |
{ | ||
"name": "@logicflow/core", | ||
"version": "0.7.3", | ||
"version": "0.7.4", | ||
"description": "LogicFlow core, to quickly build flowchart editor", | ||
@@ -84,3 +84,3 @@ "main": "dist/logic-flow.js", | ||
], | ||
"gitHead": "e279e163feff3b9f4e57541dfaa21bf0f97e763f" | ||
"gitHead": "ccb87dd5dd1e43d10cd474108f5561379f5f5206" | ||
} |
@@ -57,2 +57,4 @@ export declare enum ElementState { | ||
EDGE_CONTEXTMENU = "edge:contextmenu", | ||
EDGE_ADJUST = "edge:adjust", | ||
EDGE_EXCHANGE_NODE = "edge:exchange-node", | ||
SELECTION_CONTEXTMENU = "selection:contextmenu", | ||
@@ -59,0 +61,0 @@ BLANK_MOUSEDOWN = "blank:mousedown", |
@@ -32,2 +32,9 @@ import { ModelType } from '../../constant/constant'; | ||
dragAppendStart(): void; | ||
dragAppendSimple(appendInfo: any, dragInfo: any): { | ||
start: any; | ||
end: any; | ||
startIndex: any; | ||
endIndex: any; | ||
direction: any; | ||
}; | ||
dragAppend(appendInfo: any, dragInfo: any): { | ||
@@ -34,0 +41,0 @@ start: any; |
@@ -83,2 +83,3 @@ export interface EditConfigInterface { | ||
adjustEdge: boolean; | ||
adjustEdgeMiddle: boolean; | ||
adjustEdgeStartAndEnd: boolean; | ||
@@ -85,0 +86,0 @@ adjustNodePosition: boolean; |
import { ElementState, ModelType, ElementType } from '../../constant/constant'; | ||
import { AdditionData, NodeData, NodeAttribute, NodeConfig, NodeMoveRule, Bounds, Point } from '../../type'; | ||
import { AdditionData, NodeData, NodeAttribute, NodeConfig, NodeMoveRule, Bounds, Point, AnchorConfig } from '../../type'; | ||
import GraphModel from '../GraphModel'; | ||
@@ -7,3 +7,3 @@ import { IBaseModel } from '../BaseModel'; | ||
message: string; | ||
validate: (source: BaseNodeModel, target: BaseNodeModel) => boolean; | ||
validate: (source: BaseNodeModel, target: BaseNodeModel, sourceAnchor: AnchorConfig, targetAnchor: AnchorConfig) => boolean; | ||
}; | ||
@@ -74,3 +74,3 @@ export declare type ConnectRuleResult = { | ||
*/ | ||
isAllowConnectedAsSource(target: BaseNodeModel): ConnectRuleResult | Boolean; | ||
isAllowConnectedAsSource(target: BaseNodeModel, soureAnchor: AnchorConfig, targetAnchor: AnchorConfig): ConnectRuleResult | Boolean; | ||
/** | ||
@@ -83,3 +83,3 @@ * 获取当前节点作为连接的起始节点规则。 | ||
*/ | ||
isAllowConnectedAsTarget(source: BaseNodeModel): ConnectRuleResult | Boolean; | ||
isAllowConnectedAsTarget(source: BaseNodeModel, soureAnchor: AnchorConfig, targetAnchor: AnchorConfig): ConnectRuleResult | Boolean; | ||
/** | ||
@@ -86,0 +86,0 @@ * 是否允许移动节点到新的位置 |
@@ -281,2 +281,3 @@ import { h } from 'preact'; | ||
direction?: string; | ||
dragAble?: boolean; | ||
}; | ||
@@ -283,0 +284,0 @@ export declare type ArrowInfo = { |
@@ -5,2 +5,3 @@ import { h, Component } from 'preact'; | ||
import EventEmitter from '../event/eventEmitter'; | ||
import { AnchorConfig } from '../type'; | ||
declare type TargetNodeId = string; | ||
@@ -11,2 +12,3 @@ interface IProps { | ||
id?: string; | ||
anchorData: AnchorConfig; | ||
style?: Record<string, any>; | ||
@@ -13,0 +15,0 @@ hoverStyle?: Record<string, any>; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
636426
4107