@logicflow/core
Advanced tools
Comparing version 0.3.0-beta.3 to 0.3.0
112
CHANGELOG.md
@@ -6,3 +6,3 @@ # Change Log | ||
# [0.3.0-beta.3](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.3.0-alpha.1...@logicflow/core@0.3.0-beta.3) (2021-04-07) | ||
# [0.3.0](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.0-alpha.5...@logicflow/core@0.3.0) (2021-04-13) | ||
@@ -12,12 +12,9 @@ | ||
* add hoverBackground ([aca87e6](https://github.com/didi/LogicFlow/commit/aca87e6feafb7c0745a192b110533fe96e27edc2)) | ||
* anchor hover style not hide ([2ea9e54](https://github.com/didi/LogicFlow/commit/2ea9e54b5df5030388e2cfbaca39680a88a7387a)) | ||
* edge updateText position ([e333787](https://github.com/didi/LogicFlow/commit/e3337878bed766eaab9345c9110e202cc477a56c)) | ||
* invalid setTheme for rect size ([4ed7e1a](https://github.com/didi/LogicFlow/commit/4ed7e1af69ddf31956e454748da4ea5adcb03be6)) | ||
* **all:** add rimraf ([c526ad8](https://github.com/didi/LogicFlow/commit/c526ad840b1e2620a3221d416f7a03e9c6d3583c)) | ||
* **core:** fix the bug when drag edges ([36aed3a](https://github.com/didi/LogicFlow/commit/36aed3a455e9bfd04ad5a0b4aae294863184069c)) | ||
* minimap extension custom disabled plugin ([3768d14](https://github.com/didi/LogicFlow/commit/3768d149b6a72e4c251e287432b6070dcbfabce6)) | ||
* move clone guard to shortcut ([c5643da](https://github.com/didi/LogicFlow/commit/c5643daa8ca7b2f905db81357444e5bba64a5ee7)) | ||
* the text content misalignment caused by switching nodes ([38193f7](https://github.com/didi/LogicFlow/commit/38193f7a28cb004c18dc7717f854d83269bf4194)) | ||
* **extension:** mini-map default disable control & selection-select ([297cecf](https://github.com/didi/LogicFlow/commit/297cecf4637ca7a045619a10cd9298feacc631ea)) | ||
* add hoverBackground ([aca87e6](https://github.com/towersxu/logicflow/commit/aca87e6feafb7c0745a192b110533fe96e27edc2)) | ||
* anchor hover style not hide ([2ea9e54](https://github.com/towersxu/logicflow/commit/2ea9e54b5df5030388e2cfbaca39680a88a7387a)) | ||
* edge updateText position ([e333787](https://github.com/towersxu/logicflow/commit/e3337878bed766eaab9345c9110e202cc477a56c)) | ||
* invalid setTheme for rect size ([4ed7e1a](https://github.com/towersxu/logicflow/commit/4ed7e1af69ddf31956e454748da4ea5adcb03be6)) | ||
* save input value when swich edit element ([972e4cd](https://github.com/towersxu/logicflow/commit/972e4cdaba7f7388fe59cb572ff598b976275c0b)) | ||
* **all:** add rimraf ([c526ad8](https://github.com/towersxu/logicflow/commit/c526ad840b1e2620a3221d416f7a03e9c6d3583c)) | ||
* **core:** fix the bug when drag edges ([36aed3a](https://github.com/towersxu/logicflow/commit/36aed3a455e9bfd04ad5a0b4aae294863184069c)) | ||
@@ -27,6 +24,7 @@ | ||
* add the height field for hoverBackground and background ([4d38c8a](https://github.com/didi/LogicFlow/commit/4d38c8aadcd21e02f21f1b822c6a7832445b24bd)) | ||
* change cloneElements to addElements ([6c59d74](https://github.com/didi/LogicFlow/commit/6c59d749a53e5263f5cf630702453054347215f6)) | ||
* edge text support hover style ([ffc75d4](https://github.com/didi/LogicFlow/commit/ffc75d45e0ef42b9dbca1be489fa749186aa81b0)) | ||
* support setting line of dashes for edges ([4f39909](https://github.com/didi/LogicFlow/commit/4f39909af2260ff0ea696dd2db04ee4e5713b4bc)) | ||
* **extension:** curved-edge ([1731b10](https://github.com/towersxu/logicflow/commit/1731b10e3e65ccf226b48d4fb572d90d2ad10dec)) | ||
* add the height field for hoverBackground and background ([4d38c8a](https://github.com/towersxu/logicflow/commit/4d38c8aadcd21e02f21f1b822c6a7832445b24bd)) | ||
* add updateAttributes API ([3112b69](https://github.com/towersxu/logicflow/commit/3112b6917998f6cbb2e306b1862eb3e2c4bd8e8f)) | ||
* added missing element tips ([71674cd](https://github.com/towersxu/logicflow/commit/71674cddc6096170fdc88d88b02a4d482f3c2f43)) | ||
* support setting line of dashes for edges ([4f39909](https://github.com/towersxu/logicflow/commit/4f39909af2260ff0ea696dd2db04ee4e5713b4bc)) | ||
@@ -37,86 +35,2 @@ | ||
# [0.3.0-beta.2](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.3.0-alpha.1...@logicflow/core@0.3.0-beta.2) (2021-04-07) | ||
### Bug Fixes | ||
* add hoverBackground ([aca87e6](https://github.com/didi/LogicFlow/commit/aca87e6feafb7c0745a192b110533fe96e27edc2)) | ||
* anchor hover style not hide ([2ea9e54](https://github.com/didi/LogicFlow/commit/2ea9e54b5df5030388e2cfbaca39680a88a7387a)) | ||
* edge updateText position ([e333787](https://github.com/didi/LogicFlow/commit/e3337878bed766eaab9345c9110e202cc477a56c)) | ||
* invalid setTheme for rect size ([4ed7e1a](https://github.com/didi/LogicFlow/commit/4ed7e1af69ddf31956e454748da4ea5adcb03be6)) | ||
* **all:** add rimraf ([c526ad8](https://github.com/didi/LogicFlow/commit/c526ad840b1e2620a3221d416f7a03e9c6d3583c)) | ||
* **core:** fix the bug when drag edges ([36aed3a](https://github.com/didi/LogicFlow/commit/36aed3a455e9bfd04ad5a0b4aae294863184069c)) | ||
* minimap extension custom disabled plugin ([3768d14](https://github.com/didi/LogicFlow/commit/3768d149b6a72e4c251e287432b6070dcbfabce6)) | ||
* move clone guard to shortcut ([c5643da](https://github.com/didi/LogicFlow/commit/c5643daa8ca7b2f905db81357444e5bba64a5ee7)) | ||
* the text content misalignment caused by switching nodes ([38193f7](https://github.com/didi/LogicFlow/commit/38193f7a28cb004c18dc7717f854d83269bf4194)) | ||
* **extension:** mini-map default disable control & selection-select ([297cecf](https://github.com/didi/LogicFlow/commit/297cecf4637ca7a045619a10cd9298feacc631ea)) | ||
### Features | ||
* add the height field for hoverBackground and background ([4d38c8a](https://github.com/didi/LogicFlow/commit/4d38c8aadcd21e02f21f1b822c6a7832445b24bd)) | ||
* change cloneElements to addElements ([6c59d74](https://github.com/didi/LogicFlow/commit/6c59d749a53e5263f5cf630702453054347215f6)) | ||
* edge text support hover style ([ffc75d4](https://github.com/didi/LogicFlow/commit/ffc75d45e0ef42b9dbca1be489fa749186aa81b0)) | ||
* support setting line of dashes for edges ([4f39909](https://github.com/didi/LogicFlow/commit/4f39909af2260ff0ea696dd2db04ee4e5713b4bc)) | ||
# [0.3.0-beta.1](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.3.0-alpha.1...@logicflow/core@0.3.0-beta.1) (2021-04-07) | ||
### Bug Fixes | ||
* add hoverBackground ([aca87e6](https://github.com/didi/LogicFlow/commit/aca87e6feafb7c0745a192b110533fe96e27edc2)) | ||
* anchor hover style not hide ([2ea9e54](https://github.com/didi/LogicFlow/commit/2ea9e54b5df5030388e2cfbaca39680a88a7387a)) | ||
* edge updateText position ([e333787](https://github.com/didi/LogicFlow/commit/e3337878bed766eaab9345c9110e202cc477a56c)) | ||
* invalid setTheme for rect size ([4ed7e1a](https://github.com/didi/LogicFlow/commit/4ed7e1af69ddf31956e454748da4ea5adcb03be6)) | ||
* **all:** add rimraf ([c526ad8](https://github.com/didi/LogicFlow/commit/c526ad840b1e2620a3221d416f7a03e9c6d3583c)) | ||
* **core:** fix the bug when drag edges ([36aed3a](https://github.com/didi/LogicFlow/commit/36aed3a455e9bfd04ad5a0b4aae294863184069c)) | ||
* minimap extension custom disabled plugin ([3768d14](https://github.com/didi/LogicFlow/commit/3768d149b6a72e4c251e287432b6070dcbfabce6)) | ||
* move clone guard to shortcut ([c5643da](https://github.com/didi/LogicFlow/commit/c5643daa8ca7b2f905db81357444e5bba64a5ee7)) | ||
* the text content misalignment caused by switching nodes ([38193f7](https://github.com/didi/LogicFlow/commit/38193f7a28cb004c18dc7717f854d83269bf4194)) | ||
* **extension:** mini-map default disable control & selection-select ([297cecf](https://github.com/didi/LogicFlow/commit/297cecf4637ca7a045619a10cd9298feacc631ea)) | ||
### Features | ||
* add the height field for hoverBackground and background ([4d38c8a](https://github.com/didi/LogicFlow/commit/4d38c8aadcd21e02f21f1b822c6a7832445b24bd)) | ||
* change cloneElements to addElements ([6c59d74](https://github.com/didi/LogicFlow/commit/6c59d749a53e5263f5cf630702453054347215f6)) | ||
* edge text support hover style ([ffc75d4](https://github.com/didi/LogicFlow/commit/ffc75d45e0ef42b9dbca1be489fa749186aa81b0)) | ||
* support setting line of dashes for edges ([4f39909](https://github.com/didi/LogicFlow/commit/4f39909af2260ff0ea696dd2db04ee4e5713b4bc)) | ||
# [0.3.0-beta.0](https://github.com/didi/LogicFlow/compare/@logicflow/core@0.3.0-alpha.1...@logicflow/core@0.3.0-beta.0) (2021-04-07) | ||
### Bug Fixes | ||
* add hoverBackground ([aca87e6](https://github.com/didi/LogicFlow/commit/aca87e6feafb7c0745a192b110533fe96e27edc2)) | ||
* anchor hover style not hide ([2ea9e54](https://github.com/didi/LogicFlow/commit/2ea9e54b5df5030388e2cfbaca39680a88a7387a)) | ||
* edge updateText position ([e333787](https://github.com/didi/LogicFlow/commit/e3337878bed766eaab9345c9110e202cc477a56c)) | ||
* invalid setTheme for rect size ([4ed7e1a](https://github.com/didi/LogicFlow/commit/4ed7e1af69ddf31956e454748da4ea5adcb03be6)) | ||
* **all:** add rimraf ([c526ad8](https://github.com/didi/LogicFlow/commit/c526ad840b1e2620a3221d416f7a03e9c6d3583c)) | ||
* **core:** fix the bug when drag edges ([36aed3a](https://github.com/didi/LogicFlow/commit/36aed3a455e9bfd04ad5a0b4aae294863184069c)) | ||
* minimap extension custom disabled plugin ([3768d14](https://github.com/didi/LogicFlow/commit/3768d149b6a72e4c251e287432b6070dcbfabce6)) | ||
* move clone guard to shortcut ([c5643da](https://github.com/didi/LogicFlow/commit/c5643daa8ca7b2f905db81357444e5bba64a5ee7)) | ||
* the text content misalignment caused by switching nodes ([38193f7](https://github.com/didi/LogicFlow/commit/38193f7a28cb004c18dc7717f854d83269bf4194)) | ||
* **extension:** mini-map default disable control & selection-select ([297cecf](https://github.com/didi/LogicFlow/commit/297cecf4637ca7a045619a10cd9298feacc631ea)) | ||
### Features | ||
* add the height field for hoverBackground and background ([4d38c8a](https://github.com/didi/LogicFlow/commit/4d38c8aadcd21e02f21f1b822c6a7832445b24bd)) | ||
* change cloneElements to addElements ([6c59d74](https://github.com/didi/LogicFlow/commit/6c59d749a53e5263f5cf630702453054347215f6)) | ||
* edge text support hover style ([ffc75d4](https://github.com/didi/LogicFlow/commit/ffc75d45e0ef42b9dbca1be489fa749186aa81b0)) | ||
* support setting line of dashes for edges ([4f39909](https://github.com/didi/LogicFlow/commit/4f39909af2260ff0ea696dd2db04ee4e5713b4bc)) | ||
# [0.3.0-alpha.5](https://github.com/towersxu/logicflow/compare/@logicflow/core@0.3.0-alpha.4...@logicflow/core@0.3.0-alpha.5) (2021-03-30) | ||
@@ -123,0 +37,0 @@ |
{ | ||
"name": "@logicflow/core", | ||
"version": "0.3.0-beta.3", | ||
"version": "0.3.0", | ||
"description": "LogicFlow core, to quickly build flowchart editor", | ||
@@ -84,8 +84,2 @@ "main": "dist/logic-flow.js", | ||
], | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "tsc -d --noEmit && npm run lint", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
} | ||
}, | ||
"config": { | ||
@@ -96,3 +90,3 @@ "commitizen": { | ||
}, | ||
"gitHead": "dabb3e758af9699bb59009bbc87cf2f7aff995b1" | ||
"gitHead": "755c5a739fbd7a467441aceb8f51709a67475f86" | ||
} |
@@ -230,2 +230,8 @@ import { h } from 'preact'; | ||
/** | ||
* 动态修改 id 对应元素 model 中的属性 | ||
* @param {string} id 元素id | ||
* @param {object} attributes 需要更新的属性 | ||
*/ | ||
updateAttributes(id: string, attributes: object): void; | ||
/** | ||
* 添加多个元素, 包括连线和节点。 | ||
@@ -232,0 +238,0 @@ */ |
@@ -24,3 +24,4 @@ import { ElementState } from '../constant/constant'; | ||
setProperties(properties: Object): void; | ||
updateAttributes(attributes: Object): void; | ||
} | ||
export { IBaseModel, }; |
@@ -71,4 +71,5 @@ import { IBaseModel } from '../BaseModel'; | ||
initPoints(): void; | ||
updateAttributes(attributes: any): void; | ||
} | ||
export { BaseEdgeModel }; | ||
export default BaseEdgeModel; |
@@ -103,2 +103,3 @@ import BaseNodeModel from './node/BaseNodeModel'; | ||
}; | ||
updateAttributes(id: string, attributes: object): void; | ||
setFakerNode(nodeModel: BaseNodeModel): void; | ||
@@ -105,0 +106,0 @@ removeFakerNode(): void; |
@@ -91,2 +91,3 @@ import { ElementState, ModelType, ElementType } from '../../constant/constant'; | ||
setZIndex(zindex?: number): void; | ||
updateAttributes(attributes: any): void; | ||
} |
import { h } from 'preact'; | ||
import BaseNode from './BaseNode'; | ||
import GraphModel from '../../model/GraphModel'; | ||
import EventEmitter from '../../event/eventEmitter'; | ||
import { CircleNodeModel } from '../../LogicFlow'; | ||
declare type IProps = { | ||
model: CircleNodeModel; | ||
graphModel: GraphModel; | ||
eventCenter: EventEmitter; | ||
}; | ||
export default class CircleNode extends BaseNode { | ||
r: number; | ||
constructor(props: IProps); | ||
getShapeStyle(): { | ||
@@ -54,2 +44,1 @@ r: number; | ||
} | ||
export {}; |
import { h } from 'preact'; | ||
import BaseNode from './BaseNode'; | ||
export default class EllipseNode extends BaseNode { | ||
rx: number; | ||
ry: number; | ||
constructor(props: any); | ||
getAttributes(): { | ||
@@ -8,0 +5,0 @@ rx: number; |
import { h } from 'preact'; | ||
import BaseNode from './BaseNode'; | ||
import EventEmitter from '../../event/eventEmitter'; | ||
import GraphModel from '../../model/GraphModel'; | ||
import { PolygonNodeModel } from '../../LogicFlow'; | ||
import { PointTuple } from '../../type'; | ||
declare type IProps = { | ||
model: PolygonNodeModel; | ||
graphModel: GraphModel; | ||
eventCenter: EventEmitter; | ||
}; | ||
export default class PolygonNode extends BaseNode { | ||
points: PointTuple[]; | ||
constructor(props: IProps); | ||
getShapeStyle(): { | ||
points: PointTuple[]; | ||
points: import("../..").PointTuple[]; | ||
width: number; | ||
@@ -28,3 +17,3 @@ height: number; | ||
getAttributes(): { | ||
points: PointTuple[]; | ||
points: import("../..").PointTuple[]; | ||
width: number; | ||
@@ -56,2 +45,1 @@ height: number; | ||
} | ||
export {}; |
import { h } from 'preact'; | ||
import BaseNode from './BaseNode'; | ||
import { RectNodeModel } from '../../LogicFlow'; | ||
import GraphModel from '../../model/GraphModel'; | ||
import EventEmitter from '../../event/eventEmitter'; | ||
declare type IProps = { | ||
model: RectNodeModel; | ||
graphModel: GraphModel; | ||
eventCenter: EventEmitter; | ||
}; | ||
export default class RectNode extends BaseNode { | ||
radius: number; | ||
constructor(props: IProps); | ||
getShapeStyle(): { | ||
@@ -54,2 +44,1 @@ radius: number; | ||
} | ||
export {}; |
Sorry, the diff of this file is too big to display
551400
3073