@hatiolab/figure-model 0.1.21 → 0.1.23

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/types.d.ts CHANGED
@@ -179,21 +179,20 @@ export type ChannelPath = (typeof CHANNEL_PATHS)[number];
179
179
  /** 키프레임 사이를 어떻게 잇나. glTF 의 `CUBICSPLINE` 은 없다 — 접선을 손으로 적을 형식이 아니다. */
180
180
  export declare const INTERPOLATIONS: readonly ["linear", "step"];
181
181
  export type Interpolation = (typeof INTERPOLATIONS)[number];
182
+ export declare const AXES: readonly ["x", "y", "z"];
183
+ export type Axis = (typeof AXES)[number];
182
184
  /**
183
- * **옛 자리다. 저작하지 않는다.**
185
+ * How a joint moves its child part relative to the parent (ADR-0066).
184
186
  *
185
- * `drive: 'hold'` 가 「값이 자세를 만든다」를 말하던 칸이었다. 그 판단은 맞았는데 자리가
186
- * 틀려서, 애니메이션 안에 숨은 채로 아무도 못 찾았다. 지금은 `FigureParameter` 가 제 칸으로
187
- * 있고 `animations` 에는 시각이 흐르는 것만 남는다 — 그러니 여기서 말할 것이 없다
188
- * (ADR-0051, `operato-twin/design/04-decisions.md`).
187
+ * revolute turns about `axis` within `limits`, in degrees
188
+ * prismatic slides along `axis` within `limits`, in millimetres
189
+ * continuous turns about `axis` without limits, in degrees
189
190
  *
190
- * 이름이 남아 있는 것은 **이미 저장된 것을 옮기기 위해서**다. `compile()` 이 옛 원본의
191
- * `drive: 'hold'` 를 읽어 `parameters` 로 옮긴다. 옮기는 쪽이 사라지면 이 이름도 사라진다.
191
+ * These are URDF's three moving joint types. A fixed attachment is not a joint: a part names its parent
192
+ * with `FigurePart.parent` and moves with it.
192
193
  */
193
- export declare const CLIP_DRIVES: readonly ["loop", "hold"];
194
- export type ClipDrive = (typeof CLIP_DRIVES)[number];
195
- export declare const AXES: readonly ["x", "y", "z"];
196
- export type Axis = (typeof AXES)[number];
194
+ export declare const JOINT_TYPES: readonly ["revolute", "prismatic", "continuous"];
195
+ export type JointType = (typeof JOINT_TYPES)[number];
197
196
  /** 텍스트를 언제 보이나. 표현 수단(sprite·overlay)은 런타임이 고른다. */
198
197
  export declare const LABEL_WHENS: readonly ["always", "zoomed", "selected", "abnormal"];
199
198
  export type LabelWhen = (typeof LABEL_WHENS)[number];
