@retikz/core 0.1.0-alpha.2 → 0.1.0-alpha.3

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.
Files changed (77) hide show
  1. package/dist/es/compile/compile.js +3 -3
  2. package/dist/es/compile/path.d.ts +3 -2
  3. package/dist/es/compile/path.d.ts.map +1 -1
  4. package/dist/es/compile/path.js +333 -14
  5. package/dist/es/geometry/arc.d.ts +34 -0
  6. package/dist/es/geometry/arc.d.ts.map +1 -0
  7. package/dist/es/geometry/arc.js +53 -0
  8. package/dist/es/geometry/bend.d.ts +18 -0
  9. package/dist/es/geometry/bend.d.ts.map +1 -0
  10. package/dist/es/geometry/bend.js +29 -0
  11. package/dist/es/geometry/index.d.ts +3 -0
  12. package/dist/es/geometry/index.d.ts.map +1 -1
  13. package/dist/es/geometry/segment.d.ts +38 -0
  14. package/dist/es/geometry/segment.d.ts.map +1 -0
  15. package/dist/es/geometry/segment.js +82 -0
  16. package/dist/es/index.d.ts +4 -4
  17. package/dist/es/index.d.ts.map +1 -1
  18. package/dist/es/index.js +4 -3
  19. package/dist/es/ir/node.d.ts +12 -12
  20. package/dist/es/ir/path/path.d.ts +625 -15
  21. package/dist/es/ir/path/path.d.ts.map +1 -1
  22. package/dist/es/ir/path/path.js +22 -0
  23. package/dist/es/ir/path/step.d.ts +872 -20
  24. package/dist/es/ir/path/step.d.ts.map +1 -1
  25. package/dist/es/ir/path/step.js +86 -4
  26. package/dist/es/ir/path/target.d.ts +32 -2
  27. package/dist/es/ir/path/target.d.ts.map +1 -1
  28. package/dist/es/ir/path/target.js +7 -3
  29. package/dist/es/ir/scene.d.ts +1496 -72
  30. package/dist/es/ir/scene.d.ts.map +1 -1
  31. package/dist/es/parsers/index.d.ts +1 -0
  32. package/dist/es/parsers/index.d.ts.map +1 -1
  33. package/dist/es/parsers/parseTargetSugar.d.ts +3 -0
  34. package/dist/es/parsers/parseTargetSugar.d.ts.map +1 -0
  35. package/dist/es/parsers/parseTargetSugar.js +31 -0
  36. package/dist/es/parsers/parseWay.d.ts +131 -22
  37. package/dist/es/parsers/parseWay.d.ts.map +1 -1
  38. package/dist/es/parsers/parseWay.js +149 -17
  39. package/dist/lib/compile/compile.cjs +3 -3
  40. package/dist/lib/compile/path.cjs +333 -14
  41. package/dist/lib/compile/path.d.ts +3 -2
  42. package/dist/lib/compile/path.d.ts.map +1 -1
  43. package/dist/lib/geometry/arc.cjs +55 -0
  44. package/dist/lib/geometry/arc.d.ts +34 -0
  45. package/dist/lib/geometry/arc.d.ts.map +1 -0
  46. package/dist/lib/geometry/bend.cjs +29 -0
  47. package/dist/lib/geometry/bend.d.ts +18 -0
  48. package/dist/lib/geometry/bend.d.ts.map +1 -0
  49. package/dist/lib/geometry/index.d.ts +3 -0
  50. package/dist/lib/geometry/index.d.ts.map +1 -1
  51. package/dist/lib/geometry/segment.cjs +88 -0
  52. package/dist/lib/geometry/segment.d.ts +38 -0
  53. package/dist/lib/geometry/segment.d.ts.map +1 -0
  54. package/dist/lib/index.cjs +12 -0
  55. package/dist/lib/index.d.ts +4 -4
  56. package/dist/lib/index.d.ts.map +1 -1
  57. package/dist/lib/ir/node.d.ts +12 -12
  58. package/dist/lib/ir/path/path.cjs +22 -0
  59. package/dist/lib/ir/path/path.d.ts +625 -15
  60. package/dist/lib/ir/path/path.d.ts.map +1 -1
  61. package/dist/lib/ir/path/step.cjs +93 -3
  62. package/dist/lib/ir/path/step.d.ts +872 -20
  63. package/dist/lib/ir/path/step.d.ts.map +1 -1
  64. package/dist/lib/ir/path/target.cjs +8 -2
  65. package/dist/lib/ir/path/target.d.ts +32 -2
  66. package/dist/lib/ir/path/target.d.ts.map +1 -1
  67. package/dist/lib/ir/scene.d.ts +1496 -72
  68. package/dist/lib/ir/scene.d.ts.map +1 -1
  69. package/dist/lib/parsers/index.d.ts +1 -0
  70. package/dist/lib/parsers/index.d.ts.map +1 -1
  71. package/dist/lib/parsers/parseTargetSugar.cjs +31 -0
  72. package/dist/lib/parsers/parseTargetSugar.d.ts +3 -0
  73. package/dist/lib/parsers/parseTargetSugar.d.ts.map +1 -0
  74. package/dist/lib/parsers/parseWay.cjs +149 -17
  75. package/dist/lib/parsers/parseWay.d.ts +131 -22
  76. package/dist/lib/parsers/parseWay.d.ts.map +1 -1
  77. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/ir/path/path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsDpB,CAAC;AAEJ,+CAA+C;AAC/C,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
