@retikz/core 0.1.0 → 0.2.0-alpha.2
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/es/compile/anchor-cache.d.ts +12 -0
- package/dist/es/compile/anchor-cache.d.ts.map +1 -0
- package/dist/es/compile/anchor-cache.js +41 -0
- package/dist/es/compile/compile.d.ts +2 -2
- package/dist/es/compile/compile.d.ts.map +1 -1
- package/dist/es/compile/compile.js +150 -40
- package/dist/es/compile/index.d.ts +1 -0
- package/dist/es/compile/index.d.ts.map +1 -1
- package/dist/es/compile/name-stack.d.ts +81 -0
- package/dist/es/compile/name-stack.d.ts.map +1 -0
- package/dist/es/compile/name-stack.js +104 -0
- package/dist/es/compile/node.d.ts +9 -5
- package/dist/es/compile/node.d.ts.map +1 -1
- package/dist/es/compile/node.js +19 -11
- package/dist/es/compile/path/anchor.d.ts +11 -5
- package/dist/es/compile/path/anchor.d.ts.map +1 -1
- package/dist/es/compile/path/anchor.js +24 -13
- package/dist/es/compile/path/index.d.ts +9 -3
- package/dist/es/compile/path/index.d.ts.map +1 -1
- package/dist/es/compile/path/index.js +18 -17
- package/dist/es/compile/path/label.d.ts +1 -1
- package/dist/es/compile/path/label.d.ts.map +1 -1
- package/dist/es/compile/path/label.js +17 -4
- package/dist/es/compile/path/relative.d.ts +10 -4
- package/dist/es/compile/path/relative.d.ts.map +1 -1
- package/dist/es/compile/path/relative.js +16 -8
- package/dist/es/compile/position.d.ts +19 -3
- package/dist/es/compile/position.d.ts.map +1 -1
- package/dist/es/compile/position.js +28 -8
- package/dist/es/compile/scope.d.ts +66 -0
- package/dist/es/compile/scope.d.ts.map +1 -0
- package/dist/es/compile/scope.js +256 -0
- package/dist/es/compile/style.d.ts +46 -0
- package/dist/es/compile/style.d.ts.map +1 -0
- package/dist/es/compile/style.js +259 -0
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.d.ts.map +1 -1
- package/dist/es/index.js +3 -1
- package/dist/es/ir/index.d.ts +2 -0
- package/dist/es/ir/index.d.ts.map +1 -1
- package/dist/es/ir/node.d.ts +5 -2
- package/dist/es/ir/node.d.ts.map +1 -1
- package/dist/es/ir/node.js +1 -0
- package/dist/es/ir/path/path.d.ts +531 -0
- package/dist/es/ir/path/path.d.ts.map +1 -1
- package/dist/es/ir/path/path.js +1 -0
- package/dist/es/ir/path/step.d.ts +834 -0
- package/dist/es/ir/path/step.d.ts.map +1 -1
- package/dist/es/ir/path/step.js +5 -1
- package/dist/es/ir/scene.d.ts +18 -3542
- package/dist/es/ir/scene.d.ts.map +1 -1
- package/dist/es/ir/scene.js +11 -3
- package/dist/es/ir/scope.d.ts +3690 -0
- package/dist/es/ir/scope.d.ts.map +1 -0
- package/dist/es/ir/scope.js +89 -0
- package/dist/es/ir/transform.d.ts +204 -0
- package/dist/es/ir/transform.d.ts.map +1 -0
- package/dist/es/ir/transform.js +56 -0
- package/dist/lib/compile/anchor-cache.cjs +41 -0
- package/dist/lib/compile/anchor-cache.d.ts +12 -0
- package/dist/lib/compile/anchor-cache.d.ts.map +1 -0
- package/dist/lib/compile/compile.cjs +150 -40
- package/dist/lib/compile/compile.d.ts +2 -2
- package/dist/lib/compile/compile.d.ts.map +1 -1
- package/dist/lib/compile/index.d.ts +1 -0
- package/dist/lib/compile/index.d.ts.map +1 -1
- package/dist/lib/compile/name-stack.cjs +104 -0
- package/dist/lib/compile/name-stack.d.ts +81 -0
- package/dist/lib/compile/name-stack.d.ts.map +1 -0
- package/dist/lib/compile/node.cjs +19 -11
- package/dist/lib/compile/node.d.ts +9 -5
- package/dist/lib/compile/node.d.ts.map +1 -1
- package/dist/lib/compile/path/anchor.cjs +23 -12
- package/dist/lib/compile/path/anchor.d.ts +11 -5
- package/dist/lib/compile/path/anchor.d.ts.map +1 -1
- package/dist/lib/compile/path/index.cjs +18 -17
- package/dist/lib/compile/path/index.d.ts +9 -3
- package/dist/lib/compile/path/index.d.ts.map +1 -1
- package/dist/lib/compile/path/label.cjs +17 -4
- package/dist/lib/compile/path/label.d.ts +1 -1
- package/dist/lib/compile/path/label.d.ts.map +1 -1
- package/dist/lib/compile/path/relative.cjs +16 -8
- package/dist/lib/compile/path/relative.d.ts +10 -4
- package/dist/lib/compile/path/relative.d.ts.map +1 -1
- package/dist/lib/compile/position.cjs +28 -8
- package/dist/lib/compile/position.d.ts +19 -3
- package/dist/lib/compile/position.d.ts.map +1 -1
- package/dist/lib/compile/scope.cjs +261 -0
- package/dist/lib/compile/scope.d.ts +66 -0
- package/dist/lib/compile/scope.d.ts.map +1 -0
- package/dist/lib/compile/style.cjs +262 -0
- package/dist/lib/compile/style.d.ts +46 -0
- package/dist/lib/compile/style.d.ts.map +1 -0
- package/dist/lib/index.cjs +8 -0
- package/dist/lib/index.d.ts +2 -2
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/ir/index.d.ts +2 -0
- package/dist/lib/ir/index.d.ts.map +1 -1
- package/dist/lib/ir/node.cjs +1 -0
- package/dist/lib/ir/node.d.ts +5 -2
- package/dist/lib/ir/node.d.ts.map +1 -1
- package/dist/lib/ir/path/path.cjs +1 -0
- package/dist/lib/ir/path/path.d.ts +531 -0
- package/dist/lib/ir/path/path.d.ts.map +1 -1
- package/dist/lib/ir/path/step.cjs +5 -1
- package/dist/lib/ir/path/step.d.ts +834 -0
- package/dist/lib/ir/path/step.d.ts.map +1 -1
- package/dist/lib/ir/scene.cjs +11 -3
- package/dist/lib/ir/scene.d.ts +18 -3542
- package/dist/lib/ir/scene.d.ts.map +1 -1
- package/dist/lib/ir/scope.cjs +94 -0
- package/dist/lib/ir/scope.d.ts +3690 -0
- package/dist/lib/ir/scope.d.ts.map +1 -0
- package/dist/lib/ir/transform.cjs +56 -0
- package/dist/lib/ir/transform.d.ts +204 -0
- package/dist/lib/ir/transform.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../../src/ir/path/step.ts"],"names":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AAC5B,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE1D,8BAA8B;AAC9B,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAExD,oCAAoC;AACpC,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACtD,gCAAgC;AAChC,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACpE,kCAAkC;AAClC,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEtE;;;GAGG;AACH,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
package/dist/es/ir/path/step.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PositionSchema } from "../position/position.js";
|
|
2
|
+
import { FontSchema } from "../font.js";
|
|
2
3
|
import { TargetSchema } from "./target.js";
|
|
3
4
|
import { z } from "zod";
|
|
4
5
|
//#region src/ir/path/step.ts
|
|
@@ -23,7 +24,10 @@ var StepLabelSchema = z.object({
|
|
|
23
24
|
"left",
|
|
24
25
|
"right",
|
|
25
26
|
"sloped"
|
|
26
|
-
]).optional().describe("Side relative to segment direction. `above` / `below` / `left` / `right` offset along segment normal; `sloped` rotates label along the tangent (no normal offset). Default `above`.")
|
|
27
|
+
]).optional().describe("Side relative to segment direction. `above` / `below` / `left` / `right` offset along segment normal; `sloped` rotates label along the tangent (no normal offset). Default `above`."),
|
|
28
|
+
textColor: z.string().optional().describe("Label text color; falls back to the scope labelDefault, then the owning path's resolved master color, then currentColor. To match a colored line set the path color (not stroke)."),
|
|
29
|
+
opacity: z.number().min(0).max(1).optional().describe("Label-only opacity 0..1; multiplied with the owning path opacity (element-internal axis). Scope-level opacity does NOT compound."),
|
|
30
|
+
font: FontSchema.optional().describe("Label font overrides (family / size / weight / style); missing fields inherit from the scope labelDefault, then the renderer default.")
|
|
27
31
|
}).describe("Edge label spec attached to a drawn step; compiled to a TextPrim positioned along the segment.");
|
|
28
32
|
var MoveStepSchema = z.object({
|
|
29
33
|
type: z.literal("step").describe("Discriminator marking this as a path step node"),
|