@snaptrude/plugin-core 1.0.2-plainpoint-20261026.2 → 1.0.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.
Files changed (103) hide show
  1. package/AGENTS.md +1 -0
  2. package/CHANGELOG.md +12 -0
  3. package/api-manifest.json +60 -0
  4. package/dist/api/core/camera/index.d.ts +4 -12
  5. package/dist/api/core/camera/index.d.ts.map +1 -1
  6. package/dist/api/core/comment/index.d.ts +3 -7
  7. package/dist/api/core/comment/index.d.ts.map +1 -1
  8. package/dist/api/core/geom/create/index.d.ts +21 -69
  9. package/dist/api/core/geom/create/index.d.ts.map +1 -1
  10. package/dist/api/core/geom/query/circle.d.ts +11 -31
  11. package/dist/api/core/geom/query/circle.d.ts.map +1 -1
  12. package/dist/api/core/geom/query/contour.d.ts +7 -19
  13. package/dist/api/core/geom/query/contour.d.ts.map +1 -1
  14. package/dist/api/core/geom/query/curve.d.ts +24 -72
  15. package/dist/api/core/geom/query/curve.d.ts.map +1 -1
  16. package/dist/api/core/geom/query/profile.d.ts +7 -19
  17. package/dist/api/core/geom/query/profile.d.ts.map +1 -1
  18. package/dist/api/core/geom/update/contour.d.ts +12 -36
  19. package/dist/api/core/geom/update/contour.d.ts.map +1 -1
  20. package/dist/api/core/geom/update/curve.d.ts +5 -13
  21. package/dist/api/core/geom/update/curve.d.ts.map +1 -1
  22. package/dist/api/core/geom/update/profile.d.ts +12 -36
  23. package/dist/api/core/geom/update/profile.d.ts.map +1 -1
  24. package/dist/api/core/io/import/index.d.ts +3 -7
  25. package/dist/api/core/io/import/index.d.ts.map +1 -1
  26. package/dist/api/core/math/quat.d.ts +2 -2
  27. package/dist/api/core/math/quat.d.ts.map +1 -1
  28. package/dist/api/core/math/vec3.d.ts +15 -15
  29. package/dist/api/core/math/vec3.d.ts.map +1 -1
  30. package/dist/api/design/boolean/index.d.ts +4 -20
  31. package/dist/api/design/boolean/index.d.ts.map +1 -1
  32. package/dist/api/design/create/bulk-items.d.ts +4 -20
  33. package/dist/api/design/create/bulk-items.d.ts.map +1 -1
  34. package/dist/api/design/create/index.d.ts +27 -67
  35. package/dist/api/design/create/index.d.ts.map +1 -1
  36. package/dist/api/design/delete/index.d.ts +7 -14
  37. package/dist/api/design/delete/index.d.ts.map +1 -1
  38. package/dist/api/design/dimensions.d.ts +4 -12
  39. package/dist/api/design/dimensions.d.ts.map +1 -1
  40. package/dist/api/design/edit/index.d.ts +3 -7
  41. package/dist/api/design/edit/index.d.ts.map +1 -1
  42. package/dist/api/design/erase/index.d.ts +2 -10
  43. package/dist/api/design/erase/index.d.ts.map +1 -1
  44. package/dist/api/design/family.d.ts +1 -5
  45. package/dist/api/design/family.d.ts.map +1 -1
  46. package/dist/api/design/index.d.ts +5 -0
  47. package/dist/api/design/index.d.ts.map +1 -1
  48. package/dist/api/design/lock.d.ts +0 -3
  49. package/dist/api/design/lock.d.ts.map +1 -1
  50. package/dist/api/design/text.d.ts +400 -0
  51. package/dist/api/design/text.d.ts.map +1 -0
  52. package/dist/api/design/transform/index.d.ts +8 -28
  53. package/dist/api/design/transform/index.d.ts.map +1 -1
  54. package/dist/api/entity/space.d.ts +6 -30
  55. package/dist/api/entity/space.d.ts.map +1 -1
  56. package/dist/api/presentation/drawings.d.ts +46 -1
  57. package/dist/api/presentation/drawings.d.ts.map +1 -1
  58. package/dist/api/presentation/graphics.d.ts +4 -0
  59. package/dist/api/presentation/graphics.d.ts.map +1 -1
  60. package/dist/api/presentation/placedViews.d.ts +29 -1
  61. package/dist/api/presentation/placedViews.d.ts.map +1 -1
  62. package/dist/api/presentation/standards.d.ts +14 -0
  63. package/dist/api/presentation/standards.d.ts.map +1 -1
  64. package/dist/handles.d.ts +0 -8
  65. package/dist/handles.d.ts.map +1 -1
  66. package/dist/index.cjs +2281 -2188
  67. package/dist/index.cjs.map +1 -1
  68. package/dist/index.js +2269 -2187
  69. package/dist/index.js.map +1 -1
  70. package/package.json +13 -13
  71. package/src/api/core/camera/index.ts +5 -5
  72. package/src/api/core/comment/index.ts +3 -3
  73. package/src/api/core/geom/create/index.ts +25 -25
  74. package/src/api/core/geom/query/circle.ts +11 -11
  75. package/src/api/core/geom/query/contour.ts +6 -7
  76. package/src/api/core/geom/query/curve.ts +25 -25
  77. package/src/api/core/geom/query/profile.ts +6 -7
  78. package/src/api/core/geom/update/contour.ts +11 -12
  79. package/src/api/core/geom/update/curve.ts +5 -5
  80. package/src/api/core/geom/update/profile.ts +11 -12
  81. package/src/api/core/io/import/index.ts +2 -3
  82. package/src/api/core/math/quat.ts +2 -2
  83. package/src/api/core/math/vec3.ts +16 -16
  84. package/src/api/design/boolean/index.ts +2 -2
  85. package/src/api/design/create/bulk-items.ts +2 -3
  86. package/src/api/design/create/index.ts +26 -27
  87. package/src/api/design/delete/index.ts +7 -14
  88. package/src/api/design/dimensions.ts +4 -5
  89. package/src/api/design/edit/index.ts +3 -3
  90. package/src/api/design/erase/index.ts +2 -2
  91. package/src/api/design/family.ts +1 -2
  92. package/src/api/design/index.ts +5 -0
  93. package/src/api/design/lock.ts +0 -6
  94. package/src/api/design/text.ts +394 -0
  95. package/src/api/design/transform/index.ts +7 -15
  96. package/src/api/entity/space.ts +4 -5
  97. package/src/api/presentation/graphics.ts +4 -1
  98. package/src/api/presentation/placedViews.ts +12 -0
  99. package/src/api/presentation/standards.ts +6 -0
  100. package/src/handles.ts +0 -11
  101. package/test/designText.test.mjs +72 -0
  102. package/test/paperPensContract.test.mjs +39 -0
  103. package/test/handles.test.mjs +0 -36
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snaptrude/plugin-core",
3
- "version": "1.0.2-plainpoint-20261026.2",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -16,6 +16,17 @@
16
16
  "publishConfig": {
17
17
  "access": "public"
18
18
  },