1
+ {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../../../src/ir/path/path.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoGpB,CAAC;AAEJ,+CAA+C;AAC/C,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -16,6 +16,28 @@ var PathSchema = z.object({
16
16
  arrowShape: z.nativeEnum(ARROW_SHAPES).optional().describe("Arrow tip shape; default `normal` (filled triangle). Other values: `open` (hollow triangle), `stealth` (sharp barb), `diamond`, `circle`."),
17
17
  fill: z.string().optional().describe("Fill color of the closed region; any CSS color. Omitted = no fill (stroke only). Pairs with `cycle` step for filled shapes."),
18
18
  fillRule: z.enum(["nonzero", "evenodd"]).optional().describe("How self-intersecting / nested sub-paths are filled. `nonzero` (default, SVG default) winds-by-direction; `evenodd` toggles fill on each crossing — useful for ring / donut shapes."),
19
+ lineCap: z.enum([
20
+ "butt",
21
+ "round",
22
+ "square"
23
+ ]).optional().describe("Stroke endpoint shape (SVG `stroke-linecap`). Default `butt` (sharp end); `round` adds a half-disc cap; `square` extends a half-stroke past the endpoint."),
24
+ lineJoin: z.enum([
25
+ "miter",
26
+ "round",
27
+ "bevel"
28
+ ]).optional().describe("Stroke corner shape (SVG `stroke-linejoin`). Default `miter` (sharp corner); `round` rounds the join; `bevel` cuts the corner flat."),
29
+ thickness: z.enum([
30
+ "ultraThin",
31
+ "veryThin",
32
+ "thin",
33
+ "semithick",
34
+ "thick",
35
+ "veryThick",
36
+ "ultraThick"
37
+ ]).optional().describe("Semantic stroke thickness preset (TikZ `ultra thin` … `ultra thick`). Compiled to a numeric stroke-width if `strokeWidth` is omitted. Explicit `strokeWidth` always wins."),
38
+ opacity: z.number().min(0).max(1).optional().describe("Whole-path opacity 0..1; multiplies onto stroke and fill."),
39
+ fillOpacity: z.number().min(0).max(1).optional().describe("Fill opacity 0..1; affects only the closed-region fill."),
40
+ drawOpacity: z.number().min(0).max(1).optional().describe("Stroke opacity 0..1 (TikZ `draw opacity`); affects only the path stroke."),
19
41
  children: z.array(StepSchema).min(2).describe("Sequence of step actions defining the path; the first should usually be a `move`")
20
42
  }).describe("A drawn path composed of a sequence of step actions (move / line / ...)");
21
43
  //#endregion