@@ -233,8 +232,12 @@ export interface Point2 {
233
232
  * ## 자리는 부품의 중심이다
234
233
  *
235
234
  * 여느 모델러와 같이 **원점은 부품의 중심**이고 `position` 은 그 원점의 자리다.
236
- * 기준은 `base` 상자의 중심(0, 0, 0)이므로 `position.y` 가 0 이면 부품의 허리가
237
- * 바닥 높이에 온다.
235
+ *
236
+ * The frame it is measured in has its origin at the bottom centre of the `base` box: `x` and `z` from
237
+ * the box centre, `y` up from the bottom face (source edition 2, ADR-0065). A part standing on the
238
+ * floor of the box has `position.y` equal to half its height, and changing `base.y` leaves every part's
239
+ * numbers where they were. Edition 1 measured `y` from the box centre as well; the compiled blueprint
240
+ * still does, and `origin.ts` is the one place a source is turned into that frame.
238
241
  *
239
242
  * 전에는 최소 모서리를 자리로 뒀다. 격자 스냅 때문이라고 적혀 있었는데, 모델러들은
240
243
  * 모두 원점을 격자에 붙이고 크기는 따로 스냅한다. 우리만 다르게 둘 이유가 없다.
@@ -395,13 +398,48 @@ export interface Keyframe {
395
398
  */
396
399
  value: Vec3;
397
400
  }
401
+ /**
402
+ * A key on a channel that drives a joint: the joint's coordinate at that position.
403
+ *
404
+ * The value is one number because the joint already says the axis and the centre. A revolute or
405
+ * continuous joint reads degrees, a prismatic joint millimetres (ADR-0066 decision 2).
406
+ */
407
+ export interface JointKeyframe {
408
+ at: number;
409
+ value: number;
410
+ }
411
+ /**
412
+ * A channel that drives a joint. `target` is a joint name.
413
+ *
414
+ * It carries no `path` and no `pivot`: the joint's `type`, `axis` and `origin` already say what moves
415
+ * and about which point. Writing a rotation vector here would state the axis a second time, and the two
416
+ * could disagree. The node transform, and a quaternion when exporting to glTF, come from the joint.
417
+ */
418
+ export interface JointChannel {
419
+ target: string;
420
+ path?: undefined;
421
+ pivot?: undefined;
422
+ /** Defaults to `linear`. */
423
+ interpolation?: Interpolation;
424
+ /** At least two. */
425
+ keys: JointKeyframe[];
426
+ }
427
+ /**
428
+ * What a clip or a parameter moves: a part property (`PartChannel`) or a joint (`JointChannel`).
429
+ *
430
+ * The two are told apart by what `target` names. Part and joint names share one name space, so a name
431
+ * never means both.
432
+ */
433
+ export type AnimationChannel = PartChannel | JointChannel;
398
434
  /**
399
435
  * 한 부품의 한 속성을 시간에 따라 움직인다. **glTF 의 channel + sampler 를 합친 것.**
400
436
  *
401
437
  * glTF 는 채널과 샘플러를 나누어 여러 채널이 한 샘플러를 나눠 쓸 수 있게 한다. 그건
402
438
  * 정점 데이터를 아끼려는 장치고, 손으로 적는 형식에서는 한 겹 더 들어갈 뿐이라 합쳤다.
439
+ *
440
+ * When the part is a descendant of a joint's child, the channel applies in that joint's frame.
403
441
  */
404
- export interface AnimationChannel {
442
+ export interface PartChannel {
405
443
  /** 어느 부품인가. `FigurePart.name`. **노드 인덱스가 아니다** — 이 형식은 이름으로 가리킨다. */
406
444
  target: string;
407
445
  path: ChannelPath;
@@ -443,9 +481,9 @@ export interface AnimationClip {
443
481
  *
444
482
  * ## 두 층으로 되어 있다 — 아래는 표준, 위는 우리 것
445
483
  *
446
- * `clip` 은 **glTF 애니메이션과 같은 모양**이다. 채널·키·TRS 경로 그대로이고 길이도 같은
447
- * 규칙으로 마지막 키의 시각이다. 내보내면 평범한 glTF 애니메이션이 나가고, 받아들일 때
448
- * 변환이 없다.
484
+ * `clip` has the shape of a glTF animation: channels, keys and TRS paths. The one difference is that
485
+ * a key's `at` is a position on the 0..1 value span rather than a time, and the two convert without
486
+ * loss. See `ParameterClip`.
449
487
  *
450
488
  * 그 위에 얹는 `range` 가 우리 것이다 — 「이 곡선은 재생되는 것이 아니라 값이 몬다」와
451
489
  * 「그 값은 mm 로 몇부터 몇까지다」. glTF 에 그것을 적을 자리가 없으므로, 못 받는 쪽은
@@ -458,15 +496,21 @@ export interface AnimationClip {
458
496
  * 맵한다. 「길이값을 변수로 노출한다」는 그 API 에서 성립하고, 형식의 곡선은 표준 모양으로
459
497
  * 남는다.
460
498
  *
461
- * ## 길이는 전이 시간이다
499
+ * ## The transition time is `clip.duration`
462
500
  *
463
- * `clip` 의 길이(마지막 키의 시각)가 **0 에서 1 까지 전 구간을 움직이는 데 걸리는 시간**이다.
464
- * 값이 v₁ 에서 v₂ 로 바뀌면 `|v₂ − v₁| × 길이` 동안 직선으로 간다 — 그것이 곧 기계의
465
- * 속도다. 호이스트가 초당 몇 mm 내려가는가는 그 도형의 사실이다.
501
+ * `clip.duration` is the number of seconds a full move from 0 to 1 takes. When the value changes from
502
+ * v₁ to v₂ the pose moves in a straight line over `|v₂ − v₁| × duration`, which is the machine's
503
+ * speed. How fast a hoist lowers is a fact about the figure; when one installation differs, the
504
+ * instance overrides it.
466
505
  *
467
506
  * **ease 는 없다.** 기계는 연출하지 않는다.
468
507
  *
469
- * 마지막 키가 `0` 이면 즉시다. 값을 주면 그 자세로 바로 간다.
508
+ * With no `duration`, or `0`, the move is instant: a new value goes straight to its pose.
509
+ *
510
+ * For a while the last key's time served as both the end of the value span and the transition time.
511
+ * A figure could then not declare several poses together with an instant move, since instant meant
512
+ * every key at 0, and legacy keys that happened to sit at 0 and 1 turned into a one-second move
513
+ * nobody chose. That is why the two facts have separate fields.
470
514
  */
471
515
  export interface FigureParameter {
472
516
  /** **저장되는 식별자다.** 인스턴스가 이 이름으로 값을 준다. */
@@ -497,10 +541,24 @@ export interface ParameterRange {
497
541
  * 이름은 파라미터가 갖는다. 클립에 또 두면 둘이 갈릴 수 있고, 갈리면 인스턴스가 어느 이름으로
498
542
  * 값을 주는지 알 수 없다.
499
543
  *
500
- * 키의 `at` 은 **초**다(glTF 와 같다). 값 0~1 이 `[0, 마지막 키의 시각]` 으로 맵되어
501
- * 그 시각의 자세가 된다.
544
+ * A key's `at` is a position on the value span, from `0` to `1`: `0` is the pose at `range.min` and
545
+ * `1` the pose at `range.max`. Keys need not cover the whole span; before the first key and after the
546
+ * last one the pose holds at the end key, the same clamping glTF applies outside a clip.
547
+ *
548
+ * Time lives in `duration`. Keys sit on the value axis and `duration` on the time axis, so the two
549
+ * cannot disagree.
550
+ *
551
+ * ## Converting to and from glTF loses nothing
552
+ *
553
+ * - Export: glTF key time = `at × (duration || 1)`. The curve goes out unchanged and its length is the
554
+ * transition time.
555
+ * - Import: divide every key time by the latest one to get `at`, and keep that latest time as `duration`.
556
+ *
557
+ * So `at` not being seconds does not break compatibility; the seconds are gathered into `duration`.
502
558
  */
503
559
  export interface ParameterClip {
560
+ /** Seconds for a full move from 0 to 1. Missing or `0` means instant. */
561
+ duration?: number;
504
562
  channels: AnimationChannel[];
505
563
  }
506
564
  /** 텍스트 표현 자리. 무엇을·언제만 정하고 수단은 런타임이 고른다. */
@@ -615,6 +673,47 @@ export interface FigurePart {
615
673
  * 점유자는 씬에서 `{ slotId, index }` 로 가리킨다 — 자리 하나에 칸이 여럿이다.
616
674
  */
617
675
  capability?: PartCapability;
676
+ /**
677
+ * The part this one is attached to (ADR-0066 decision 1).
678
+ *
679
+ * This is the only place a parent is written. A part without one hangs from the figure frame. A part
680
+ * that is a joint's `child` moves relative to this parent as the joint says; any other part moves
681
+ * rigidly with it. The parent chain must end at the figure frame: a cycle is an error.
682
+ *
683
+ * `transform` stays the rest pose in figure coordinates. The hierarchy is built by compile, so
684
+ * sizing rules and existing sources read the same numbers as before.
685
+ */
686
+ parent?: string;
687
+ }
688
+ /**
689
+ * A joint: how a part moves relative to its parent (ADR-0066).
690
+ *
691
+ * The joint has no `parent` field. Its parent is the `child` part's `FigurePart.parent`, so the parent is
692
+ * written in one place only. A part is the child of at most one joint.
693
+ *
694
+ * The rest pose, the pose every part's `transform` describes, is joint value 0. That is URDF's
695
+ * convention, and it is why `limits` must contain 0: the pose the figure was drawn in has to be one the
696
+ * machine can take.
697
+ *
698
+ * Values come through `parameters` (or a loop clip) with a `JointChannel` whose `target` is this joint's
699
+ * name. There is no second way to set a joint.
700
+ */
701
+ export interface FigureJoint {
702
+ /** Stored identifier. Channels target it. Shares the name space with part names. */
703
+ name: string;
704
+ /** The part this joint moves. */
705
+ child: string;
706
+ type: JointType;
707
+ /** The point the joint turns about or slides from, in figure coordinates (edition 2: y from the base bottom). */
708
+ origin: Vec3;
709
+ /** Direction of turning (right-hand rule) or sliding. Need not be unit length; must not be zero. */
710
+ axis: Vec3;
711
+ /** Degrees for revolute, millimetres for prismatic. Must contain 0. Not allowed on continuous. */
712
+ limits?: JointLimits;
713
+ }
714
+ export interface JointLimits {
715
+ min: number;
716
+ max: number;
618
717
  }
619
718
  /**
620
719
  * 부품이 맡는 역할.
@@ -651,15 +750,22 @@ export interface PartCapability {
651
750
  */
652
751
  direction?: Vec3;
653
752
  }
654
- /** FigureSource 스키마 기본 판 번호. */
655
- export declare const FIGURE_SOURCE_VERSION = 1;
753
+ /**
754
+ * The source edition this format reads.
755
+ *
756
+ * - 1: `position.y` measured from the centre of the base box. Sources saved before the `version`
757
+ * field existed are edition 1 as well.
758
+ * - 2: `position.y` measured from the bottom face of the base box (ADR-0065).
759
+ *
760
+ * Only edition 2 is read. Older sources are refused with `source-version-unsupported` rather than
761
+ * read by the old rule, so a value never lives in two shapes at once.
762
+ */
763
+ export declare const FIGURE_SOURCE_VERSION = 2;
656
764
  /** 저작 결과. 편집 가능한 원본 데이터. */
657
765
  export interface FigureSource {
658
766
  /**
659
- * 형식 판 번호. 기본값 1.
660
- *
661
- * 원본 데이터(JSON)의 스키마 버전을 명시한다.
662
- * 형식이 변경될 때 마이그레이션 및 하위 호환 판정의 기준이 된다.
767
+ * Source edition. Must be `FIGURE_SOURCE_VERSION`; a missing value is refused, because every
768
+ * source saved without one was written in edition 1 coordinates.
663
769
  */
664
770
  version?: number;
665
771
  /** 컴포넌트 타입 이름. **저장되는 식별자다.** */
@@ -719,6 +825,8 @@ export interface FigureSource {
719
825
  * 있고, mixin 마다 선언이 있다.
720
826
  */
721
827
  capabilities?: readonly FigureCapability[];
828
+ /** How parts move relative to their parents (ADR-0066). See `FigureJoint`. */
829
+ joints?: FigureJoint[];
722
830
  }
723
831
  /** 청사진 스키마 버전. 형식이 바뀌면 올린다. */
724
832
  export declare const BLUEPRINT_VERSION = 1;
@@ -732,7 +840,24 @@ export declare const BLUEPRINT_VERSION = 1;
732
840
  * 이름을 따로 두는 뜻이 있다. 닻을 `BlueprintMember` 로 억지로 맞추려면 없는 `geometryKey` 와
733
841
  * `triangles` 를 지어내야 하고, 그 순간 그리는 목록에 섞여 들어갈 길이 생긴다.
734
842
  */
735
- export interface SizingSubject {
843
+ declare const CENTRED: unique symbol;
844
+ /**
845
+ * Marks a value whose positions are measured from the centre of the base box.
846
+ *
847
+ * A source measures y from the box bottom (edition 2); the blueprint, sizing, the release gate and the
848
+ * policy checks read box-centred positions. The brand exists only in the type system. Values get it in
849
+ * `origin.ts`, so a caller that hands a source part straight to a centred-only function fails to compile
850
+ * instead of reading every y half a box too high (ADR-0065).
851
+ */
852
+ export type Centred<T> = T & {
853
+ readonly [CENTRED]: true;
854
+ };
855
+ /** A source whose parts have been moved into box-centred coordinates by `centredSource`. */
856
+ export type CentredSource = Centred<Omit<FigureSource, 'parts' | 'joints'> & {
857
+ parts: Centred<FigurePart>[];
858
+ joints?: Centred<FigureJoint>[];
859
+ }>;
860
+ interface SizingSubjectShape {
736
861
  name: string;
737
862
  transform: PartTransform;
738
863
  sizing: SizingRule;
@@ -743,6 +868,8 @@ export interface SizingSubject {
743
868
  primitive?: PrimitiveKind;
744
869
  keepRound?: boolean;
745
870
  }
871
+ /** What the sizing rules read: a part in box-centred coordinates. */
872
+ export type SizingSubject = Centred<SizingSubjectShape>;
746
873
  export interface BlueprintMember extends SizingSubject {
747
874
  name: string;
748
875
  primitive: PrimitiveKind;
@@ -782,6 +909,8 @@ export interface BlueprintAnchor extends SizingSubject {
782
909
  capacity?: number;
783
910
  /** 포트(port-in, port-out)의 법선/진출입 진행 방향 벡터. 기본값 `{ x: 0, y: 0, z: 1 }`. */
784
911
  direction?: Vec3;
912
+ /** The joint whose frame the anchor moves in. Missing means the figure frame. */
913
+ joint?: string;
785
914
  }
786
915
  /**
787
916
  * 재질별로 병합된 묶음. 2D · 3D 공통.
@@ -797,6 +926,34 @@ export interface BlueprintGroup {
797
926
  /** 움직이는 부품이 든 그룹인지. 그런 그룹은 부품을 하나만 갖는다. */
798
927
  animated: boolean;
799
928
  members: BlueprintMember[];
929
+ /**
930
+ * The joint whose frame this group moves in: the nearest joint on the members' parent chain. Missing
931
+ * means the figure frame. Groups merge only within one joint's frame, so the key is (joint, material).
932
+ */
933
+ joint?: string;
934
+ }
935
+ /**
936
+ * A joint as the runtime builds it: a node in the figure's hierarchy.
937
+ *
938
+ * Positions are box-centred, like every other blueprint position.
939
+ */
940
+ export interface BlueprintJoint {
941
+ name: string;
942
+ type: JointType;
943
+ /** The part the joint moves. */
944
+ child: string;
945
+ /** Box-centred rest position of the point the joint turns about or slides from. */
946
+ origin: Vec3;
947
+ /** Unit length. */
948
+ axis: Vec3;
949
+ limits?: JointLimits;
950
+ /** The joint whose frame this joint sits in. Missing means the figure frame. */
951
+ parent?: string;
952
+ /**
953
+ * The child's parent part. The origin follows that part under sizing (ADR-0066 decision 3). Missing when
954
+ * the child hangs from the figure frame.
955
+ */
956
+ attach?: string;
800
957
  }
801
958
  /** 청사진의 clip. 원본에 적은 것 그대로다. */
802
959
  export type BlueprintClip = AnimationClip;
@@ -821,13 +978,13 @@ export interface Violation {
821
978
  * 처리를 정해야 하는데, 코드가 늘어난 것이 알려지지 않으면 그 대응이 빠진다. 뜻은
822
979
  * `docs/validation.md` 에 있고, 문서와 이 목록이 어긋나면 테스트가 실패한다.
823
980
  */
824
- export declare const ERROR_CODES: readonly ["not-object", "not-finite", "not-positive", "out-of-range", "not-integer", "not-boolean", "not-allowed", "missing-type", "missing-base", "missing-parts", "bad-style-kit", "missing-name", "duplicate-name", "missing-transform", "missing-position", "missing-size", "too-few-segments", "missing-shape-path", "bad-shape-point", "hollow-too-thick", "hollow-not-convex", "bad-aspect-axis", "missing-material", "material-unresolvable", "missing-repeat", "missing-channels", "unknown-channel-target", "too-few-keys", "keys-out-of-order", "missing-surface-ref", "missing-label-name", "missing-label-source", "bad-capability", "duplicate-capability", "bad-part-capability", "missing-range", "bad-range"];
981
+ export declare const ERROR_CODES: readonly ["not-object", "not-finite", "not-positive", "out-of-range", "not-integer", "not-boolean", "not-allowed", "missing-type", "source-version-unsupported", "missing-base", "missing-parts", "bad-style-kit", "missing-name", "duplicate-name", "missing-transform", "missing-position", "missing-size", "too-few-segments", "missing-shape-path", "bad-shape-point", "hollow-too-thick", "hollow-not-convex", "bad-aspect-axis", "missing-material", "material-unresolvable", "missing-repeat", "missing-channels", "unknown-channel-target", "too-few-keys", "keys-out-of-order", "missing-surface-ref", "missing-label-name", "missing-label-source", "bad-capability", "duplicate-capability", "bad-part-capability", "missing-range", "bad-range", "unknown-parent", "parent-cycle", "unknown-joint-child", "joint-child-taken", "bad-joint-axis"];
825
982
  export type ErrorCode = (typeof ERROR_CODES)[number];
826
983
  /**
827
984
  * 위반 코드 전부. 위반은 컴파일을 막지 않는다 — 저작 화면이 알려 주는 데 쓴다.
828
985
  * 뜻과 한도는 `docs/validation.md` 에 있다.
829
986
  */
830
- export declare const VIOLATION_CODES: readonly ["segments-off-preset", "segments-ignored", "repeat-ignored", "keep-round-ignored", "hollow-ignored", "pivot-ignored", "detail-level-missing", "too-many-parts", "too-many-animated-parts", "too-many-material-groups", "too-many-transparent", "too-many-surface-textures", "capacity-with-repeat", "too-many-always-labels", "part-outside-base", "parts-off-placement-face"];
987
+ export declare const VIOLATION_CODES: readonly ["segments-off-preset", "segments-ignored", "repeat-ignored", "keep-round-ignored", "hollow-ignored", "pivot-ignored", "detail-level-missing", "too-many-parts", "too-many-animated-parts", "too-many-material-groups", "too-many-transparent", "too-many-surface-textures", "capacity-with-repeat", "too-many-always-labels", "part-outside-base", "parts-off-placement-face", "type-not-identifier", "type-is-placeholder"];
831
988
  export type ViolationCode = (typeof VIOLATION_CODES)[number];
832
989
  /**
833
990
  * 발행을 막는 위반 — ADR-0044 결정 ② (`operato-twin/design/04-decisions.md`).
@@ -840,8 +997,32 @@ export type ViolationCode = (typeof VIOLATION_CODES)[number];
840
997
  * 화면이 「이건 고쳐야 나간다」를 뜻으로 보여 줄 때. 서버가 제 목록을 들면 화면은 그것을
841
998
  * 알 길이 없어 전부 같은 「알림」으로 그리고, 저작자는 발행이 막힌 것을 **눌러 보고 나서야**
842
999
  * 안다. 코드를 소유한 자리가 등급도 소유한다.
1000
+ *
1001
+ * The two type-name codes belong here for the same reason: a drawing records the type, so a released
1002
+ * name is a promise to consumers.
843
1003
  */
844
1004
  export declare const RELEASE_BLOCKING_VIOLATIONS: readonly ViolationCode[];
1005
+ /**
1006
+ * The shape of a `type`: `SCREAMING_SNAKE_CASE` starting with a capital, 3 to 32 characters.
1007
+ *
1008
+ * Capitals are the figure namespace. Built-in scene components use lower-case kebab names, so a figure
1009
+ * that follows this shape cannot share a name with one.
1010
+ */
1011
+ export declare const TYPE_PATTERN: RegExp;
1012
+ export declare const TYPE_LENGTH: {
1013
+ readonly min: 3;
1014
+ readonly max: 32;
1015
+ };
1016
+ /**
1017
+ * The temporary type a figure carries before anyone names it. The format owns it so that the code
1018
+ * making it and the code recognising it follow one rule: the authoring screen makes it, the release
1019
+ * gate and the AI tools recognise it.
1020
+ *
1021
+ * It passes the identifier pattern (`FIGURE_MTU10FWR`), so the shape check alone would not catch it.
1022
+ */
1023
+ export declare function placeholderType(now?: number): string;
1024
+ /** Whether a type is the temporary name given before anyone names the figure. */
1025
+ export declare function isPlaceholderType(type: string): boolean;
845
1026
  /** 이 위반이 발행을 막나. */
846
1027
  export declare function blocksRelease(code: string): boolean;
847
1028
  /** 형식·정합성 오류. 이것이 있으면 컴파일할 수 없다. */
@@ -893,8 +1074,6 @@ export interface FigureBlueprint {
893
1074
  animations: BlueprintClip[];
894
1075
  /**
895
1076
  * 값이 모는 자세. 인스턴스가 이름으로 값을 준다.
896
- *
897
- * 옛 원본의 `drive: 'hold'` clip 도 여기로 온다 — `compile()` 이 옮긴다.
898
1077
  */
899
1078
  parameters: BlueprintParameter[];
900
1079
  labels: BlueprintLabel[];
@@ -905,6 +1084,11 @@ export interface FigureBlueprint {
905
1084
  * 형식은 이름의 뜻을 모르고 판정하지도 않는다(`FigureSource.capabilities` 주석 참고).
906
1085
  */
907
1086
  capabilities: readonly string[];
1087
+ /**
1088
+ * Joints, parents before children. Missing or empty means every part is fixed to the figure frame, which
1089
+ * is every blueprint compiled before joints existed.
1090
+ */
1091
+ joints?: BlueprintJoint[];
908
1092
  violations: Violation[];
909
1093
  }
910
1094
  /**
@@ -988,4 +1172,5 @@ export declare const LIMITS: {
988
1172
  * 화면이 표현하지 못한다. 삼각형만 192 에서 256 으로 는다.
989
1173
  */
990
1174
  export declare const SEGMENT_PRESETS: readonly number[];
1175
+ export {};
991
1176
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAqBA,8CAA8C;AAC9C,eAAO,MAAM,eAAe,oEAAqE,CAAA;AACjG,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAA;AAE5D,+BAA+B;AAC/B,eAAO,MAAM,kBAAkB,EAAE,SAAS,aAAa,EAAwB,CAAA;AAE/E,oCAAoC;AACpC,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAA2C,CAAA;AAE/F,kCAAkC;AAClC,eAAO,MAAM,oBAAoB,EAAE,SAAS,aAAa,EAA2B,CAAA;AAEpF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,aAAa,EAA2B,CAAA;AAEjF;;;GAGG;AACH,eAAO,MAAM,cAAc,0BAA2B,CAAA;AACtD,MAAM,MAAM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EAAE;QACN,SAAS,EAAE,MAAM,CAAA;QACjB,qDAAqD;QACrD,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;IACD,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB;;;;;;OAMG;IACH,OAAO,EAAE,eAAe,EAAE,CAAA;IAC1B,UAAU,EAAE,aAAa,EAAE,CAAA;IAC3B;;OAEG;IACH,UAAU,EAAE,kBAAkB,EAAE,CAAA;IAChC,MAAM,EAAE,cAAc,EAAE,CAAA;IACxB;;;;;OAKG;IACH,YAAY,EAAE,SAAS,MAAM,EAAE,CAAA;IAC/B;;;OAGG;IACH,MAAM,CAAC,EAAE,cAAc,EAAE,CAAA;IACzB,UAAU,EAAE,SAAS,EAAE,CAAA;CACxB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,MAAM,CAAA;AAIvB;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM;IACjB,kBAAkB;;IAElB,gDAAgD;;IAEhD,wBAAwB;;IAExB;;;;;;;OAOG;;IAEH,iCAAiC;;CAEzB,CAAA;AAEV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,eAAO,MAAM,eAAe,EAAE,SAAS,MAAM,EAA4B,CAAA"}
package/dist/types.js CHANGED
@@ -197,19 +197,18 @@ export const PART_LIMIT = { S: 3, M: 8, L: 20 };
197
197
  export const CHANNEL_PATHS = ['translation', 'rotation', 'scale'];
198
198
  /** 키프레임 사이를 어떻게 잇나. glTF 의 `CUBICSPLINE` 은 없다 — 접선을 손으로 적을 형식이 아니다. */
199
199
  export const INTERPOLATIONS = ['linear', 'step'];
200
+ export const AXES = ['x', 'y', 'z'];
200
201
  /**
201
- * **옛 자리다. 저작하지 않는다.**
202
+ * How a joint moves its child part relative to the parent (ADR-0066).
202
203
  *
203
- * `drive: 'hold'` 가 「값이 자세를 만든다」를 말하던 칸이었다. 그 판단은 맞았는데 자리가
204
- * 틀려서, 애니메이션 안에 숨은 채로 아무도 못 찾았다. 지금은 `FigureParameter` 가 제 칸으로
205
- * 있고 `animations` 에는 시각이 흐르는 것만 남는다 — 그러니 여기서 말할 것이 없다
206
- * (ADR-0051, `operato-twin/design/04-decisions.md`).
204
+ * revolute turns about `axis` within `limits`, in degrees
205
+ * prismatic slides along `axis` within `limits`, in millimetres
206
+ * continuous turns about `axis` without limits, in degrees
207
207
  *
208
- * 이름이 남아 있는 것은 **이미 저장된 것을 옮기기 위해서**다. `compile()` 이 옛 원본의
209
- * `drive: 'hold'` 를 읽어 `parameters` 로 옮긴다. 옮기는 쪽이 사라지면 이 이름도 사라진다.
208
+ * These are URDF's three moving joint types. A fixed attachment is not a joint: a part names its parent
209
+ * with `FigurePart.parent` and moves with it.
210
210
  */
211
- export const CLIP_DRIVES = ['loop', 'hold'];
212
- export const AXES = ['x', 'y', 'z'];
211
+ export const JOINT_TYPES = ['revolute', 'prismatic', 'continuous'];
213
212
  /** 텍스트를 언제 보이나. 표현 수단(sprite·overlay)은 런타임이 고른다. */
214
213
  export const LABEL_WHENS = ['always', 'zoomed', 'selected', 'abnormal'];
215
214
  /**
@@ -233,8 +232,17 @@ export const SURFACE_KINDS = ['gradient', 'pattern'];
233
232
  * port-out 흐름이 나가는 문 (`FlowNode.outboundPorts`)
234
233
  */
235
234
  export const PART_ROLES = ['slot', 'port-in', 'port-out'];
236
- /** FigureSource 스키마 기본 판 번호. */
237
- export const FIGURE_SOURCE_VERSION = 1;
235
+ /**
236
+ * The source edition this format reads.
237
+ *
238
+ * - 1: `position.y` measured from the centre of the base box. Sources saved before the `version`
239
+ * field existed are edition 1 as well.
240
+ * - 2: `position.y` measured from the bottom face of the base box (ADR-0065).
241
+ *
242
+ * Only edition 2 is read. Older sources are refused with `source-version-unsupported` rather than
243
+ * read by the old rule, so a value never lives in two shapes at once.
244
+ */
245
+ export const FIGURE_SOURCE_VERSION = 2;
238
246
  // ─── 청사진 ────────────────────────────────────────────────────────────────
239
247
  /** 청사진 스키마 버전. 형식이 바뀌면 올린다. */
240
248
  export const BLUEPRINT_VERSION = 1;
@@ -258,6 +266,8 @@ export const ERROR_CODES = [
258
266
  'not-allowed',
259
267
  // 원본의 필수 항목
260
268
  'missing-type',
269
+ /* The source was written in an edition this format no longer reads. See FIGURE_SOURCE_VERSION. */
270
+ 'source-version-unsupported',
261
271
  'missing-base',
262
272
  'missing-parts',
263
273
  'bad-style-kit',
@@ -302,7 +312,13 @@ export const ERROR_CODES = [
302
312
  값을 줄 수가 없다.** 단위도 마찬가지다 — 화면이 「1200」만 보이고 무슨 수인지 못 말한다.
303
313
  */
304
314
  'missing-range',
305
- 'bad-range'
315
+ 'bad-range',
316
+ /* Hierarchy and joints (ADR-0066) */
317
+ 'unknown-parent',
318
+ 'parent-cycle',
319
+ 'unknown-joint-child',
320
+ 'joint-child-taken',
321
+ 'bad-joint-axis'
306
322
  ];
307
323
  /**
308
324
  * 위반 코드 전부. 위반은 컴파일을 막지 않는다 — 저작 화면이 알려 주는 데 쓴다.
@@ -340,7 +356,16 @@ export const VIOLATION_CODES = [
340
356
  것은 부품을 제자리로 옮기는 것인데.
341
357
  */
342
358
  'part-outside-base',
343
- 'parts-off-placement-face'
359
+ 'parts-off-placement-face',
360
+ /*
361
+ Type names. `type` is the stored identifier a drawing writes as `{ type, left, top, width, height }`,
362
+ so once released it cannot change. The rules hold back a release and leave draft saves alone:
363
+ trying something out before naming it is fine. These are two separate defects. One is a name of
364
+ the wrong shape; the other has the right shape but was never named by a person (chief architect
365
+ ruling, 2026-09-17).
366
+ */
367
+ 'type-not-identifier',
368
+ 'type-is-placeholder'
344
369
  ];
345
370
  /**
346
371
  * 발행을 막는 위반 — ADR-0044 결정 ② (`operato-twin/design/04-decisions.md`).
@@ -353,8 +378,39 @@ export const VIOLATION_CODES = [
353
378
  * 화면이 「이건 고쳐야 나간다」를 뜻으로 보여 줄 때. 서버가 제 목록을 들면 화면은 그것을
354
379
  * 알 길이 없어 전부 같은 「알림」으로 그리고, 저작자는 발행이 막힌 것을 **눌러 보고 나서야**
355
380
  * 안다. 코드를 소유한 자리가 등급도 소유한다.
381
+ *
382
+ * The two type-name codes belong here for the same reason: a drawing records the type, so a released
383
+ * name is a promise to consumers.
356
384
  */
357
- export const RELEASE_BLOCKING_VIOLATIONS = ['part-outside-base', 'parts-off-placement-face'];
385
+ export const RELEASE_BLOCKING_VIOLATIONS = [
386
+ 'part-outside-base',
387
+ 'parts-off-placement-face',
388
+ 'type-not-identifier',
389
+ 'type-is-placeholder'
390
+ ];
391
+ /**
392
+ * The shape of a `type`: `SCREAMING_SNAKE_CASE` starting with a capital, 3 to 32 characters.
393
+ *
394
+ * Capitals are the figure namespace. Built-in scene components use lower-case kebab names, so a figure
395
+ * that follows this shape cannot share a name with one.
396
+ */
397
+ export const TYPE_PATTERN = /^[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$/;
398
+ export const TYPE_LENGTH = { min: 3, max: 32 };
399
+ /**
400
+ * The temporary type a figure carries before anyone names it. The format owns it so that the code
401
+ * making it and the code recognising it follow one rule: the authoring screen makes it, the release
402
+ * gate and the AI tools recognise it.
403
+ *
404
+ * It passes the identifier pattern (`FIGURE_MTU10FWR`), so the shape check alone would not catch it.
405
+ */
406
+ export function placeholderType(now = Date.now()) {
407
+ return `FIGURE_${now.toString(36).toUpperCase()}`;
408
+ }
409
+ const PLACEHOLDER_TYPE = /^FIGURE_[0-9A-Z]{8}$/;
410
+ /** Whether a type is the temporary name given before anyone names the figure. */
411
+ export function isPlaceholderType(type) {
412
+ return PLACEHOLDER_TYPE.test(type);
413
+ }
358
414
  /** 이 위반이 발행을 막나. */
359
415
  export function blocksRelease(code) {
360
416
  return RELEASE_BLOCKING_VIOLATIONS.includes(code);
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,8CAA8C;AAC9C,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,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
  violations: Violation[];
5
5
  }
6
- /**
7
- * 원본 데이터를 검증한다.
8
- *
9
- * 바깥에서 온 데이터(DB · API · 파일)를 받으므로 `unknown` 을 받는다.
10
- * `errors` 가 비어 있으면 `source` 는 `FigureSource` 로 다룰 수 있다.
11
- */
12
6
  export declare function validate(source: unknown): ValidateResult;
13
7
  //# sourceMappingURL=validate.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../src/validate.ts"],"names":[],"mappings":"AAqBA,OAAO,EA0BL,KAAK,WAAW,EAGhB,KAAK,SAAS,EAEf,MAAM,YAAY,CAAA;AAQnB,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,UAAU,EAAE,SAAS,EAAE,CAAA;CACxB;AA61BD;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,cAAc,CAqExD"}
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../src/validate.ts"],"names":[],"mappings":"AAqBA,OAAO,EAyBL,KAAK,WAAW,EAIhB,KAAK,SAAS,EAQf,MAAM,YAAY,CAAA;AASnB,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,WAAW,EAAE,CAAA;IACrB,UAAU,EAAE,SAAS,EAAE,CAAA;CACxB;AAmmCD,wBAAgB,QAAQ,CAAC,MAAM,EAAE,OAAO,GAAG,cAAc,CAqFxD"}