19
+ "devDependencies": {
20
+ "ts-morph": "^28.0.0",
21
+ "tsup": "^8.5.1",
22
+ "typescript": "^5.5.4"
23
+ },
24
+ "dependencies": {
25
+ "zod": "^4.3.6"
26
+ },
27
+ "peerDependencies": {
28
+ "zod": "^3.25.0 || ^4.0.0"
29
+ },
19
30
  "scripts": {
20
31
  "check-types": "tsc --noEmit",
21
32
  "build": "tsup --clean",
@@ -27,16 +38,5 @@
27
38
  "generate:manifest:check": "node scripts/generate-manifest.mjs --check",
28
39
  "generate:manifest:all": "node scripts/generate-manifest.mjs --all",
29
40
  "generate:manifest:all:check": "node scripts/generate-manifest.mjs --all --check"
30
- },
31
- "devDependencies": {
32
- "ts-morph": "^28.0.0",
33
- "tsup": "^8.5.1",
34
- "typescript": "^5.5.4"
35
- },
36
- "dependencies": {
37
- "zod": "^4.3.6"
38
- },
39
- "peerDependencies": {
40
- "zod": "^3.25.0 || ^4.0.0"
41
41
  }
42
- }
42
+ }
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod"
2
2
  import { PluginApiReturn } from "../../../types"
3
- import { Vec3Components, Vec3Handle, Vec3Input } from "../../../handles"
3
+ import { Vec3Components, Vec3Handle } from "../../../handles"
4
4
 
5
5
  /**
6
6
  * Camera controls.
@@ -50,8 +50,8 @@ export abstract class PluginCameraApi {
50
50
  * ```
51
51
  */
52
52
  public abstract lookFrom(
53
- eye: Vec3Input,
54
- target: Vec3Input,
53
+ eye: Vec3Handle,
54
+ target: Vec3Handle,
55
55
  ): PluginApiReturn<boolean>
56
56
 
57
57
  /**
@@ -432,8 +432,8 @@ export type PluginCameraProjection = z.infer<typeof PluginCameraProjection>
432
432
  * | `target` | {@linkcode Vec3Handle} | Point the camera looks at |
433
433
  */
434
434
  export const PluginCameraLookFromArgs = z.object({
435
- eye: Vec3Input,
436
- target: Vec3Input,
435
+ eye: Vec3Handle,
436
+ target: Vec3Handle,
437
437
  })
438
438
  export type PluginCameraLookFromArgs = z.infer<typeof PluginCameraLookFromArgs>
439
439
 
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod"
2
2
  import { PluginApiReturn } from "../../../types"
3
- import { Vec3Handle, Vec3Input, ComponentHandle, Vec3Components } from "../../../handles"
3
+ import { Vec3Handle, ComponentHandle, Vec3Components } from "../../../handles"
4
4
 
5
5
  /**
6
6
  * Comments — create, edit, resolve, tag, and list scene/project comments.
@@ -40,7 +40,7 @@ export abstract class PluginCommentApi {
40
40
  public abstract create(
41
41
  message: string,
42
42
  component?: ComponentHandle,
43
- position?: Vec3Input,
43
+ position?: Vec3Handle,
44
44
  mentions?: string[],
45
45
  ): PluginApiReturn<CommentHandle>
46
46
 
@@ -258,7 +258,7 @@ export const CommentHandle = z
258
258
  */
