@fulate/core 1.0.19 → 2.0.11
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/event.d.ts +62 -37
- package/dist/export-png.d.ts +22 -0
- package/dist/geometry/authored.d.ts +4 -2
- package/dist/geometry/common.d.ts +15 -6
- package/dist/geometry/index.d.ts +6 -1
- package/dist/geometry/path.d.ts +41 -0
- package/dist/index.d.ts +16 -9
- package/dist/index.js +1828 -1457
- package/dist/layer/index.d.ts +33 -32
- package/dist/mutation/change-batch.d.ts +5 -5
- package/dist/node/element-transform-geometry.d.ts +1 -3
- package/dist/node/element-transform.d.ts +80 -42
- package/dist/node/element.d.ts +89 -72
- package/dist/node/node.d.ts +59 -27
- package/dist/node/properties.d.ts +18 -28
- package/dist/node/reference-transform.d.ts +6 -2
- package/dist/node/shape.d.ts +9 -8
- package/dist/node/vector-path.d.ts +34 -0
- package/dist/paint-context.d.ts +30 -0
- package/dist/root/frame-runtime.d.ts +43 -33
- package/dist/root/hit-test.d.ts +2 -4
- package/dist/root/index.d.ts +21 -31
- package/dist/root/input-controller.d.ts +34 -6
- package/dist/root/scene-registry.d.ts +17 -7
- package/dist/root/viewport.d.ts +20 -7
- package/dist/skin.d.ts +1 -1
- package/dist/utils/connection-port.d.ts +1 -8
- package/package.json +30 -30
|
@@ -43,17 +43,12 @@ export interface ConnectionPortRef {
|
|
|
43
43
|
readonly elementKey: string;
|
|
44
44
|
readonly portId: ConnectionPortId;
|
|
45
45
|
}
|
|
46
|
-
/** Element 类型自有的 derived Port 定位器。 @internal */
|
|
47
|
-
export interface DerivedConnectionPort {
|
|
48
|
-
readonly id: ConnectionPortId;
|
|
49
|
-
/** 按当前 Element 的本地几何返回 Port 位置。 */
|
|
50
|
-
localPosition(element: Element): PointView;
|
|
51
|
-
}
|
|
52
46
|
/** owner 当前一次直接解析出的 Port。 */
|
|
53
47
|
export interface ResolvedConnectionPort {
|
|
54
48
|
readonly ref: ConnectionPortRef;
|
|
55
49
|
readonly kind: "endpoint-binding";
|
|
56
50
|
readonly localPosition: PointView;
|
|
51
|
+
readonly localNormal?: PointView;
|
|
57
52
|
readonly origin: "builtin" | "custom";
|
|
58
53
|
readonly definition?: ConnectionPortDefinition;
|
|
59
54
|
}
|
|
@@ -74,8 +69,6 @@ export interface ResolvedConnectionPortSlot extends ResolvedConnectionPort {
|
|
|
74
69
|
/** 与 `localPosition` 同一份 owner-produced geometry 结果。 */
|
|
75
70
|
readonly geometry: ConnectionPortGeometry;
|
|
76
71
|
}
|
|
77
|
-
/** top、right、bottom、left 四条逻辑边中点组成的默认 Port。 */
|
|
78
|
-
export declare const DEFAULT_CONNECTION_PORT_SCHEMA: readonly DerivedConnectionPort[];
|
|
79
72
|
/** 直接从 custom definitions 解析当前 local Port;不缓存、复制或改写输入。 */
|
|
80
73
|
export declare function resolveConnectionPortSlots(element: Element, definitions: readonly ConnectionPortDefinition[]): readonly ResolvedConnectionPortSlot[];
|
|
81
74
|
/** 将 local 点投影到当前已提交 world matrix。 */
|
package/package.json
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@fulate/core",
|
|
3
|
-
"version": "
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "./dist/index.js",
|
|
6
|
-
"types": "./dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"import": "./dist/index.js"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"files": [
|
|
14
|
-
"dist"
|
|
15
|
-
],
|
|
16
|
-
"license": "MIT",
|
|
17
|
-
"scripts": {
|
|
18
|
-
"test": "vitest run --config vitest.config.ts",
|
|
19
|
-
"test:watch": "vitest --config vitest.config.ts"
|
|
20
|
-
},
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@fulate/share": "
|
|
23
|
-
"@tweenjs/tween.js": "^25.0.0",
|
|
24
|
-
"lodash-es": "^4.17.22",
|
|
25
|
-
"rbush": "^4.0.1"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@types/rbush": "^4.0.0"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@fulate/core",
|
|
3
|
+
"version": "2.0.11",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"scripts": {
|
|
18
|
+
"test": "vitest run --config vitest.config.ts",
|
|
19
|
+
"test:watch": "vitest --config vitest.config.ts"
|
|
20
|
+
},
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@fulate/share": "2.0.11",
|
|
23
|
+
"@tweenjs/tween.js": "^25.0.0",
|
|
24
|
+
"lodash-es": "^4.17.22",
|
|
25
|
+
"rbush": "^4.0.1"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@types/rbush": "^4.0.0"
|
|
29
|
+
}
|
|
30
|
+
}
|