@things-factory/figure-ui 10.1.76 → 10.1.77

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 (125) hide show
  1. package/dist-client/tsconfig.tsbuildinfo +1 -1
  2. package/package.json +2 -2
  3. package/dist-client/graphql/v3-store.d.ts +0 -3
  4. package/dist-client/graphql/v3-store.js +0 -39
  5. package/dist-client/graphql/v3-store.js.map +0 -1
  6. package/dist-client/modeller/figure-v3-capability.d.ts +0 -22
  7. package/dist-client/modeller/figure-v3-capability.js +0 -141
  8. package/dist-client/modeller/figure-v3-capability.js.map +0 -1
  9. package/dist-client/modeller/figure-v3-clips.d.ts +0 -31
  10. package/dist-client/modeller/figure-v3-clips.js +0 -268
  11. package/dist-client/modeller/figure-v3-clips.js.map +0 -1
  12. package/dist-client/modeller/figure-v3-controls.d.ts +0 -36
  13. package/dist-client/modeller/figure-v3-controls.js +0 -226
  14. package/dist-client/modeller/figure-v3-controls.js.map +0 -1
  15. package/dist-client/modeller/figure-v3-first-save.d.ts +0 -20
  16. package/dist-client/modeller/figure-v3-first-save.js +0 -118
  17. package/dist-client/modeller/figure-v3-first-save.js.map +0 -1
  18. package/dist-client/modeller/figure-v3-links.d.ts +0 -77
  19. package/dist-client/modeller/figure-v3-links.js +0 -649
  20. package/dist-client/modeller/figure-v3-links.js.map +0 -1
  21. package/dist-client/modeller/figure-v3-material.d.ts +0 -39
  22. package/dist-client/modeller/figure-v3-material.js +0 -323
  23. package/dist-client/modeller/figure-v3-material.js.map +0 -1
  24. package/dist-client/modeller/figure-v3-parts.d.ts +0 -69
  25. package/dist-client/modeller/figure-v3-parts.js +0 -559
  26. package/dist-client/modeller/figure-v3-parts.js.map +0 -1
  27. package/dist-client/modeller/figure-v3-preview.d.ts +0 -34
  28. package/dist-client/modeller/figure-v3-preview.js +0 -346
  29. package/dist-client/modeller/figure-v3-preview.js.map +0 -1
  30. package/dist-client/modeller/figure-v3-properties.d.ts +0 -45
  31. package/dist-client/modeller/figure-v3-properties.js +0 -239
  32. package/dist-client/modeller/figure-v3-properties.js.map +0 -1
  33. package/dist-client/modeller/figure-v3-recipe-catalog.d.ts +0 -38
  34. package/dist-client/modeller/figure-v3-recipe-catalog.js +0 -399
  35. package/dist-client/modeller/figure-v3-recipe-catalog.js.map +0 -1
  36. package/dist-client/modeller/figure-v3-verdict.d.ts +0 -64
  37. package/dist-client/modeller/figure-v3-verdict.js +0 -787
  38. package/dist-client/modeller/figure-v3-verdict.js.map +0 -1
  39. package/dist-client/modeller/v3-ai-proposal.d.ts +0 -51
  40. package/dist-client/modeller/v3-ai-proposal.js +0 -64
  41. package/dist-client/modeller/v3-ai-proposal.js.map +0 -1
  42. package/dist-client/modeller/v3-align.d.ts +0 -30
  43. package/dist-client/modeller/v3-align.js +0 -75
  44. package/dist-client/modeller/v3-align.js.map +0 -1
  45. package/dist-client/modeller/v3-canvas.d.ts +0 -72
  46. package/dist-client/modeller/v3-canvas.js +0 -379
  47. package/dist-client/modeller/v3-canvas.js.map +0 -1
  48. package/dist-client/modeller/v3-clips.d.ts +0 -39
  49. package/dist-client/modeller/v3-clips.js +0 -58
  50. package/dist-client/modeller/v3-clips.js.map +0 -1
  51. package/dist-client/modeller/v3-controls.d.ts +0 -28
  52. package/dist-client/modeller/v3-controls.js +0 -28
  53. package/dist-client/modeller/v3-controls.js.map +0 -1
  54. package/dist-client/modeller/v3-editor.d.ts +0 -203
  55. package/dist-client/modeller/v3-editor.js +0 -1526
  56. package/dist-client/modeller/v3-editor.js.map +0 -1
  57. package/dist-client/modeller/v3-fields.d.ts +0 -45
  58. package/dist-client/modeller/v3-fields.js +0 -83
  59. package/dist-client/modeller/v3-fields.js.map +0 -1
  60. package/dist-client/modeller/v3-figure-facts.d.ts +0 -35
  61. package/dist-client/modeller/v3-figure-facts.js +0 -55
  62. package/dist-client/modeller/v3-figure-facts.js.map +0 -1
  63. package/dist-client/modeller/v3-first-save.d.ts +0 -17
  64. package/dist-client/modeller/v3-first-save.js +0 -26
  65. package/dist-client/modeller/v3-first-save.js.map +0 -1
  66. package/dist-client/modeller/v3-gizmo.d.ts +0 -72
  67. package/dist-client/modeller/v3-gizmo.js +0 -111
  68. package/dist-client/modeller/v3-gizmo.js.map +0 -1
  69. package/dist-client/modeller/v3-help.d.ts +0 -18
  70. package/dist-client/modeller/v3-help.js +0 -37
  71. package/dist-client/modeller/v3-help.js.map +0 -1
  72. package/dist-client/modeller/v3-joint-drag.d.ts +0 -19
  73. package/dist-client/modeller/v3-joint-drag.js +0 -97
  74. package/dist-client/modeller/v3-joint-drag.js.map +0 -1
  75. package/dist-client/modeller/v3-joint-fan.d.ts +0 -9
  76. package/dist-client/modeller/v3-joint-fan.js +0 -276
  77. package/dist-client/modeller/v3-joint-fan.js.map +0 -1
  78. package/dist-client/modeller/v3-keys.d.ts +0 -22
  79. package/dist-client/modeller/v3-keys.js +0 -26
  80. package/dist-client/modeller/v3-keys.js.map +0 -1
  81. package/dist-client/modeller/v3-links.d.ts +0 -267
  82. package/dist-client/modeller/v3-links.js +0 -480
  83. package/dist-client/modeller/v3-links.js.map +0 -1
  84. package/dist-client/modeller/v3-live.d.ts +0 -37
  85. package/dist-client/modeller/v3-live.js +0 -68
  86. package/dist-client/modeller/v3-live.js.map +0 -1
  87. package/dist-client/modeller/v3-maturity.d.ts +0 -120
  88. package/dist-client/modeller/v3-maturity.js +0 -313
  89. package/dist-client/modeller/v3-maturity.js.map +0 -1
  90. package/dist-client/modeller/v3-occupancy.d.ts +0 -18
  91. package/dist-client/modeller/v3-occupancy.js +0 -24
  92. package/dist-client/modeller/v3-occupancy.js.map +0 -1
  93. package/dist-client/modeller/v3-palette.d.ts +0 -7
  94. package/dist-client/modeller/v3-palette.js +0 -46
  95. package/dist-client/modeller/v3-palette.js.map +0 -1
  96. package/dist-client/modeller/v3-preview-model.d.ts +0 -47
  97. package/dist-client/modeller/v3-preview-model.js +0 -68
  98. package/dist-client/modeller/v3-preview-model.js.map +0 -1
  99. package/dist-client/modeller/v3-product-session.d.ts +0 -510
  100. package/dist-client/modeller/v3-product-session.js +0 -157
  101. package/dist-client/modeller/v3-product-session.js.map +0 -1
  102. package/dist-client/modeller/v3-recipe-source.d.ts +0 -8
  103. package/dist-client/modeller/v3-recipe-source.js +0 -14
  104. package/dist-client/modeller/v3-recipe-source.js.map +0 -1
  105. package/dist-client/modeller/v3-recipes.d.ts +0 -37
  106. package/dist-client/modeller/v3-recipes.js +0 -103
  107. package/dist-client/modeller/v3-recipes.js.map +0 -1
  108. package/dist-client/modeller/v3-refusals.d.ts +0 -68
  109. package/dist-client/modeller/v3-refusals.js +0 -142
  110. package/dist-client/modeller/v3-refusals.js.map +0 -1
  111. package/dist-client/modeller/v3-renderer.d.ts +0 -40
  112. package/dist-client/modeller/v3-renderer.js +0 -73
  113. package/dist-client/modeller/v3-renderer.js.map +0 -1
  114. package/dist-client/modeller/v3-stage-model.d.ts +0 -39
  115. package/dist-client/modeller/v3-stage-model.js +0 -147
  116. package/dist-client/modeller/v3-stage-model.js.map +0 -1
  117. package/dist-client/modeller/v3-thumbnail.d.ts +0 -3
  118. package/dist-client/modeller/v3-thumbnail.js +0 -75
  119. package/dist-client/modeller/v3-thumbnail.js.map +0 -1
  120. package/dist-client/pages/figure-v3-modeller-page.d.ts +0 -102
  121. package/dist-client/pages/figure-v3-modeller-page.js +0 -548
  122. package/dist-client/pages/figure-v3-modeller-page.js.map +0 -1
  123. package/dist-client/tsconfig.chk.tsbuildinfo +0 -1
  124. package/dist-client/tsconfig.fui.tsbuildinfo +0 -1
  125. package/dist-client/tsconfig.scratch-fm.tsbuildinfo +0 -1