259
259
  export const PluginCommentCreateArgs = z.object({
260
260
  component: ComponentHandle.optional(),
261
- position: Vec3Input.optional(),
261
+ position: Vec3Handle.optional(),
262
262
  message: z.string(),
263
263
  mentions: z.array(z.string()).optional(),
264
264
  })
@@ -8,7 +8,7 @@ import {
8
8
  MAX_FILLET_LAW_SAMPLES,
9
9
  } from "../../../../massParameters"
10
10
  import type { SweepAlongCurveRecordOptions } from "../../../../massParameters"
11
- import { Vec3Handle, Vec3Input, LineHandle, ArcHandle, SplineHandle, CircleHandle, CurveHandle, ProfileHandle, ContourHandle, BrepHandle, FaceHandle, EdgeHandle, Vec3Components } from "../../../../handles"
11
+ import { Vec3Handle, LineHandle, ArcHandle, SplineHandle, CircleHandle, CurveHandle, ProfileHandle, ContourHandle, BrepHandle, FaceHandle, EdgeHandle, Vec3Components } from "../../../../handles"
12
12
 
13
13
  /** Maximum boundary items one patch may span. */
14
14
  export const MAX_PATCH_BOUNDARY_CURVES = 16
@@ -63,7 +63,7 @@ export abstract class PluginGeomCreateApi {
63
63
  * const line = snaptrude.core.geom.create.line(startPoint, endPoint)
64
64
  * ```
65
65
  */
66
- public abstract line(startPoint: Vec3Input, endPoint: Vec3Input): PluginApiReturn<LineHandle>
66
+ public abstract line(startPoint: Vec3Handle, endPoint: Vec3Handle): PluginApiReturn<LineHandle>
67
67
 
68
68
  /**
69
69
  * Create a circular arc from its start, end, centre, and axis point handles.
@@ -84,10 +84,10 @@ export abstract class PluginGeomCreateApi {
84
84
  * ```
85
85
  */
86
86
  public abstract arc(
87
- startPoint: Vec3Input,
88
- endPoint: Vec3Input,
89
- centrePoint: Vec3Input,
90
- axis: Vec3Input,
87
+ startPoint: Vec3Handle,
88
+ endPoint: Vec3Handle,
89
+ centrePoint: Vec3Handle,
90
+ axis: Vec3Handle,
91
91
  ): PluginApiReturn<ArcHandle>
92
92
 
93
93
  /**
@@ -109,8 +109,8 @@ export abstract class PluginGeomCreateApi {
109
109
  * ```
110
110
  */
111
111
  public abstract circle(
112
- centrePoint: Vec3Input,
113
- axis: Vec3Input,
112
+ centrePoint: Vec3Handle,
113
+ axis: Vec3Handle,
114
114
  radius: number,
115
115
  ): PluginApiReturn<CircleHandle>
116
116
 
@@ -144,7 +144,7 @@ export abstract class PluginGeomCreateApi {
144
144
  * const profile = await snaptrude.core.geom.create.profileFromCurves([spline, base])
145
145
  * ```
146
146
  */
147
- public abstract splineFromPoints(points: Vec3Input[]): PluginApiReturn<SplineHandle>
147
+ public abstract splineFromPoints(points: Vec3Handle[]): PluginApiReturn<SplineHandle>
148
148
 
149
149
  /**
150
150
  * Create an open NURBS curve DEFINED BY control points — the curve is pulled
@@ -179,7 +179,7 @@ export abstract class PluginGeomCreateApi {
179
179
  * ```
180
180
  */
181
181
  public abstract splineFromControlPoints(
182
- controlPoints: Vec3Input[],
182
+ controlPoints: Vec3Handle[],
183
183
  options?: { degree?: number },
184
184
  ): PluginApiReturn<SplineHandle>
185
185
 
@@ -220,7 +220,7 @@ export abstract class PluginGeomCreateApi {
220
220
  * const profile = snaptrude.core.geom.create.profileFromLinePoints(points)
221
221
  * ```
222
222
  */
223
- public abstract profileFromLinePoints(points: Vec3Input[]): PluginApiReturn<ProfileHandle>
223
+ public abstract profileFromLinePoints(points: Vec3Handle[]): PluginApiReturn<ProfileHandle>
224
224
 
225
225
  /**
226
226
  * Create a profile from an ordered list of curve handles forming a closed loop.
@@ -269,7 +269,7 @@ export abstract class PluginGeomCreateApi {
269
269
  * const podium = await snaptrude.design.create.massFromBrep(brep, "Podium")
270
270
  * ```
271
271
  */
272
- public abstract profileFromSplinePoints(points: Vec3Input[]): PluginApiReturn<ProfileHandle>
272
+ public abstract profileFromSplinePoints(points: Vec3Handle[]): PluginApiReturn<ProfileHandle>
273
273
 
274
274
  /**
275
275
  * Create an axis-aligned **rectangle** profile in the XZ plane,
@@ -298,7 +298,7 @@ export abstract class PluginGeomCreateApi {
298
298
  public abstract profileRect(
299
299
  width: number,
300
300
  depth: number,
301
- center?: Vec3Input,
301
+ center?: Vec3Handle,
302
302
  ): PluginApiReturn<ProfileHandle>
303
303
 
304
304
  /**
@@ -1482,8 +1482,8 @@ export abstract class PluginGeomCreateApi {
1482
1482
  * | `endPoint` | {@linkcode Vec3Handle} | End point of the line segment |
1483
1483
  */
1484
1484
  export const PluginGeomCreateLineArgs = z.object({
1485
- startPoint: Vec3Input,
1486
- endPoint: Vec3Input,
1485
+ startPoint: Vec3Handle,
1486
+ endPoint: Vec3Handle,
1487
1487
  })
1488
1488
 
1489
1489
  export type PluginGeomCreateLineArgs = z.infer<typeof PluginGeomCreateLineArgs>
@@ -1499,10 +1499,10 @@ export type PluginGeomCreateLineArgs = z.infer<typeof PluginGeomCreateLineArgs>
1499
1499
  * | `axis` | {@linkcode Vec3Handle} | Axis direction of the arc |
1500
1500
  */
1501
1501
  export const PluginGeomCreateArcArgs = z.object({
1502
- startPoint: Vec3Input,
1503
- endPoint: Vec3Input,
1504
- centrePoint: Vec3Input,
1505
- axis: Vec3Input,
1502
+ startPoint: Vec3Handle,
1503
+ endPoint: Vec3Handle,
1504
+ centrePoint: Vec3Handle,
1505
+ axis: Vec3Handle,
1506
1506
  })
1507
1507
 
1508
1508
  export type PluginGeomCreateArcArgs = z.infer<typeof PluginGeomCreateArcArgs>
@@ -1517,8 +1517,8 @@ export type PluginGeomCreateArcArgs = z.infer<typeof PluginGeomCreateArcArgs>
1517
1517
  * | `radius` | `number` | Radius of the circle |
1518
1518
  */
1519
1519
  export const PluginGeomCreateCircleArgs = z.object({
1520
- centrePoint: Vec3Input,
1521
- axis: Vec3Input,
1520
+ centrePoint: Vec3Handle,
1521
+ axis: Vec3Handle,
1522
1522
  radius: z.number(),
1523
1523
  })
1524
1524
 
@@ -1532,7 +1532,7 @@ export type PluginGeomCreateCircleArgs = z.infer<typeof PluginGeomCreateCircleAr
1532
1532
  * | `points` | {@linkcode Vec3Handle}`[]` | 3..256 ordered through-points of the curve |
1533
1533
  */
1534
1534
  export const PluginGeomCreateSplineFromPointsArgs = z.object({
1535
- points: z.array(Vec3Input).min(3).max(MAX_SPLINE_THROUGH_POINTS),
1535
+ points: z.array(Vec3Handle).min(3).max(MAX_SPLINE_THROUGH_POINTS),
1536
1536
  })
1537
1537
 
1538
1538
  export type PluginGeomCreateSplineFromPointsArgs = z.infer<
@@ -1548,7 +1548,7 @@ export type PluginGeomCreateSplineFromPointsArgs = z.infer<
1548
1548
  * | `options` | `object`? | `degree`: 2 or 3 (default `min(3, controlPoints.length - 1)`) |
1549
1549
  */
1550
1550
  export const PluginGeomCreateSplineFromControlPointsArgs = z.object({
1551
- controlPoints: z.array(Vec3Input).min(3).max(MAX_SPLINE_POLES),
1551
+ controlPoints: z.array(Vec3Handle).min(3).max(MAX_SPLINE_POLES),
1552
1552
  options: z.object({ degree: z.number().int().min(2).max(3).optional() }).optional(),
1553
1553
  })
1554
1554
 
@@ -1564,7 +1564,7 @@ export type PluginGeomCreateSplineFromControlPointsArgs = z.infer<
1564
1564
  * | `points` | {@linkcode Vec3Handle}`[]` | Ordered vertex handles of the profile |
1565
1565
  */
1566
1566
  export const PluginGeomCreateProfileFromLinePointsArgs = z.object({
1567
- points: z.array(Vec3Input),
1567
+ points: z.array(Vec3Handle),
1568
1568
  })
1569
1569
 
1570
1570
  export type PluginGeomCreateProfileFromLinePointsArgs = z.infer<
@@ -1594,7 +1594,7 @@ export type PluginGeomCreateProfileFromCurvesArgs = z.infer<
1594
1594
  * | `points` | {@linkcode Vec3Handle}`[]` | 3..256 ordered through-points of the closed loop (first point NOT repeated) |
1595
1595
  */
1596
1596
  export const PluginGeomCreateProfileFromSplinePointsArgs = z.object({
1597
- points: z.array(Vec3Input).min(3).max(MAX_SPLINE_THROUGH_POINTS),
1597
+ points: z.array(Vec3Handle).min(3).max(MAX_SPLINE_THROUGH_POINTS),
1598
1598
  })
1599
1599
 
1600
1600
  export type PluginGeomCreateProfileFromSplinePointsArgs = z.infer<
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod"
2
2
  import { PluginApiReturn } from "../../../../types"
3
- import { CircleHandle, Vec3Handle, Vec3Input, Vec3Components } from "../../../../handles"
3
+ import { CircleHandle, Vec3Handle, Vec3Components } from "../../../../handles"
4
4
 
5
5
  /**
6
6
  * Circle-specific geometry queries — read closed-circle properties as plain values
@@ -123,7 +123,7 @@ export abstract class PluginGeomQueryCircleApi {
123
123
  */
124
124
  public abstract getNearestPoint(
125
125
  circle: CircleHandle,
126
- point: Vec3Input
126
+ point: Vec3Handle
127
127
  ): PluginApiReturn<Vec3Components>
128
128
 
129
129
  /**
@@ -143,7 +143,7 @@ export abstract class PluginGeomQueryCircleApi {
143
143
  * const onCircle = await snaptrude.core.geom.query.circle.hasPoint(circle, pt)
144
144
  * ```
145
145
  */
146
- public abstract hasPoint(circle: CircleHandle, point: Vec3Input): PluginApiReturn<boolean>
146
+ public abstract hasPoint(circle: CircleHandle, point: Vec3Handle): PluginApiReturn<boolean>
147
147
 
148
148
  /**
149
149
  * Get the tangent direction of a circle at a point on it.
@@ -161,7 +161,7 @@ export abstract class PluginGeomQueryCircleApi {
161
161
  * console.log(tangent.x, tangent.y, tangent.z)
162
162
  * ```
163
163
  */
164
- public abstract getTangent(circle: CircleHandle, point: Vec3Input): PluginApiReturn<Vec3Components>
164
+ public abstract getTangent(circle: CircleHandle, point: Vec3Handle): PluginApiReturn<Vec3Components>
165
165
 
166
166
  /**
167
167
  * Get the (in-plane, radial) normal direction of a circle at a point on it.
@@ -179,7 +179,7 @@ export abstract class PluginGeomQueryCircleApi {
179
179
  * console.log(normal.x, normal.y, normal.z)
180
180
  * ```
181
181
  */
182
- public abstract getNormal(circle: CircleHandle, point: Vec3Input): PluginApiReturn<Vec3Components>
182
+ public abstract getNormal(circle: CircleHandle, point: Vec3Handle): PluginApiReturn<Vec3Components>
183
183
 
184
184
  /**
185
185
  * Get the point reached by travelling a signed arc-distance along the circle from
@@ -204,7 +204,7 @@ export abstract class PluginGeomQueryCircleApi {
204
204
  */
205
205
  public abstract getPointAtDistance(
206
206
  circle: CircleHandle,
207
- referencePoint: Vec3Input,
207
+ referencePoint: Vec3Handle,
208
208
  distance: number,
209
209
  forward?: boolean
210
210
  ): PluginApiReturn<Vec3Components>
@@ -307,7 +307,7 @@ export type PluginGeomQueryCircleIsValidArgs = z.infer<typeof PluginGeomQueryCir
307
307
  */
308
308
  export const PluginGeomQueryCircleGetNearestPointArgs = z.object({
309
309
  circle: CircleHandle,
310
- point: Vec3Input,
310
+ point: Vec3Handle,
311
311
  })
312
312
  export type PluginGeomQueryCircleGetNearestPointArgs = z.infer<
313
313
  typeof PluginGeomQueryCircleGetNearestPointArgs
@@ -323,7 +323,7 @@ export type PluginGeomQueryCircleGetNearestPointArgs = z.infer<
323
323
  */
324
324
  export const PluginGeomQueryCircleHasPointArgs = z.object({
325
325
  circle: CircleHandle,
326
- point: Vec3Input,
326
+ point: Vec3Handle,
327
327
  })
328
328
  export type PluginGeomQueryCircleHasPointArgs = z.infer<typeof PluginGeomQueryCircleHasPointArgs>
329
329
 
@@ -337,7 +337,7 @@ export type PluginGeomQueryCircleHasPointArgs = z.infer<typeof PluginGeomQueryCi
337
337
  */
338
338
  export const PluginGeomQueryCircleGetTangentArgs = z.object({
339
339
  circle: CircleHandle,
340
- point: Vec3Input,
340
+ point: Vec3Handle,
341
341
  })
342
342
  export type PluginGeomQueryCircleGetTangentArgs = z.infer<typeof PluginGeomQueryCircleGetTangentArgs>
343
343
 
@@ -351,7 +351,7 @@ export type PluginGeomQueryCircleGetTangentArgs = z.infer<typeof PluginGeomQuery
351
351
  */
352
352
  export const PluginGeomQueryCircleGetNormalArgs = z.object({
353
353
  circle: CircleHandle,
354
- point: Vec3Input,
354
+ point: Vec3Handle,
355
355
  })
356
356
  export type PluginGeomQueryCircleGetNormalArgs = z.infer<typeof PluginGeomQueryCircleGetNormalArgs>
357
357
 
@@ -367,7 +367,7 @@ export type PluginGeomQueryCircleGetNormalArgs = z.infer<typeof PluginGeomQueryC
367
367
  */
368
368
  export const PluginGeomQueryCircleGetPointAtDistanceArgs = z.object({
369
369
  circle: CircleHandle,
370
- referencePoint: Vec3Input,
370
+ referencePoint: Vec3Handle,
371
371
  distance: z.number(),
372
372
  forward: z.boolean().optional(),
373
373
  })
@@ -4,7 +4,6 @@ import {
4
4
  ContourHandle,
5
5
  ProfileHandle,
6
6
  Vec3Handle,
7
- Vec3Input,
8
7
  Vec3Components,
9
8
  BBoxComponents,
10
9
  } from "../../../../handles"
@@ -176,7 +175,7 @@ export abstract class PluginGeomQueryContourApi {
176
175
  */
177
176
  public abstract getNearestPoint(
178
177
  contour: ContourHandle,
179
- point: Vec3Input
178
+ point: Vec3Handle
180
179
  ): PluginApiReturn<Vec3Components>
181
180
 
182
181
  /**
@@ -200,7 +199,7 @@ export abstract class PluginGeomQueryContourApi {
200
199
  */
201
200
  public abstract hasPoint(
202
201
  contour: ContourHandle,
203
- point: Vec3Input
202
+ point: Vec3Handle
204
203
  ): PluginApiReturn<boolean>
205
204
 
206
205
  /**
@@ -219,7 +218,7 @@ export abstract class PluginGeomQueryContourApi {
219
218
  */
220
219
  public abstract isOnBoundary(
221
220
  contour: ContourHandle,
222
- point: Vec3Input
221
+ point: Vec3Handle
223
222
  ): PluginApiReturn<boolean>
224
223
 
225
224
  /**
@@ -425,7 +424,7 @@ export type PluginGeomQueryContourGetNormalArgs = z.infer<typeof PluginGeomQuery
425
424
  */
426
425
  export const PluginGeomQueryContourGetNearestPointArgs = z.object({
427
426
  contour: ContourHandle,
428
- point: Vec3Input,
427
+ point: Vec3Handle,
429
428
  })
430
429
 
431
430
  export type PluginGeomQueryContourGetNearestPointArgs = z.infer<typeof PluginGeomQueryContourGetNearestPointArgs>
@@ -440,7 +439,7 @@ export type PluginGeomQueryContourGetNearestPointArgs = z.infer<typeof PluginGeo
440
439
  */
441
440
  export const PluginGeomQueryContourHasPointArgs = z.object({
442
441
  contour: ContourHandle,
443
- point: Vec3Input,
442
+ point: Vec3Handle,
444
443
  })
445
444
 
446
445
  export type PluginGeomQueryContourHasPointArgs = z.infer<typeof PluginGeomQueryContourHasPointArgs>
@@ -455,7 +454,7 @@ export type PluginGeomQueryContourHasPointArgs = z.infer<typeof PluginGeomQueryC
455
454
  */
456
455
  export const PluginGeomQueryContourIsOnBoundaryArgs = z.object({
457
456
  contour: ContourHandle,
458
- point: Vec3Input,
457
+ point: Vec3Handle,
459
458
  })
460
459
 
461
460
  export type PluginGeomQueryContourIsOnBoundaryArgs = z.infer<typeof PluginGeomQueryContourIsOnBoundaryArgs>
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod"
2
2
  import { PluginApiReturn } from "../../../../types"
3
- import { Vec3Handle, Vec3Input, CurveHandle, LineHandle, Vec3Components } from "../../../../handles"
3
+ import { Vec3Handle, CurveHandle, LineHandle, Vec3Components } from "../../../../handles"
4
4
 
5
5
  /**
6
6
  * Curve queries — read-only geometric questions about curves (lines, arcs and
@@ -152,7 +152,7 @@ export abstract class PluginGeomQueryCurveApi {
152
152
  */
153
153
  public abstract getTangent(
154
154
  curve: CurveHandle,
155
- point: Vec3Input,
155
+ point: Vec3Handle,
156
156
  ): PluginApiReturn<Vec3Components>
157
157
 
158
158
  /**
@@ -171,7 +171,7 @@ export abstract class PluginGeomQueryCurveApi {
171
171
  */
172
172
  public abstract getNormal(
173
173
  curve: CurveHandle,
174
- point: Vec3Input,
174
+ point: Vec3Handle,
175
175
  ): PluginApiReturn<Vec3Components>
176
176
 
177
177
  /**
@@ -194,7 +194,7 @@ export abstract class PluginGeomQueryCurveApi {
194
194
  */
195
195
  public abstract getNearestPoint(
196
196
  curve: CurveHandle,
197
- point: Vec3Input,
197
+ point: Vec3Handle,
198
198
  ): PluginApiReturn<Vec3Components>
199
199
 
200
200
  /**
@@ -214,7 +214,7 @@ export abstract class PluginGeomQueryCurveApi {
214
214
  */
215
215
  public abstract getProjection(
216
216
  curve: CurveHandle,
217
- point: Vec3Input,
217
+ point: Vec3Handle,
218
218
  ): PluginApiReturn<Vec3Components>
219
219
 
220
220
  /**
@@ -239,7 +239,7 @@ export abstract class PluginGeomQueryCurveApi {
239
239
  */
240
240
  public abstract getPointAtDistance(
241
241
  curve: CurveHandle,
242
- referencePoint: Vec3Input,
242
+ referencePoint: Vec3Handle,
243
243
  distance: number,
244
244
  forward?: boolean,
245
245
  ): PluginApiReturn<Vec3Components>
@@ -260,7 +260,7 @@ export abstract class PluginGeomQueryCurveApi {
260
260
  */
261
261
  public abstract getParameterAtPoint(
262
262
  curve: CurveHandle,
263
- point: Vec3Input,
263
+ point: Vec3Handle,
264
264
  ): PluginApiReturn<number>
265
265
 
266
266
  /**
@@ -281,7 +281,7 @@ export abstract class PluginGeomQueryCurveApi {
281
281
  */
282
282
  public abstract getCurvature(
283
283
  curve: CurveHandle,
284
- point: Vec3Input,
284
+ point: Vec3Handle,
285
285
  ): PluginApiReturn<number>
286
286
 
287
287
  /**
@@ -305,7 +305,7 @@ export abstract class PluginGeomQueryCurveApi {
305
305
  */
306
306
  public abstract getDistanceToPoint(
307
307
  curve: CurveHandle,
308
- point: Vec3Input,
308
+ point: Vec3Handle,
309
309
  ): PluginApiReturn<number>
310
310
 
311
311
  /**
@@ -328,8 +328,8 @@ export abstract class PluginGeomQueryCurveApi {
328
328
  */
329
329
  public abstract getDistanceAlong(
330
330
  curve: CurveHandle,
331
- pointA: Vec3Input,
332
- pointB: Vec3Input,
331
+ pointA: Vec3Handle,
332
+ pointB: Vec3Handle,
333
333
  ): PluginApiReturn<number>
334
334
 
335
335
  /**
@@ -415,7 +415,7 @@ export abstract class PluginGeomQueryCurveApi {
415
415
  */
416
416
  public abstract isOnCurve(
417
417
  curve: CurveHandle,
418
- point: Vec3Input,
418
+ point: Vec3Handle,
419
419
  threshold?: number,
420
420
  ): PluginApiReturn<boolean>
421
421
 
@@ -437,7 +437,7 @@ export abstract class PluginGeomQueryCurveApi {
437
437
  */
438
438
  public abstract hasPoint(
439
439
  curve: CurveHandle,
440
- point: Vec3Input,
440
+ point: Vec3Handle,
441
441
  includeEndPoints?: boolean,
442
442
  ): PluginApiReturn<boolean>
443
443
 
@@ -748,7 +748,7 @@ export type PluginGeomQueryCurveGetChordLengthArgs = z.infer<typeof PluginGeomQu
748
748
  */
749
749
  export const PluginGeomQueryCurveGetTangentArgs = z.object({
750
750
  curve: CurveHandle,
751
- point: Vec3Input,
751
+ point: Vec3Handle,
752
752
  })
753
753
 
754
754
  export type PluginGeomQueryCurveGetTangentArgs = z.infer<typeof PluginGeomQueryCurveGetTangentArgs>
@@ -763,7 +763,7 @@ export type PluginGeomQueryCurveGetTangentArgs = z.infer<typeof PluginGeomQueryC
763
763
  */
764
764
  export const PluginGeomQueryCurveGetNormalArgs = z.object({
765
765
  curve: CurveHandle,
766
- point: Vec3Input,
766
+ point: Vec3Handle,
767
767
  })
768
768
 
769
769
  export type PluginGeomQueryCurveGetNormalArgs = z.infer<typeof PluginGeomQueryCurveGetNormalArgs>
@@ -778,7 +778,7 @@ export type PluginGeomQueryCurveGetNormalArgs = z.infer<typeof PluginGeomQueryCu
778
778
  */
779
779
  export const PluginGeomQueryCurveGetNearestPointArgs = z.object({
780
780
  curve: CurveHandle,
781
- point: Vec3Input,
781
+ point: Vec3Handle,
782
782
  })
783
783
 
784
784
  export type PluginGeomQueryCurveGetNearestPointArgs = z.infer<typeof PluginGeomQueryCurveGetNearestPointArgs>
@@ -793,7 +793,7 @@ export type PluginGeomQueryCurveGetNearestPointArgs = z.infer<typeof PluginGeomQ
793
793
  */
794
794
  export const PluginGeomQueryCurveGetProjectionArgs = z.object({
795
795
  curve: CurveHandle,
796
- point: Vec3Input,
796
+ point: Vec3Handle,
797
797
  })
798
798
 
799
799
  export type PluginGeomQueryCurveGetProjectionArgs = z.infer<typeof PluginGeomQueryCurveGetProjectionArgs>
@@ -810,7 +810,7 @@ export type PluginGeomQueryCurveGetProjectionArgs = z.infer<typeof PluginGeomQue
810
810
  */
811
811
  export const PluginGeomQueryCurveGetPointAtDistanceArgs = z.object({
812
812
  curve: CurveHandle,
813
- referencePoint: Vec3Input,
813
+ referencePoint: Vec3Handle,
814
814
  distance: z.number(),
815
815
  forward: z.boolean().optional(),
816
816
  })
@@ -827,7 +827,7 @@ export type PluginGeomQueryCurveGetPointAtDistanceArgs = z.infer<typeof PluginGe
827
827
  */
828
828
  export const PluginGeomQueryCurveGetParameterAtPointArgs = z.object({
829
829
  curve: CurveHandle,
830
- point: Vec3Input,
830
+ point: Vec3Handle,
831
831
  })
832
832
 
833
833
  export type PluginGeomQueryCurveGetParameterAtPointArgs = z.infer<typeof PluginGeomQueryCurveGetParameterAtPointArgs>
@@ -842,7 +842,7 @@ export type PluginGeomQueryCurveGetParameterAtPointArgs = z.infer<typeof PluginG
842
842
  */
843
843
  export const PluginGeomQueryCurveGetCurvatureArgs = z.object({
844
844
  curve: CurveHandle,
845
- point: Vec3Input,
845
+ point: Vec3Handle,
846
846
  })
847
847
 
848
848
  export type PluginGeomQueryCurveGetCurvatureArgs = z.infer<typeof PluginGeomQueryCurveGetCurvatureArgs>
@@ -857,7 +857,7 @@ export type PluginGeomQueryCurveGetCurvatureArgs = z.infer<typeof PluginGeomQuer
857
857
  */
858
858
  export const PluginGeomQueryCurveGetDistanceToPointArgs = z.object({
859
859
  curve: CurveHandle,
860
- point: Vec3Input,
860
+ point: Vec3Handle,
861
861
  })
862
862
 
863
863
  export type PluginGeomQueryCurveGetDistanceToPointArgs = z.infer<typeof PluginGeomQueryCurveGetDistanceToPointArgs>
@@ -873,8 +873,8 @@ export type PluginGeomQueryCurveGetDistanceToPointArgs = z.infer<typeof PluginGe
873
873
  */
874
874
  export const PluginGeomQueryCurveGetDistanceAlongArgs = z.object({
875
875
  curve: CurveHandle,
876
- pointA: Vec3Input,
877
- pointB: Vec3Input,
876
+ pointA: Vec3Handle,
877
+ pointB: Vec3Handle,
878
878
  })
879
879
 
880
880
  export type PluginGeomQueryCurveGetDistanceAlongArgs = z.infer<typeof PluginGeomQueryCurveGetDistanceAlongArgs>
@@ -933,7 +933,7 @@ export type PluginGeomQueryCurveIsLinearArgs = z.infer<typeof PluginGeomQueryCur
933
933
  */
934
934
  export const PluginGeomQueryCurveIsOnCurveArgs = z.object({
935
935
  curve: CurveHandle,
936
- point: Vec3Input,
936
+ point: Vec3Handle,
937
937
  threshold: z.number().optional(),
938
938
  })
939
939
 
@@ -950,7 +950,7 @@ export type PluginGeomQueryCurveIsOnCurveArgs = z.infer<typeof PluginGeomQueryCu
950
950
  */
951
951
  export const PluginGeomQueryCurveHasPointArgs = z.object({
952
952
  curve: CurveHandle,
953
- point: Vec3Input,
953
+ point: Vec3Handle,
954
954
  includeEndPoints: z.boolean().optional(),
955
955
  })
956
956
 
@@ -3,7 +3,6 @@ import { PluginApiReturn } from "../../../../types"
3
3
  import {
4
4
  ProfileHandle,
5
5
  Vec3Handle,
6
- Vec3Input,
7
6
  CurveHandle,
8
7
  Vec3Components,
9
8
  BBoxComponents,
@@ -137,7 +136,7 @@ export abstract class PluginGeomQueryProfileApi {
137
136
  */
138
137
  public abstract getNearestPoint(
139
138
  profile: ProfileHandle,
140
- point: Vec3Input,
139
+ point: Vec3Handle,
141
140
  ): PluginApiReturn<Vec3Components>
142
141
 
143
142
  /**
@@ -158,7 +157,7 @@ export abstract class PluginGeomQueryProfileApi {
158
157
  */
159
158
  public abstract hasPoint(
160
159
  profile: ProfileHandle,
161
- point: Vec3Input,
160
+ point: Vec3Handle,
162
161
  ): PluginApiReturn<boolean>
163
162
 
164
163
  /**
@@ -176,7 +175,7 @@ export abstract class PluginGeomQueryProfileApi {
176
175
  */
177
176
  public abstract isOnBoundary(
178
177
  profile: ProfileHandle,
179
- point: Vec3Input,
178
+ point: Vec3Handle,
180
179
  ): PluginApiReturn<boolean>
181
180
 
182
181
  /**
@@ -358,7 +357,7 @@ export type PluginGeomQueryProfileGetNormalArgs = z.infer<typeof PluginGeomQuery
358
357
  */
359
358
  export const PluginGeomQueryProfileGetNearestPointArgs = z.object({
360
359
  profile: ProfileHandle,
361
- point: Vec3Input,
360
+ point: Vec3Handle,
362
361
  })
363
362
 
364
363
  export type PluginGeomQueryProfileGetNearestPointArgs = z.infer<typeof PluginGeomQueryProfileGetNearestPointArgs>
@@ -373,7 +372,7 @@ export type PluginGeomQueryProfileGetNearestPointArgs = z.infer<typeof PluginGeo
373
372
  */
374
373
  export const PluginGeomQueryProfileHasPointArgs = z.object({
375
374
  profile: ProfileHandle,
376
- point: Vec3Input,
375
+ point: Vec3Handle,
377
376
  })
378
377
 
379
378
  export type PluginGeomQueryProfileHasPointArgs = z.infer<typeof PluginGeomQueryProfileHasPointArgs>
@@ -388,7 +387,7 @@ export type PluginGeomQueryProfileHasPointArgs = z.infer<typeof PluginGeomQueryP
388
387
  */
389
388
  export const PluginGeomQueryProfileIsOnBoundaryArgs = z.object({
390
389
  profile: ProfileHandle,
391
- point: Vec3Input,
390
+ point: Vec3Handle,
392
391
  })
393
392
 
394
393
  export type PluginGeomQueryProfileIsOnBoundaryArgs = z.infer<typeof PluginGeomQueryProfileIsOnBoundaryArgs>