@logicflow/core 1.1.21 → 1.1.22
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/dist/logic-flow.js +0 -2
- package/package.json +1 -1
- package/types/algorithm/vector.d.ts +11 -0
package/dist/logic-flow.js
CHANGED
|
@@ -26686,8 +26686,6 @@ var GraphModel_GraphModel = (GraphModel_class = /*#__PURE__*/function () {
|
|
|
26686
26686
|
value: function graphDataToModel(graphData) {
|
|
26687
26687
|
var _this = this;
|
|
26688
26688
|
|
|
26689
|
-
console.log(5555, this.width, this.height);
|
|
26690
|
-
|
|
26691
26689
|
if (!this.width || !this.height) {
|
|
26692
26690
|
this.resize();
|
|
26693
26691
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Point, Vector2 } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* 基于两个点创建一个向量
|
|
4
|
+
* https://stackoverflow.com/questions/15823021/when-to-use-float32array-instead-of-array-in-javascript
|
|
5
|
+
* 由于大多数情况下LogicFlow连线是水平和垂直的,因此先不考虑。
|
|
6
|
+
*/
|
|
7
|
+
export declare const createVector: (point1: Point, point2: any) => Vector2;
|
|
8
|
+
/**
|
|
9
|
+
* 判断两个向量是否平行
|
|
10
|
+
*/
|
|
11
|
+
export declare const isParallel: (vector1: Vector2, vector2: Vector2) => Boolean;
|