@snaptrude/plugin-core 0.3.0 → 0.5.0
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/AGENTS.md +130 -48
- package/CHANGELOG.md +111 -0
- package/api-manifest.full.json +3999 -0
- package/api-manifest.json +3845 -0
- package/dist/api/core/buildings.d.ts +427 -0
- package/dist/api/core/buildings.d.ts.map +1 -0
- package/dist/api/core/comment/index.d.ts +230 -0
- package/dist/api/core/comment/index.d.ts.map +1 -0
- package/dist/api/core/geom/create/index.d.ts +247 -0
- package/dist/api/core/geom/create/index.d.ts.map +1 -0
- package/dist/api/core/geom/delete/index.d.ts +72 -0
- package/dist/api/core/geom/delete/index.d.ts.map +1 -0
- package/dist/api/core/geom/index.d.ts +24 -23
- package/dist/api/core/geom/index.d.ts.map +1 -1
- package/dist/api/core/geom/query/arc.d.ts +169 -0
- package/dist/api/core/geom/query/arc.d.ts.map +1 -0
- package/dist/api/core/geom/query/brep.d.ts +402 -0
- package/dist/api/core/geom/query/brep.d.ts.map +1 -0
- package/dist/api/core/geom/query/circle.d.ts +378 -0
- package/dist/api/core/geom/query/circle.d.ts.map +1 -0
- package/dist/api/core/geom/query/contour.d.ts +450 -0
- package/dist/api/core/geom/query/contour.d.ts.map +1 -0
- package/dist/api/core/geom/query/curve.d.ts +918 -0
- package/dist/api/core/geom/query/curve.d.ts.map +1 -0
- package/dist/api/core/geom/query/edge.d.ts +128 -0
- package/dist/api/core/geom/query/edge.d.ts.map +1 -0
- package/dist/api/core/geom/query/face.d.ts +363 -0
- package/dist/api/core/geom/query/face.d.ts.map +1 -0
- package/dist/api/core/geom/query/halfedge.d.ts +206 -0
- package/dist/api/core/geom/query/halfedge.d.ts.map +1 -0
- package/dist/api/core/geom/query/index.d.ts +61 -0
- package/dist/api/core/geom/query/index.d.ts.map +1 -0
- package/dist/api/core/geom/query/profile.d.ts +410 -0
- package/dist/api/core/geom/query/profile.d.ts.map +1 -0
- package/dist/api/core/geom/query/vertex.d.ts +187 -0
- package/dist/api/core/geom/query/vertex.d.ts.map +1 -0
- package/dist/api/core/geom/update/contour.d.ts +272 -0
- package/dist/api/core/geom/update/contour.d.ts.map +1 -0
- package/dist/api/core/geom/update/curve.d.ts +180 -0
- package/dist/api/core/geom/update/curve.d.ts.map +1 -0
- package/dist/api/core/geom/update/index.d.ts +27 -0
- package/dist/api/core/geom/update/index.d.ts.map +1 -0
- package/dist/api/core/geom/update/profile.d.ts +329 -0
- package/dist/api/core/geom/update/profile.d.ts.map +1 -0
- package/dist/api/core/groups.d.ts +485 -0
- package/dist/api/core/groups.d.ts.map +1 -0
- package/dist/api/core/history/index.d.ts +78 -0
- package/dist/api/core/history/index.d.ts.map +1 -0
- package/dist/api/core/index.d.ts +46 -1
- package/dist/api/core/index.d.ts.map +1 -1
- package/dist/api/core/layers.d.ts +402 -0
- package/dist/api/core/layers.d.ts.map +1 -0
- package/dist/api/core/math/quat.d.ts +111 -128
- package/dist/api/core/math/quat.d.ts.map +1 -1
- package/dist/api/core/math/vec3.d.ts +120 -102
- package/dist/api/core/math/vec3.d.ts.map +1 -1
- package/dist/api/core/project/index.d.ts +399 -0
- package/dist/api/core/project/index.d.ts.map +1 -0
- package/dist/api/core/tags.d.ts +755 -0
- package/dist/api/core/tags.d.ts.map +1 -0
- package/dist/api/core/units/index.d.ts +175 -0
- package/dist/api/core/units/index.d.ts.map +1 -0
- package/dist/api/core/zoom/index.d.ts +45 -0
- package/dist/api/core/zoom/index.d.ts.map +1 -0
- package/dist/api/design/boolean/index.d.ts +168 -0
- package/dist/api/design/boolean/index.d.ts.map +1 -0
- package/dist/api/design/create/index.d.ts +828 -0
- package/dist/api/design/create/index.d.ts.map +1 -0
- package/dist/api/design/delete/index.d.ts +63 -0
- package/dist/api/design/delete/index.d.ts.map +1 -0
- package/dist/api/design/doors/index.d.ts +268 -0
- package/dist/api/design/doors/index.d.ts.map +1 -0
- package/dist/api/design/edit/index.d.ts +49 -0
- package/dist/api/design/edit/index.d.ts.map +1 -0
- package/dist/api/design/erase/index.d.ts +160 -0
- package/dist/api/design/erase/index.d.ts.map +1 -0
- package/dist/api/design/furniture/index.d.ts +123 -0
- package/dist/api/design/furniture/index.d.ts.map +1 -0
- package/dist/api/design/index.d.ts +153 -0
- package/dist/api/design/index.d.ts.map +1 -0
- package/dist/api/design/lock.d.ts +41 -0
- package/dist/api/design/lock.d.ts.map +1 -0
- package/dist/api/design/materials/index.d.ts +297 -0
- package/dist/api/design/materials/index.d.ts.map +1 -0
- package/dist/api/design/query/geometry/index.d.ts +140 -0
- package/dist/api/design/query/geometry/index.d.ts.map +1 -0
- package/dist/api/design/query/index.d.ts +1011 -0
- package/dist/api/design/query/index.d.ts.map +1 -0
- package/dist/api/design/query/spaces.d.ts +221 -0
- package/dist/api/design/query/spaces.d.ts.map +1 -0
- package/dist/api/design/selection/index.d.ts +138 -0
- package/dist/api/design/selection/index.d.ts.map +1 -0
- package/dist/api/design/shared.d.ts +38 -0
- package/dist/api/design/shared.d.ts.map +1 -0
- package/dist/api/design/transform/index.d.ts +87 -0
- package/dist/api/design/transform/index.d.ts.map +1 -0
- package/dist/api/design/update/index.d.ts +178 -0
- package/dist/api/design/update/index.d.ts.map +1 -0
- package/dist/api/design/windows/index.d.ts +189 -0
- package/dist/api/design/windows/index.d.ts.map +1 -0
- package/dist/api/entity/buildableEnvelope.d.ts +261 -0
- package/dist/api/entity/buildableEnvelope.d.ts.map +1 -0
- package/dist/api/entity/department.d.ts +0 -98
- package/dist/api/entity/department.d.ts.map +1 -1
- package/dist/api/entity/index.d.ts +9 -9
- package/dist/api/entity/index.d.ts.map +1 -1
- package/dist/api/entity/referenceLine.d.ts +49 -106
- package/dist/api/entity/referenceLine.d.ts.map +1 -1
- package/dist/api/entity/space.d.ts +482 -249
- package/dist/api/entity/space.d.ts.map +1 -1
- package/dist/api/entity/story.d.ts +49 -39
- package/dist/api/entity/story.d.ts.map +1 -1
- package/dist/api/index.d.ts +17 -12
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/presentation/aiInspiration.d.ts +440 -0
- package/dist/api/presentation/aiInspiration.d.ts.map +1 -0
- package/dist/api/presentation/diagrams.d.ts +81 -0
- package/dist/api/presentation/diagrams.d.ts.map +1 -0
- package/dist/api/presentation/import.d.ts +113 -0
- package/dist/api/presentation/import.d.ts.map +1 -0
- package/dist/api/presentation/index.d.ts +46 -0
- package/dist/api/presentation/index.d.ts.map +1 -0
- package/dist/api/presentation/sheets.d.ts +176 -0
- package/dist/api/presentation/sheets.d.ts.map +1 -0
- package/dist/api/presentation/views.d.ts +296 -0
- package/dist/api/presentation/views.d.ts.map +1 -0
- package/dist/api/program/adjacency.d.ts +155 -0
- package/dist/api/program/adjacency.d.ts.map +1 -0
- package/dist/api/program/areas.d.ts +360 -0
- package/dist/api/program/areas.d.ts.map +1 -0
- package/dist/api/program/classification.d.ts +135 -0
- package/dist/api/program/classification.d.ts.map +1 -0
- package/dist/api/program/cores.d.ts +174 -0
- package/dist/api/program/cores.d.ts.map +1 -0
- package/dist/api/program/departments.d.ts +431 -0
- package/dist/api/program/departments.d.ts.map +1 -0
- package/dist/api/program/index.d.ts +69 -0
- package/dist/api/program/index.d.ts.map +1 -0
- package/dist/api/program/layout.d.ts +63 -0
- package/dist/api/program/layout.d.ts.map +1 -0
- package/dist/api/program/metrics.d.ts +108 -0
- package/dist/api/program/metrics.d.ts.map +1 -0
- package/dist/api/program/site.d.ts +367 -0
- package/dist/api/program/site.d.ts.map +1 -0
- package/dist/api/program/spreadsheet.d.ts +2041 -0
- package/dist/api/program/spreadsheet.d.ts.map +1 -0
- package/dist/handles.d.ts +138 -0
- package/dist/handles.d.ts.map +1 -0
- package/dist/host-utils.d.ts +7 -5
- package/dist/host-utils.d.ts.map +1 -1
- package/dist/index.cjs +4001 -904
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3392 -870
- package/dist/index.js.map +1 -1
- package/package.json +6 -2
- package/scripts/generate-manifest.mjs +193 -0
- package/scripts/generate-manifest.test.mjs +193 -0
- package/src/api/core/buildings.ts +485 -0
- package/src/api/core/comment/index.ts +258 -0
- package/src/api/core/geom/create/index.ts +293 -0
- package/src/api/core/geom/delete/index.ts +78 -0
- package/src/api/core/geom/index.ts +24 -23
- package/src/api/core/geom/query/arc.ts +169 -0
- package/src/api/core/geom/query/brep.ts +444 -0
- package/src/api/core/geom/query/circle.ts +404 -0
- package/src/api/core/geom/query/contour.ts +540 -0
- package/src/api/core/geom/query/curve.ts +1078 -0
- package/src/api/core/geom/query/edge.ts +130 -0
- package/src/api/core/geom/query/face.ts +403 -0
- package/src/api/core/geom/query/halfedge.ts +210 -0
- package/src/api/core/geom/query/index.ts +63 -0
- package/src/api/core/geom/query/profile.ts +473 -0
- package/src/api/core/geom/query/vertex.ts +205 -0
- package/src/api/core/geom/update/contour.ts +315 -0
- package/src/api/core/geom/update/curve.ts +209 -0
- package/src/api/core/geom/update/index.ts +29 -0
- package/src/api/core/geom/update/profile.ts +377 -0
- package/src/api/core/groups.ts +521 -0
- package/src/api/core/history/index.ts +84 -0
- package/src/api/core/index.ts +46 -1
- package/src/api/core/layers.ts +333 -0
- package/src/api/core/math/quat.ts +112 -235
- package/src/api/core/math/vec3.ts +124 -159
- package/src/api/core/project/index.ts +418 -0
- package/src/api/core/tags.ts +808 -0
- package/src/api/core/units/index.ts +164 -0
- package/src/api/core/zoom/index.ts +47 -0
- package/src/api/design/boolean/index.ts +179 -0
- package/src/api/design/create/index.ts +886 -0
- package/src/api/design/delete/index.ts +67 -0
- package/src/api/design/doors/index.ts +285 -0
- package/src/api/design/edit/index.ts +54 -0
- package/src/api/design/erase/index.ts +151 -0
- package/src/api/design/furniture/index.ts +130 -0
- package/src/api/design/index.ts +162 -0
- package/src/api/design/lock.ts +42 -0
- package/src/api/design/materials/index.ts +301 -0
- package/src/api/design/query/geometry/index.ts +166 -0
- package/src/api/design/query/index.ts +937 -0
- package/src/api/design/query/spaces.ts +132 -0
- package/src/api/design/selection/index.ts +144 -0
- package/src/api/design/shared.ts +40 -0
- package/src/api/design/transform/index.ts +93 -0
- package/src/api/design/update/index.ts +117 -0
- package/src/api/design/windows/index.ts +207 -0
- package/src/api/entity/buildableEnvelope.ts +318 -0
- package/src/api/entity/department.ts +0 -113
- package/src/api/entity/index.ts +9 -9
- package/src/api/entity/referenceLine.ts +50 -38
- package/src/api/entity/space.ts +285 -226
- package/src/api/entity/story.ts +53 -42
- package/src/api/index.ts +17 -12
- package/src/api/presentation/aiInspiration.ts +362 -0
- package/src/api/presentation/diagrams.ts +84 -0
- package/src/api/presentation/import.ts +112 -0
- package/src/api/presentation/index.ts +48 -0
- package/src/api/presentation/sheets.ts +198 -0
- package/src/api/presentation/views.ts +303 -0
- package/src/api/program/adjacency.ts +164 -0
- package/src/api/program/areas.ts +335 -0
- package/src/api/program/classification.ts +138 -0
- package/src/api/program/cores.ts +171 -0
- package/src/api/program/departments.ts +465 -0
- package/src/api/program/index.ts +71 -0
- package/src/api/program/layout.ts +68 -0
- package/src/api/program/metrics.ts +120 -0
- package/src/api/program/site.ts +326 -0
- package/src/api/program/spreadsheet.ts +2075 -0
- package/src/handles.ts +148 -0
- package/src/host-utils.ts +10 -6
- package/src/index.ts +1 -0
- package/dist/api/core/geom/arc.d.ts +0 -81
- package/dist/api/core/geom/arc.d.ts.map +0 -1
- package/dist/api/core/geom/curve.d.ts +0 -70
- package/dist/api/core/geom/curve.d.ts.map +0 -1
- package/dist/api/core/geom/line.d.ts +0 -56
- package/dist/api/core/geom/line.d.ts.map +0 -1
- package/dist/api/core/geom/profile.d.ts +0 -121
- package/dist/api/core/geom/profile.d.ts.map +0 -1
- package/dist/api/tools/copy.d.ts +0 -59
- package/dist/api/tools/copy.d.ts.map +0 -1
- package/dist/api/tools/index.d.ts +0 -33
- package/dist/api/tools/index.d.ts.map +0 -1
- package/dist/api/tools/material.d.ts +0 -51
- package/dist/api/tools/material.d.ts.map +0 -1
- package/dist/api/tools/offset.d.ts +0 -43
- package/dist/api/tools/offset.d.ts.map +0 -1
- package/dist/api/tools/selection.d.ts +0 -48
- package/dist/api/tools/selection.d.ts.map +0 -1
- package/dist/api/tools/transform.d.ts +0 -114
- package/dist/api/tools/transform.d.ts.map +0 -1
- package/dist/api/units/index.d.ts +0 -163
- package/dist/api/units/index.d.ts.map +0 -1
- package/src/api/core/geom/arc.ts +0 -70
- package/src/api/core/geom/curve.ts +0 -41
- package/src/api/core/geom/line.ts +0 -53
- package/src/api/core/geom/profile.ts +0 -94
- package/src/api/tools/copy.ts +0 -55
- package/src/api/tools/index.ts +0 -39
- package/src/api/tools/material.ts +0 -49
- package/src/api/tools/offset.ts +0 -43
- package/src/api/tools/selection.ts +0 -51
- package/src/api/tools/transform.ts +0 -117
- package/src/api/units/index.ts +0 -163
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as z from "zod"
|
|
2
2
|
import { PluginApiReturn } from "../../types"
|
|
3
|
-
import {
|
|
4
|
-
import { PCurve } from "../core/geom/curve"
|
|
3
|
+
import { ProfileHandle, CurveHandle } from "../../handles"
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Reference line management — create, query, and delete reference lines.
|
|
@@ -21,61 +20,68 @@ export abstract class PluginReferenceLineApi {
|
|
|
21
20
|
/**
|
|
22
21
|
* Create multiple reference lines from a profile.
|
|
23
22
|
*
|
|
24
|
-
* Each
|
|
23
|
+
* Each curve in the given {@linkcode ProfileHandle} becomes
|
|
25
24
|
* a separate reference line. Uses `ReferenceLineConstructor.createFromProfile`
|
|
26
25
|
* internally.
|
|
27
26
|
*
|
|
28
|
-
* @param
|
|
29
|
-
*
|
|
30
|
-
* {@linkcode PProfile} whose curves define the reference lines to create
|
|
27
|
+
* @param profile - A {@linkcode ProfileHandle} whose curves define the
|
|
28
|
+
* reference lines to create
|
|
31
29
|
* @returns A {@linkcode PluginReferenceLineCreateMultiResult} with the
|
|
32
30
|
* `referenceLineIds` of the created reference lines
|
|
33
31
|
* @throws If reference line creation fails
|
|
34
32
|
*
|
|
33
|
+
* @examplePrompt Draw grid lines across the site
|
|
34
|
+
* @examplePrompt Create reference lines from these curves
|
|
35
|
+
* @examplePrompt Add alignment guides along the building edge
|
|
36
|
+
* @examplePrompt Set up a structural grid using guide lines
|
|
37
|
+
* @examplePrompt Turn this profile into reference lines
|
|
38
|
+
*
|
|
35
39
|
* # Example
|
|
36
40
|
* ```ts
|
|
37
41
|
* const { vec3 } = snaptrude.core.math
|
|
38
42
|
*
|
|
39
|
-
* const
|
|
40
|
-
* const
|
|
41
|
-
* const
|
|
43
|
+
* const start = await vec3.new(0, 0, 0)
|
|
44
|
+
* const mid = await vec3.new(10, 0, 0)
|
|
45
|
+
* const end = await vec3.new(10, 0, 10)
|
|
46
|
+
* const l1 = await snaptrude.core.geom.create.line(start, mid)
|
|
47
|
+
* const l2 = await snaptrude.core.geom.create.line(mid, end)
|
|
48
|
+
* const profile = await snaptrude.core.geom.create.profileFromCurves([l1, l2])
|
|
42
49
|
*
|
|
43
|
-
* const { referenceLineIds } = await snaptrude.entity.referenceLine.createMulti(
|
|
44
|
-
* profile,
|
|
45
|
-
* })
|
|
50
|
+
* const { referenceLineIds } = await snaptrude.entity.referenceLine.createMulti(profile)
|
|
46
51
|
* ```
|
|
47
52
|
*/
|
|
48
53
|
public abstract createMulti(
|
|
49
|
-
|
|
54
|
+
profile: ProfileHandle
|
|
50
55
|
): PluginApiReturn<PluginReferenceLineCreateMultiResult>
|
|
51
56
|
|
|
52
57
|
/**
|
|
53
58
|
* Get properties of a reference line by its ID.
|
|
54
59
|
*
|
|
55
|
-
* Only the properties listed in
|
|
56
|
-
*
|
|
57
|
-
* in the result.
|
|
60
|
+
* Only the properties listed in `properties` are returned — unlisted
|
|
61
|
+
* properties will be `undefined` in the result.
|
|
58
62
|
*
|
|
59
|
-
* @param
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
* - {@linkcode PluginReferenceLineGetArgs.properties args.properties} — Array of
|
|
63
|
-
* property names to retrieve. See {@linkcode PluginReferenceLineGetProperty}.
|
|
63
|
+
* @param referenceLineId - The unique reference line ID
|
|
64
|
+
* @param properties - Array of property names to retrieve. See
|
|
65
|
+
* {@linkcode PluginReferenceLineGetProperty}.
|
|
64
66
|
* @returns A partial {@linkcode PluginReferenceLineGetResult} containing only the
|
|
65
67
|
* requested properties
|
|
66
68
|
* @throws If the reference line does not exist
|
|
67
69
|
*
|
|
70
|
+
* @examplePrompt Get the curve geometry of this reference line
|
|
71
|
+
* @examplePrompt Where does this grid line run?
|
|
72
|
+
* @examplePrompt Read the geometry of a guide line by its id
|
|
73
|
+
* @examplePrompt Look up the curve of the selected reference line
|
|
74
|
+
*
|
|
68
75
|
* # Example
|
|
69
76
|
* ```ts
|
|
70
|
-
* const result = await snaptrude.entity.referenceLine.get(
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
* })
|
|
74
|
-
* console.log(result.curve) // PCurve
|
|
77
|
+
* const result = await snaptrude.entity.referenceLine.get("some-ref-line-id", ["curve"])
|
|
78
|
+
* // result.curve is an opaque CurveHandle; a dedicated curve read API for its
|
|
79
|
+
* // coordinates is exposed separately via `snaptrude.core.geom.curve`.
|
|
75
80
|
* ```
|
|
76
81
|
*/
|
|
77
82
|
public abstract get(
|
|
78
|
-
|
|
83
|
+
referenceLineId: string,
|
|
84
|
+
properties: z.infer<typeof PluginReferenceLineGetProperty>[]
|
|
79
85
|
): PluginApiReturn<PluginReferenceLineGetResult>
|
|
80
86
|
|
|
81
87
|
/**
|
|
@@ -88,6 +94,11 @@ export abstract class PluginReferenceLineApi {
|
|
|
88
94
|
* @returns A {@linkcode PluginReferenceLineGetAllResult} with a
|
|
89
95
|
* `referenceLineIds` array
|
|
90
96
|
*
|
|
97
|
+
* @examplePrompt How many grid lines are in the project?
|
|
98
|
+
* @examplePrompt List all the reference lines in my model
|
|
99
|
+
* @examplePrompt Show every guide line in the file
|
|
100
|
+
* @examplePrompt Do I have any reference lines in this project?
|
|
101
|
+
*
|
|
91
102
|
* # Example
|
|
92
103
|
* ```ts
|
|
93
104
|
* const { referenceLineIds } = await snaptrude.entity.referenceLine.getAll()
|
|
@@ -102,20 +113,21 @@ export abstract class PluginReferenceLineApi {
|
|
|
102
113
|
* Permanently removes the reference line and its associated mesh from
|
|
103
114
|
* the scene. This operation is undoable via Snaptrude's command system.
|
|
104
115
|
*
|
|
105
|
-
* @param
|
|
106
|
-
* - {@linkcode PluginReferenceLineDeleteArgs.referenceLineId args.referenceLineId} —
|
|
107
|
-
* The unique reference line ID to delete
|
|
116
|
+
* @param referenceLineId - The unique reference line ID to delete
|
|
108
117
|
* @throws If the reference line does not exist
|
|
109
118
|
*
|
|
119
|
+
* @examplePrompt Delete this reference line
|
|
120
|
+
* @examplePrompt Remove the grid line I just drew
|
|
121
|
+
* @examplePrompt Get rid of the alignment guide on the left
|
|
122
|
+
* @examplePrompt Erase a reference line by its id
|
|
123
|
+
*
|
|
110
124
|
* # Example
|
|
111
125
|
* ```ts
|
|
112
|
-
* await snaptrude.entity.referenceLine.delete(
|
|
113
|
-
* referenceLineId: "some-ref-line-id",
|
|
114
|
-
* })
|
|
126
|
+
* await snaptrude.entity.referenceLine.delete("some-ref-line-id")
|
|
115
127
|
* ```
|
|
116
128
|
*/
|
|
117
129
|
public abstract delete(
|
|
118
|
-
|
|
130
|
+
referenceLineId: string
|
|
119
131
|
): PluginApiReturn<PluginReferenceLineDeleteResult>
|
|
120
132
|
}
|
|
121
133
|
|
|
@@ -124,10 +136,10 @@ export abstract class PluginReferenceLineApi {
|
|
|
124
136
|
*
|
|
125
137
|
* | Property | Type | Description |
|
|
126
138
|
* |---|---|---|
|
|
127
|
-
* | `profile` | {@linkcode
|
|
139
|
+
* | `profile` | {@linkcode ProfileHandle} | Profile handle whose curves define reference lines |
|
|
128
140
|
*/
|
|
129
141
|
export const PluginReferenceLineCreateMultiArgs = z.object({
|
|
130
|
-
profile:
|
|
142
|
+
profile: ProfileHandle,
|
|
131
143
|
})
|
|
132
144
|
|
|
133
145
|
export type PluginReferenceLineCreateMultiArgs = z.infer<typeof PluginReferenceLineCreateMultiArgs>
|
|
@@ -150,7 +162,7 @@ export type PluginReferenceLineCreateMultiResult = z.infer<typeof PluginReferenc
|
|
|
150
162
|
*
|
|
151
163
|
* | Value | Return Type | Description |
|
|
152
164
|
* |---|---|---|
|
|
153
|
-
* | `"curve"` | {@linkcode
|
|
165
|
+
* | `"curve"` | {@linkcode CurveHandle} | The curve geometry of the reference line, as an opaque handle |
|
|
154
166
|
*/
|
|
155
167
|
export const PluginReferenceLineGetProperty = z.enum([
|
|
156
168
|
"curve",
|
|
@@ -179,7 +191,7 @@ export type PluginReferenceLineGetArgs = z.infer<typeof PluginReferenceLineGetAr
|
|
|
179
191
|
*/
|
|
180
192
|
export const PluginReferenceLineGetResult = z
|
|
181
193
|
.object({
|
|
182
|
-
curve:
|
|
194
|
+
curve: CurveHandle,
|
|
183
195
|
})
|
|
184
196
|
.partial()
|
|
185
197
|
|