@@ -1,267 +0,0 @@
1
- import type { V3Follow, V3SizeRange } from '@hatiolab/figure-model';
2
- import type { V3Asset, V3BindingPlace, V3Face, V3Joint } from '@hatiolab/figure-model';
3
- export type Axis = 'x' | 'y' | 'z';
4
- export declare const AXES: readonly Axis[];
5
- /** What one dimension of a part is worked out from (figure-model's `V3Follow`). */
6
- export type Follow = V3Follow;
7
- /**
8
- * `link-dimension` routes a part's dimension through `<part>.dimension.<axis>` and points its first argument at the
9
- * source, directly or through the nodes that scale it. Walking back through those nodes finds the source: the
10
- * instance size (`size.<axis>`), another part's dimension (`<part>.dimension.<axis>.value`) or a declared input.
11
- */
12
- /** What one measure of a part is worked out from, read back from the graph (figure-model's reader, one copy). */
13
- export declare function followOf(asset: V3Asset, part: string, axis: Axis): Follow;
14
- /** Whether the asset declares an instance size on an axis — only then can a dimension follow it. */
15
- export declare const hasInstanceSize: (asset: V3Asset, axis: Axis) => boolean;
16
- /** The part this one is fastened to, or `null`. The mounting plane counts as fastened (the model names no part). */
17
- export declare function fastenedTo(asset: V3Asset, part: string): string | null;
18
- /**
19
- * What holds a part: the part it is fastened to, the plane the figure is mounted on, or nothing. The joint record says
20
- * it; a part standing on the plane had read as fastened to nothing, so the form offered no way to move it and sent
21
- * no replace -- the fastening was refused as already made (the door's post, 2026-09-25).
22
- */
23
- export declare function heldBy(asset: V3Asset, part: string): {
24
- part: string;
25
- } | {
26
- plane: true;
27
- } | null;
28
- /** Whether a dimension of this part can follow something — box-shaped, whose three sizes are X, Y and Z. */
29
- export declare function canFollow(asset: V3Asset, part: string): boolean;
30
- /**
31
- * The axes whose size can follow something, by the shape's own measures: a box's X · Y · Z; a cylinder's radius (read
32
- * as X) and length (Y) -- its shape takes those two, so it has no Z of its own.
33
- */
34
- export declare function followableAxes(asset: V3Asset, part: string): Axis[];
35
- /** What a part's own measure on an axis is now (a box's side, a cylinder's radius or length), at the design as it stands. */
36
- export declare function dimensionNow(asset: V3Asset, part: string, axis: Axis): number | undefined;
37
- /**
38
- * The flat faces a part's shape declares, by name -- figure-model's shape definitions are the one place they are
39
- * written (a portal's opening sides as well as its outer faces). A sphere has none.
40
- */
41
- export declare function facesOf(asset: V3Asset, part: string): string[];
42
- /** The axis a face of a part faces along, from the same definitions. */
43
- export declare function faceAxisOf(asset: V3Asset, part: string, face: string): Axis | undefined;
44
- /** Whether `attach` can take this part: any part whose shape has a flat face. */
45
- export declare function canFasten(asset: V3Asset, part: string): boolean;
46
- /**
47
- * The axes a part can be made a row along (r3 §8, figure-model `make-repeat`): across the face it is fastened by, when
48
- * it is fastened fixed to another part and holds nothing. None for a part that is loose, moves, stands on the floor or
49
- * already repeats -- the command would refuse those, so they are not offered.
50
- */
51
- export declare function rowAxesOf(asset: V3Asset, part: string): Axis[];
52
- /** The row a part is made into, as its fastening's record keeps it. */
53
- export declare const rowOf: (asset: V3Asset, part: string) => {
54
- axis: import("@hatiolab/figure-model").V3JointAxis;
55
- pitch: import("@hatiolab/figure-model").V3Measure;
56
- count?: number;
57
- rise?: {
58
- axis: import("@hatiolab/figure-model").V3JointAxis;
59
- mm: number;
60
- };
61
- } | undefined;
62
- /** Where a part sits across the face it is fastened to, on one axis: centred, level with an edge, or a distance off centre. */
63
- /** `share`: the distance as a share of the figure's size on that axis, so it keeps its place when the figure is resized. */
64
- export type Alignment = 'centre' | 'min' | 'max' | 'mm' | 'share';
65
- /**
66
- * The axes across the face a part is fastened to — the two a fastening does not set by itself. Edges to line up with
67
- * are offered where both parts have their two outer faces on that axis; the plane the figure is mounted on has none,
68
- * so on it (X and Z) only centred or a distance is offered.
69
- */
70
- /**
71
- * The mounting plane of this figure, by its placement (ADR-0093): the floor or the ceiling is Y = 0 and a part stands
72
- * on it by its bottom or hangs from it by its top; a wall is Z = 0 and a part is fastened to it by its back.
73
- */
74
- export declare function mountingPlaneOf(asset: V3Asset): {
75
- normal: Axis;
76
- faces: V3Face[];
77
- };
78
- export declare function alignAxesOf(asset: V3Asset, part: string, target: {
79
- part: string;
80
- face: string;
81
- } | 'plane', twisted?: boolean): {
82
- axis: Axis;
83
- edges: boolean;
84
- }[];
85
- /** The controls a part's showing can follow: the figure's state inputs, with their range and label. */
86
- export declare function visibilityControlsOf(asset: V3Asset): Array<{
87
- id: string;
88
- unit: string;
89
- min: number;
90
- max: number;
91
- label: string;
92
- }>;
93
- /** When the part is drawn (figure-model `set-visibility`): always (null), or while a control is at least a value. */
94
- export declare function shownWhenOf(asset: V3Asset, part: string): {
95
- input: string;
96
- atLeast: number;
97
- } | null;
98
- /** Whether `part` hangs from `from`, through any number of fastenings. */
99
- export declare function hangsFrom(asset: V3Asset, part: string, from: string): boolean;
100
- /**
101
- * The fastening a part has, as the fastening form holds it -- so the form opens on what is there (the face, including
102
- * \`centre\`, the target and its face, the gap, the twist and where across the face) and a change is a change to that.
103
- * Opening it on the defaults showed a roller fastened by its centre as fastened by its bottom, and fastening again
104
- * from there broke its turning in place (walk 1, 2026-09-26). Null for a part fastened to nothing.
105
- */
106
- export declare function fasteningOf(asset: V3Asset, part: string): {
107
- face: string;
108
- toPlane: boolean;
109
- target: string;
110
- targetFace: string;
111
- facing: 'meet' | 'flush';
112
- gap: number;
113
- twist: number;
114
- align: Partial<Record<Axis, Alignment>>;
115
- alignMm: Partial<Record<Axis, number>>;
116
- } | null;
117
- /**
118
- * The alignment that keeps the part where it stands when it is fastened: on each axis across the face, its distance
119
- * from the target's centre (the plane's is the origin). Fastening used to centre it -- a door set 100 mm in front of
120
- * its frame slid into it (2026-09-26). Left centred where it already is, and where the target stands turned.
121
- */
122
- export declare function placeKeptOf(asset: V3Asset, part: string, target: {
123
- part: string;
124
- face: string;
125
- } | 'plane', twisted?: boolean): {
126
- align: Partial<Record<Axis, Alignment>>;
127
- alignMm: Partial<Record<Axis, number>>;
128
- };
129
- /** The `align` of an attach command from the form's choices: only the axes across that face, and centred ones left out. */
130
- export declare function alignOf(asset: V3Asset, part: string, target: {
131
- part: string;
132
- face: string;
133
- } | 'plane', how: Partial<Record<Axis, Alignment>>, mm: Partial<Record<Axis, number>>, twisted?: boolean): Partial<Record<Axis, "min" | "max" | {
134
- mm: number | {
135
- from: {
136
- of: "instance";
137
- axis: Axis;
138
- };
139
- times: number;
140
- };
141
- }>> | undefined;
142
- /**
143
- * The axes on which the part's position is worked out from other values rather than being its own number. `fix-position` makes one its own number where it is now.
144
- */
145
- export declare function positionsWorkedOut(asset: V3Asset, part: string): Axis[];
146
- /**
147
- * Whether the part's position on an axis is a share of the instance size (`scale-position`): `size.<axis> × share`.
148
- * Such a position is worked out too, but it already grows with the figure, so it is not offered again.
149
- */
150
- export declare function positionIsShare(asset: V3Asset, part: string, axis: Axis): boolean;
151
- /** How a part moves, if it does: slide or turn, along which axis, driven by which control. */
152
- export interface Motion {
153
- kind: 'slide' | 'turn' | 'continuous';
154
- axis: Axis | '?';
155
- control?: {
156
- id: string;
157
- unit?: string;
158
- min?: number;
159
- max?: number;
160
- };
161
- /** A joint that moves with another (URDF's mimic): the leader's value times `multiplier`, plus `offset`. */
162
- follows?: {
163
- joint: string;
164
- multiplier: number;
165
- offset?: number;
166
- };
167
- /** A slide whose distance is a part's length (plus a difference): the control is its share. */
168
- travel?: {
169
- part: string;
170
- axis: string;
171
- plus?: number;
172
- };
173
- }
174
- export declare function motionOf(asset: V3Asset, part: string): Motion | undefined;
175
- /** What the motion form holds: how the part moves, and either its own control or the joint it moves with. */
176
- export interface MotionForm {
177
- kind: 'slide' | 'turn' | 'continuous';
178
- axis: Axis;
179
- id: string;
180
- min: number;
181
- max: number;
182
- /** The joint this one moves with; empty for a joint with its own control. */
183
- follow: string;
184
- multiplier: number;
185
- offset: number;
186
- /**
187
- * A slide whose distance follows a part's length (figure-model `travel`): `<part>:<axis>`, empty for a distance in
188
- * millimetres. The control is then the share of that length, 0..1, and the stroke grows when the part does.
189
- */
190
- travel?: string;
191
- travelPlus?: number;
192
- }
193
- /**
194
- * The motion form filled from a joint as it is, so a motion can be changed where it is -- its range, the length it
195
- * travels by, what it follows -- rather than taken away and made again. Taking it away is refused while another joint
196
- * follows it, which left a leader's stroke fixed for good (the telescopic conveyor, 2026-09-25).
197
- */
198
- export declare function motionFormOf(joint: V3Joint): MotionForm;
199
- /**
200
- * The joints a part's joint can move with (URDF's mimic): a joint that moves the same way — a slide follows a slide, a
201
- * turn a turn — and has a control of its own, since a follower follows the joint that is driven.
202
- */
203
- export declare function leadersFor(asset: V3Asset, part: string, kind: MotionForm['kind']): V3Joint[];
204
- /**
205
- * The joint record the motion form writes for a part fastened by `joint`. A joint of its own gets its limits (none for
206
- * a turn without end, as in USD) and a control; a follower gets the leader, the multiplier and the offset, and no
207
- * control or limits of its own — its range is the leader's times the multiplier.
208
- */
209
- export declare function motionJoint(joint: V3Joint, m: MotionForm, part: string): V3Joint;
210
- /** The select's value for what a dimension follows now. */
211
- export declare function choiceOf(follow: Follow): string;
212
- /** The faces a place can sit on for this part: a box's six, a rounded box's top and bottom, none for a round body. */
213
- export declare function placeFacesOf(asset: V3Asset, part: string): V3Face[];
214
- /** The places things are held that sit on this part. */
215
- export declare function placesOn(asset: V3Asset, part: string): V3BindingPlace[];
216
- /** An id for a new place on this part, not yet taken: `<part>-<role>`, then `-2`, `-3`. */
217
- export declare function placeIdFor(asset: V3Asset, part: string, role: 'seat' | 'grip'): string;
218
- /**
219
- * Whether a board will hand this figure anything: a place is a slot only on a figure that declares it holds things
220
- * (`Capacity`, or `FlowNode`, which includes it). Without it the places are declared and nothing arrives.
221
- */
222
- export declare const holdsThings: (asset: V3Asset) => boolean;
223
- /** What `accepts` a person typed: names split on commas, trimmed, blanks and repeats dropped. */
224
- export declare const acceptsOf: (typed: string) => string[];
225
- /**
226
- * The sizes a board may give this figure: the range it declares now, and the range measured afresh -- the default
227
- * (1 mm to ten times the authored size) narrowed only where the figure cannot follow, by figure-model's own functions.
228
- * A range measured when a part filled what the others left (ROBOT_ARM: Y from 1,854 mm) stays narrow after the part is
229
- * made to grow with the figure; measuring again gives the figure its whole range back. Nothing when no size is declared.
230
- */
231
- export declare function instanceRangeOf(asset: V3Asset): {
232
- declared: V3SizeRange;
233
- measured: V3SizeRange;
234
- } | undefined;
235
- /**
236
- * The size range to declare for a figure that has none yet: its parts' extent now as the size it is authored at, and
237
- * as wide as its parts allow around it (the same measure 「다시 재기」 uses). Undefined when the figure already has a
238
- * size or has nothing to measure. Without a declared size a board cannot resize the figure, and no part is offered
239
- * to follow its size -- every figure made in the modeller was left there (user, 2026-09-25).
240
- */
241
- export declare function instanceRangeToDeclare(asset: V3Asset): {
242
- range: V3SizeRange;
243
- at: Record<Axis, number>;
244
- } | undefined;
245
- /** Whether measuring again would change the declared range (to a micrometre). */
246
- /**
247
- * The declared range with one end typed by the author: the sizes a figure may be placed at are a claim about the
248
- * product (a gantry spans metres, not 30 cm to 29 m), and measuring only ever widens them. Nothing when the typed
249
- * value is not a number; whether the figure holds there is the command's to say.
250
- */
251
- export declare function rangeWith(declared: V3SizeRange, axis: Axis, bound: 'min' | 'max', value: number): V3SizeRange | undefined;
252
- /**
253
- * For a figure that grows by one ratio: how many of its lengths would follow the ratio, and which it leaves with their
254
- * own number (not those that follow another length -- they grow with it). Nothing for a figure of another sizing.
255
- */
256
- export declare function proportionToFollow(asset: V3Asset): {
257
- count: number;
258
- kept: string[];
259
- } | undefined;
260
- /** A value of the figure as it stands, by its graph reference. */
261
- export declare function valueNow(asset: V3Asset, ref: string | undefined): number | undefined;
262
- export declare function rangeDiffers(a: V3SizeRange, b: V3SizeRange): boolean;
263
- /**
264
- * Whether the figure is a mechanism -- a part turns about a joint. Such a figure should grow by one ratio (chief
265
- * architect's ruling 2026-09-24); the modeller proposes it, the author declares it.
266
- */
267
- export declare function turnsAboutAJoint(asset: V3Asset): boolean;