@rig-c/review 1.8.0 → 1.10.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/docs/DESIGN.md +38 -14
- package/docs/PANELS.md +37 -13
- package/docs/PARTS_VIEW.md +138 -30
- package/docs/REVIEW_PACKAGE.md +66 -0
- package/package.json +1 -1
- package/src/applied-context.ts +17 -4
- package/src/front.ts +5 -1
- package/src/parts-comment-crops.ts +3 -1
- package/src/parts-comparison.ts +25 -2
- package/src/parts-server.ts +11 -2
- package/src/parts-view.ts +87 -15
- package/src/rebuild.ts +84 -1
- package/src/retune-check.ts +1 -1
- package/src/server.ts +4 -2
- package/src/stage-parts.ts +81 -4
- package/web/catalog-en.ts +47 -1
- package/web/catalog-ko.ts +53 -7
- package/web/chest-editor.ts +3 -0
- package/web/main.ts +59 -13
- package/web/parts-flags.ts +9 -1
- package/web/parts.css +12 -3
- package/web/parts.html +3 -1
- package/web/parts.ts +132 -24
- package/web/rebuild-client.ts +15 -7
- package/web/stage-nav.ts +21 -6
package/web/catalog-en.ts
CHANGED
|
@@ -1,4 +1,44 @@
|
|
|
1
1
|
export const enCatalog: Readonly<Record<string, string>> = {
|
|
2
|
+
"PARTS_DIFFERENCE_PROVENANCE: declared path, lowercase SHA-256 and lanczos3-rgb-opaque required": "PARTS_DIFFERENCE_PROVENANCE: declared path, lowercase SHA-256 and lanczos3-rgb-opaque required",
|
|
3
|
+
"PARTS_DIFFERENCE_PATH: literal portable inside-package path required": "PARTS_DIFFERENCE_PATH: literal portable inside-package path required",
|
|
4
|
+
"PARTS_DIFFERENCE_PATH: declared painting must be readable inside the package": "PARTS_DIFFERENCE_PATH: declared painting must be readable inside the package",
|
|
5
|
+
"PARTS_DIFFERENCE_HASH: declared painting hash differs": "PARTS_DIFFERENCE_HASH: declared painting hash differs",
|
|
6
|
+
"PARTS_DIFFERENCE_PNG: declared painting must be RGBA8 PNG": "PARTS_DIFFERENCE_PNG: declared painting must be RGBA8 PNG",
|
|
7
|
+
"PARTS_DIFFERENCE_SIZE: declared painting dimensions must equal integer rig_size": "PARTS_DIFFERENCE_SIZE: declared painting dimensions must equal integer rig_size",
|
|
8
|
+
"PARTS_DIFFERENCE_ALPHA: declared painting must have alpha 255": "PARTS_DIFFERENCE_ALPHA: declared painting must have alpha 255",
|
|
9
|
+
"PARTS_DIFFERENCE_UNAVAILABLE: declared painting_in_rig required": "PARTS_DIFFERENCE_UNAVAILABLE: declared painting_in_rig required",
|
|
10
|
+
"PARTS_DIFFERENCE_UNAVAILABLE: declared painting_in_rig required; legacy records remain readable": "PARTS_DIFFERENCE_UNAVAILABLE: declared painting_in_rig required; legacy records remain readable",
|
|
11
|
+
"PARTS_DIFFERENCE_UNAVAILABLE: known original part required": "PARTS_DIFFERENCE_UNAVAILABLE: known original part required",
|
|
12
|
+
"PARTS_DIFFERENCE_PNG: exact RGBA8 operands required": "PARTS_DIFFERENCE_PNG: exact RGBA8 operands required",
|
|
13
|
+
"PARTS_DIFFERENCE_ALIGNMENT: integer native placement and exact PNG dimensions required": "PARTS_DIFFERENCE_ALIGNMENT: integer native placement and exact PNG dimensions required",
|
|
14
|
+
"PARTS_DIFFERENCE_ALIGNMENT: nontransparent part pixel lies outside declared rig grid": "PARTS_DIFFERENCE_ALIGNMENT: nontransparent part pixel lies outside declared rig grid",
|
|
15
|
+
"PARTS_COMPARISON_INVALID: part/overlay with opacity 0..1, or difference with integer threshold 0..255 required": "PARTS_COMPARISON_INVALID: part/overlay with opacity 0..1, or difference with integer threshold 0..255 required",
|
|
16
|
+
"PARTS_COMPARISON_INVALID: integer threshold 0..255 required": "PARTS_COMPARISON_INVALID: integer threshold 0..255 required",
|
|
17
|
+
"PARTS_COMPARISON_INVALID: threshold and footprints required": "PARTS_COMPARISON_INVALID: threshold and footprints required",
|
|
18
|
+
"PARTS_VIEW_SOURCE_CHANGED: declared painting path changed": "PARTS_VIEW_SOURCE_CHANGED: declared painting path changed",
|
|
19
|
+
"PARTS_COMPARISON_INVALID: enter an integer threshold from 0 to 255. Last valid value restored.": "PARTS_COMPARISON_INVALID: enter an integer threshold from 0 to 255. Last valid value restored.",
|
|
20
|
+
"Difference": "Difference",
|
|
21
|
+
"Threshold": "Threshold",
|
|
22
|
+
"PARTS_DIFFERENCE_UNAVAILABLE: declared painting_in_rig and individual part view required.": "PARTS_DIFFERENCE_UNAVAILABLE: declared painting_in_rig and individual part view required.",
|
|
23
|
+
"Difference: {count} pixels above threshold · {covered} covered pixels excluded · visual comparison, no automatic verdict.": "Difference: {count} pixels above threshold · {covered} covered pixels excluded · visual comparison, no automatic verdict.",
|
|
24
|
+
|
|
25
|
+
"STAGE_DRAFT_GEOMETRY_UNSUPPORTED: raw indexed vertex geometry is unavailable in this draft connection.": "STAGE_DRAFT_GEOMETRY_UNSUPPORTED: raw indexed vertex geometry is unavailable in this draft connection.",
|
|
26
|
+
"rig-parts remesh --mesh": "rig-parts remesh --mesh",
|
|
27
|
+
"rig-parts remesh --delta": "rig-parts remesh --delta",
|
|
28
|
+
" \u00b7 {0} \u00b7 rig-parts remesh {1}": " \u00b7 {0} \u00b7 rig-parts remesh {1}",
|
|
29
|
+
"Draft rig · structure evidence only": "Draft rig · structure evidence only",
|
|
30
|
+
"Mesh parameters": "Mesh parameters",
|
|
31
|
+
"Correction-record export unavailable: waiting for the shared correction contract.": "Correction-record export unavailable: waiting for the shared correction contract.",
|
|
32
|
+
"REBUILD_PART_NOT_CONTOUR: {0}": "REBUILD_PART_NOT_CONTOUR: {0}",
|
|
33
|
+
"STAGE_DRAFT_NO_MESH: this part has no mesh attachment; direct correction is unavailable.": "STAGE_DRAFT_NO_MESH: this part has no mesh attachment; direct correction is unavailable.",
|
|
34
|
+
"STAGE_DRAFT_UNAVAILABLE: no producer-compatible draft is supplied.": "STAGE_DRAFT_UNAVAILABLE: no producer-compatible draft is supplied.",
|
|
35
|
+
"STAGE_DRAFT_MISMATCH: separated parts and draft mesh identity differ.": "STAGE_DRAFT_MISMATCH: separated parts and draft mesh identity differ.",
|
|
36
|
+
"STAGE_DRAFT_STALE: the requested revision is pending or no longer applied.": "STAGE_DRAFT_STALE: the requested revision is pending or no longer applied.",
|
|
37
|
+
"STAGE_DRAFT_CHANGED: scratch inputs changed after Apply.": "STAGE_DRAFT_CHANGED: scratch inputs changed after Apply.",
|
|
38
|
+
"STAGE_DRAFT_UNCHECKED: this revision has no successful producer check.": "STAGE_DRAFT_UNCHECKED: this revision has no successful producer check.",
|
|
39
|
+
"STAGE_DRAFT_OPERATION: this applied operation is not a mesh correction.": "STAGE_DRAFT_OPERATION: this applied operation is not a mesh correction.",
|
|
40
|
+
"Approve all": "Approve all",
|
|
41
|
+
"PARTS_APPROVE_ALL_FLAGGED: resolve flagged part and mesh outcomes before approving all.": "PARTS_APPROVE_ALL_FLAGGED: resolve flagged part and mesh outcomes before approving all.",
|
|
2
42
|
"Atlas source build": "Atlas source build",
|
|
3
43
|
"1 Parts + mesh": "1 Parts + mesh",
|
|
4
44
|
"2 Interview": "2 Interview",
|
|
@@ -2356,7 +2396,6 @@ export const enCatalog: Readonly<Record<string, string>> = {
|
|
|
2356
2396
|
"rig-parts propose --cloth --write-config (entry by entry)": "rig-parts propose --cloth --write-config (entry by entry)",
|
|
2357
2397
|
"rig-parts propose exited {0}": "rig-parts propose exited {0}",
|
|
2358
2398
|
"rig-parts propose exited {0} without a named refusal": "rig-parts propose exited {0} without a named refusal",
|
|
2359
|
-
"rig-parts remesh --delta": "rig-parts remesh --delta",
|
|
2360
2399
|
"rig-parts rig --config config.json": "rig-parts rig --config config.json",
|
|
2361
2400
|
"rig-pose-sequence/1: each person needs a unique id and joints": "rig-pose-sequence/1: each person needs a unique id and joints",
|
|
2362
2401
|
"rig-pose-sequence/1: expected picture-px, top-left, y-down and nonempty frames": "rig-pose-sequence/1: expected picture-px, top-left, y-down and nonempty frames",
|
|
@@ -3145,4 +3184,11 @@ export const enCatalog: Readonly<Record<string, string>> = {
|
|
|
3145
3184
|
"Assembly unavailable: rig_size is not declared.": "Assembly unavailable: rig_size is not declared.",
|
|
3146
3185
|
"Assembled package \u00b7 {count} visible parts. Selection and verdict remain per part.": "Assembled package · {count} visible parts. Selection and verdict remain per part.",
|
|
3147
3186
|
"PARTS_COMMENT_UNAVAILABLE: select the individual part view to comment": "PARTS_COMMENT_UNAVAILABLE: select the individual part view to comment",
|
|
3187
|
+
"Mesh flags": "Mesh flags",
|
|
3188
|
+
"Part findings": "Part findings",
|
|
3189
|
+
"Pair readings": "Pair readings",
|
|
3190
|
+
"Check evidence": "Check evidence",
|
|
3191
|
+
"Unclassified check rows": "Unclassified check rows",
|
|
3192
|
+
"Badges count only mesh flags and explicit part findings. Pair readings and check evidence are not counted.": "Badges count only mesh flags and explicit part findings. Pair readings and check evidence are not counted.",
|
|
3193
|
+
"Missing or invalid row metadata: source-root rows remain unclassified and are not counted.": "Missing or invalid row metadata: source-root rows remain unclassified and are not counted.",
|
|
3148
3194
|
};
|
package/web/catalog-ko.ts
CHANGED
|
@@ -1,4 +1,44 @@
|
|
|
1
1
|
export const koCatalog: Readonly<Record<string, string>> = {
|
|
2
|
+
"PARTS_DIFFERENCE_PROVENANCE: declared path, lowercase SHA-256 and lanczos3-rgb-opaque required": "PARTS_DIFFERENCE_PROVENANCE: 선언된 경로, 소문자 SHA-256, lanczos3-rgb-opaque가 필요해요.",
|
|
3
|
+
"PARTS_DIFFERENCE_PATH: literal portable inside-package path required": "PARTS_DIFFERENCE_PATH: 패키지 안의 이식 가능한 리터럴 경로가 필요해요.",
|
|
4
|
+
"PARTS_DIFFERENCE_PATH: declared painting must be readable inside the package": "PARTS_DIFFERENCE_PATH: 선언된 원화를 패키지 안에서 읽을 수 있어야 해요.",
|
|
5
|
+
"PARTS_DIFFERENCE_HASH: declared painting hash differs": "PARTS_DIFFERENCE_HASH: 원화의 해시가 선언된 값과 달라요.",
|
|
6
|
+
"PARTS_DIFFERENCE_PNG: declared painting must be RGBA8 PNG": "PARTS_DIFFERENCE_PNG: 선언된 원화는 RGBA8 PNG여야 해요.",
|
|
7
|
+
"PARTS_DIFFERENCE_SIZE: declared painting dimensions must equal integer rig_size": "PARTS_DIFFERENCE_SIZE: 선언된 원화의 크기가 정수 rig_size와 같아야 해요.",
|
|
8
|
+
"PARTS_DIFFERENCE_ALPHA: declared painting must have alpha 255": "PARTS_DIFFERENCE_ALPHA: 선언된 원화의 모든 픽셀은 알파가 255여야 해요.",
|
|
9
|
+
"PARTS_DIFFERENCE_UNAVAILABLE: declared painting_in_rig required": "PARTS_DIFFERENCE_UNAVAILABLE: 선언된 painting_in_rig가 필요해요.",
|
|
10
|
+
"PARTS_DIFFERENCE_UNAVAILABLE: declared painting_in_rig required; legacy records remain readable": "PARTS_DIFFERENCE_UNAVAILABLE: 차이 비교에는 선언된 painting_in_rig가 필요해요. 이전 기록은 계속 열 수 있어요.",
|
|
11
|
+
"PARTS_DIFFERENCE_UNAVAILABLE: known original part required": "PARTS_DIFFERENCE_UNAVAILABLE: 패키지에 등록된 원본 파트가 필요해요.",
|
|
12
|
+
"PARTS_DIFFERENCE_PNG: exact RGBA8 operands required": "PARTS_DIFFERENCE_PNG: 비교에 쓰는 이미지는 RGBA8이어야 해요.",
|
|
13
|
+
"PARTS_DIFFERENCE_ALIGNMENT: integer native placement and exact PNG dimensions required": "PARTS_DIFFERENCE_ALIGNMENT: 원본 배치 좌표가 정수이고 PNG 크기가 선언된 크기와 정확히 같아야 해요.",
|
|
14
|
+
"PARTS_DIFFERENCE_ALIGNMENT: nontransparent part pixel lies outside declared rig grid": "PARTS_DIFFERENCE_ALIGNMENT: 파트의 알파가 0보다 큰 픽셀이 선언된 리그 격자 밖에 있어요.",
|
|
15
|
+
"PARTS_COMPARISON_INVALID: part/overlay with opacity 0..1, or difference with integer threshold 0..255 required": "PARTS_COMPARISON_INVALID: 파트 또는 오버레이의 불투명도는 0~1이어야 하고, 차이 비교의 임계값은 0~255 사이 정수여야 해요.",
|
|
16
|
+
"PARTS_COMPARISON_INVALID: integer threshold 0..255 required": "PARTS_COMPARISON_INVALID: 0~255 사이의 정수 임계값이 필요해요.",
|
|
17
|
+
"PARTS_COMPARISON_INVALID: threshold and footprints required": "PARTS_COMPARISON_INVALID: 임계값과 앞 파츠 풋프린트 설정이 필요해요.",
|
|
18
|
+
"PARTS_VIEW_SOURCE_CHANGED: declared painting path changed": "PARTS_VIEW_SOURCE_CHANGED: 선언된 원화 경로가 바뀌었어요.",
|
|
19
|
+
"PARTS_COMPARISON_INVALID: enter an integer threshold from 0 to 255. Last valid value restored.": "PARTS_COMPARISON_INVALID: 0~255 사이의 정수 임계값을 입력해 주세요. 마지막 유효한 값으로 복원했어요.",
|
|
20
|
+
"Difference": "차이",
|
|
21
|
+
"Threshold": "임계값",
|
|
22
|
+
"PARTS_DIFFERENCE_UNAVAILABLE: declared painting_in_rig and individual part view required.": "PARTS_DIFFERENCE_UNAVAILABLE: 선언된 painting_in_rig와 개별 파트 보기가 필요해요.",
|
|
23
|
+
"Difference: {count} pixels above threshold · {covered} covered pixels excluded · visual comparison, no automatic verdict.": "차이: 임계값 초과 {count}픽셀 · 가려진 {covered}픽셀 제외 · 시각적 비교이며 자동 판정이 아니에요.",
|
|
24
|
+
|
|
25
|
+
"STAGE_DRAFT_GEOMETRY_UNSUPPORTED: raw indexed vertex geometry is unavailable in this draft connection.": "STAGE_DRAFT_GEOMETRY_UNSUPPORTED: 이 초안 연결은 원시 인덱스 정점 형상을 지원하지 않아요.",
|
|
26
|
+
"rig-parts remesh --mesh": "rig-parts remesh --mesh",
|
|
27
|
+
"rig-parts remesh --delta": "rig-parts remesh --delta",
|
|
28
|
+
" \u00b7 {0} \u00b7 rig-parts remesh {1}": " \u00b7 {0} \u00b7 rig-parts remesh {1}",
|
|
29
|
+
"Draft rig · structure evidence only": "초안 리그 · 구조 확인 근거만 제공",
|
|
30
|
+
"Mesh parameters": "메시 매개변수",
|
|
31
|
+
"Correction-record export unavailable: waiting for the shared correction contract.": "보정 기록 내보내기 불가: 공통 보정 계약을 기다리고 있어요.",
|
|
32
|
+
"REBUILD_PART_NOT_CONTOUR: {0}": "REBUILD_PART_NOT_CONTOUR: {0} (컨투어 메시가 아님)",
|
|
33
|
+
"STAGE_DRAFT_NO_MESH: this part has no mesh attachment; direct correction is unavailable.": "STAGE_DRAFT_NO_MESH: 이 파츠에는 메시 부착물이 없어 직접 수정할 수 없습니다.",
|
|
34
|
+
"STAGE_DRAFT_UNAVAILABLE: no producer-compatible draft is supplied.": "STAGE_DRAFT_UNAVAILABLE: 제작기와 호환되는 초안이 제공되지 않았어요.",
|
|
35
|
+
"STAGE_DRAFT_MISMATCH: separated parts and draft mesh identity differ.": "STAGE_DRAFT_MISMATCH: 분리 파츠와 초안 메시의 식별 정보가 달라요.",
|
|
36
|
+
"STAGE_DRAFT_STALE: the requested revision is pending or no longer applied.": "STAGE_DRAFT_STALE: 요청한 리비전이 대기 중이거나 더 이상 적용 상태가 아니에요.",
|
|
37
|
+
"STAGE_DRAFT_CHANGED: scratch inputs changed after Apply.": "STAGE_DRAFT_CHANGED: 적용 후 작업 사본의 입력이 변경됐어요.",
|
|
38
|
+
"STAGE_DRAFT_UNCHECKED: this revision has no successful producer check.": "STAGE_DRAFT_UNCHECKED: 이 리비전에는 성공한 제작기 검사 근거가 없어요.",
|
|
39
|
+
"STAGE_DRAFT_OPERATION: this applied operation is not a mesh correction.": "STAGE_DRAFT_OPERATION: 적용된 작업이 메시 보정이 아니에요.",
|
|
40
|
+
"Approve all": "모두 승인",
|
|
41
|
+
"PARTS_APPROVE_ALL_FLAGGED: resolve flagged part and mesh outcomes before approving all.": "PARTS_APPROVE_ALL_FLAGGED: 모두 승인하기 전에 파츠와 메시의 문제 표시를 해결해 주세요.",
|
|
2
42
|
"Atlas source build": "아틀라스 소스 빌드",
|
|
3
43
|
"1 Parts + mesh": "1 파츠 + 메시",
|
|
4
44
|
"2 Interview": "2 인터뷰",
|
|
@@ -1236,7 +1276,7 @@ export const koCatalog: Readonly<Record<string, string>> = {
|
|
|
1236
1276
|
"This part is not a contour mesh, so chest regions and bust motion cannot be rebuilt on it. The builder chooses each part's mesh kind in the config. Nothing is wrong with this rig.": "이 파츠는 윤곽(contour) 메시가 아니어서 흉부 영역과 가슴 움직임을 다시 빌드할 수 없습니다. 파츠마다 메시 종류는 빌더가 설정에서 정합니다. 이 리그에는 문제가 없습니다.",
|
|
1237
1277
|
"REBUILD_PART_AMBIGUOUS: the config states {0} contour meshes and the designated bones name none of them alone": "REBUILD_PART_AMBIGUOUS: 설정에 윤곽 메시 {0}개가 선언되어 있으며 지정된 본들이 어느 하나를 단독으로 가리키지 않습니다",
|
|
1238
1278
|
"REBUILD_PART_AMBIGUOUS: the config states {0} contour meshes and the landmark bones name none of them alone": "REBUILD_PART_AMBIGUOUS: 설정에 윤곽 메시 {0}개가 선언되어 있으며 랜드마크 본들이 어느 하나를 단독으로 가리키지 않습니다",
|
|
1239
|
-
"REBUILD_REGION_DUPLICATE: {0} (two regions of the chest part carry this name)": "REBUILD_REGION_DUPLICATE: {0} (가슴
|
|
1279
|
+
"REBUILD_REGION_DUPLICATE: {0} (two regions of the chest part carry this name)": "REBUILD_REGION_DUPLICATE: {0} (가슴 파츠의 두 영역이 이 이름을 사용합니다)",
|
|
1240
1280
|
"REBUILD_REGION_INCOMPLETE: no region has a centre": "REBUILD_REGION_INCOMPLETE: 중심이 지정된 영역이 없습니다",
|
|
1241
1281
|
"REBUILD_REGION_INCOMPLETE: {0} bone": "REBUILD_REGION_INCOMPLETE: {0} 본",
|
|
1242
1282
|
"REBUILD_REGION_INCOMPLETE: {0} name": "REBUILD_REGION_INCOMPLETE: {0} 이름",
|
|
@@ -2356,7 +2396,6 @@ export const koCatalog: Readonly<Record<string, string>> = {
|
|
|
2356
2396
|
"rig-parts propose --cloth --write-config (entry by entry)": "rig-parts propose --cloth --write-config (항목별)",
|
|
2357
2397
|
"rig-parts propose exited {0}": "rig-parts propose가 종료 코드 {0}(으)로 종료됨",
|
|
2358
2398
|
"rig-parts propose exited {0} without a named refusal": "rig-parts propose가 지정된 거부 사유 없이 종료 코드 {0}(으)로 종료됨",
|
|
2359
|
-
"rig-parts remesh --delta": "rig-parts remesh --delta",
|
|
2360
2399
|
"rig-parts rig --config config.json": "rig-parts rig --config config.json",
|
|
2361
2400
|
"rig-pose-sequence/1: each person needs a unique id and joints": "rig-pose-sequence/1: 각 인물에는 고유 ID와 관절이 필요합니다",
|
|
2362
2401
|
"rig-pose-sequence/1: expected picture-px, top-left, y-down and nonempty frames": "rig-pose-sequence/1: picture-px, top-left, y-down 및 비어 있지 않은 프레임이 필요합니다",
|
|
@@ -3115,7 +3154,7 @@ export const koCatalog: Readonly<Record<string, string>> = {
|
|
|
3115
3154
|
"Mesh note": "메시 메모",
|
|
3116
3155
|
"1:1": "1:1",
|
|
3117
3156
|
"Export issue": "이슈 내보내기",
|
|
3118
|
-
"PARTS_COMMENT_UNAVAILABLE: original part image required": "PARTS_COMMENT_UNAVAILABLE: 원본
|
|
3157
|
+
"PARTS_COMMENT_UNAVAILABLE: original part image required": "PARTS_COMMENT_UNAVAILABLE: 원본 파츠 이미지가 필요합니다",
|
|
3119
3158
|
"PARTS_REFERENCE_UNAVAILABLE: supply --painting to compare the original painting": "PARTS_REFERENCE_UNAVAILABLE: 원화 비교에는 --painting 입력이 필요해요",
|
|
3120
3159
|
"PARTS_COMMENT_STALE_SOURCE: reopen the bound source": "PARTS_COMMENT_STALE_SOURCE: 연결된 원본을 다시 열어 주세요",
|
|
3121
3160
|
"PARTS_COMMENT_STALE_SOURCE: original PNG changed": "PARTS_COMMENT_STALE_SOURCE: 원본 PNG가 변경됐어요",
|
|
@@ -3125,7 +3164,7 @@ export const koCatalog: Readonly<Record<string, string>> = {
|
|
|
3125
3164
|
"PARTS_COMMENT_CROP_LIMIT: native crop exceeds 16 million pixels": "PARTS_COMMENT_CROP_LIMIT: 네이티브 크롭이 1,600만 픽셀을 넘어요",
|
|
3126
3165
|
"Export JSON": "JSON 내보내기",
|
|
3127
3166
|
"PARTS_CAMERA_RANGE: native zoom outside supported range": "PARTS_CAMERA_RANGE: 네이티브 배율이 지원 범위 밖이에요",
|
|
3128
|
-
"Comments on this part: {count}": "이
|
|
3167
|
+
"Comments on this part: {count}": "이 파츠의 코멘트: {count}",
|
|
3129
3168
|
"COMMENT_CROP_STATE_UNAVAILABLE: stored crop cannot be read": "COMMENT_CROP_STATE_UNAVAILABLE: 저장된 크롭을 읽을 수 없어요",
|
|
3130
3169
|
"PARTS_COMMENT_NATIVE_CROP_TAMPERED: native crop differs from bound original": "PARTS_COMMENT_NATIVE_CROP_TAMPERED: 네이티브 크롭이 연결된 원본과 달라요",
|
|
3131
3170
|
"PARTS_VERDICT_READ: saved verdict cannot be read": "PARTS_VERDICT_READ: 저장된 판정을 읽을 수 없어요",
|
|
@@ -3136,13 +3175,20 @@ export const koCatalog: Readonly<Record<string, string>> = {
|
|
|
3136
3175
|
"Overlay": "오버레이",
|
|
3137
3176
|
"Part opacity": "파츠 불투명도",
|
|
3138
3177
|
"PARTS_COMPARISON_UNAVAILABLE: original painting required": "PARTS_COMPARISON_UNAVAILABLE: 원본 원화가 필요해요",
|
|
3139
|
-
"PARTS_COMPARISON_INVALID: part/overlay mode and opacity 0..1 required": "PARTS_COMPARISON_INVALID:
|
|
3178
|
+
"PARTS_COMPARISON_INVALID: part/overlay mode and opacity 0..1 required": "PARTS_COMPARISON_INVALID: 파츠/오버레이 모드와 0..1 불투명도가 필요합니다",
|
|
3140
3179
|
"PARTS_PAINT_FAILED: view could not be rendered; select the part to retry": "PARTS_PAINT_FAILED: 화면을 그리지 못했어요. 파츠를 선택해 다시 시도해 주세요",
|
|
3141
3180
|
"Assembled": "조립 보기",
|
|
3142
3181
|
"Visible": "표시",
|
|
3143
3182
|
"Show {name} in assembly": "조립 보기에서 {name} 표시",
|
|
3144
3183
|
"Assembly unavailable: atlas regions carry no rig placement.": "조립 불가: 아틀라스 영역에는 리그 배치 정보가 없어요.",
|
|
3145
3184
|
"Assembly unavailable: rig_size is not declared.": "조립 불가: rig_size가 선언되지 않았어요.",
|
|
3146
|
-
"Assembled package \u00b7 {count} visible parts. Selection and verdict remain per part.": "조립 패키지 ·
|
|
3147
|
-
"PARTS_COMMENT_UNAVAILABLE: select the individual part view to comment": "PARTS_COMMENT_UNAVAILABLE: 댓글을 쓰려면 개별
|
|
3185
|
+
"Assembled package \u00b7 {count} visible parts. Selection and verdict remain per part.": "조립 패키지 · 파츠 {count}개 표시. 선택과 판정은 파츠별로 유지돼요.",
|
|
3186
|
+
"PARTS_COMMENT_UNAVAILABLE: select the individual part view to comment": "PARTS_COMMENT_UNAVAILABLE: 댓글을 쓰려면 개별 파츠 보기로 전환해 주세요",
|
|
3187
|
+
"Mesh flags": "메시 플래그",
|
|
3188
|
+
"Part findings": "파츠 발견 사항",
|
|
3189
|
+
"Pair readings": "쌍 측정값",
|
|
3190
|
+
"Check evidence": "검사 근거",
|
|
3191
|
+
"Unclassified check rows": "미분류 검사 행",
|
|
3192
|
+
"Badges count only mesh flags and explicit part findings. Pair readings and check evidence are not counted.": "배지는 메시 플래그와 명시된 파츠 발견 사항만 세요. 쌍 측정값과 검사 근거는 세지 않아요.",
|
|
3193
|
+
"Missing or invalid row metadata: source-root rows remain unclassified and are not counted.": "행 메타데이터가 없거나 잘못됐어요. 소스·루트별 행은 미분류로 유지하고 세지 않아요.",
|
|
3148
3194
|
};
|
package/web/chest-editor.ts
CHANGED
|
@@ -214,6 +214,8 @@ export interface ChestEditor {active:()=>boolean;flashing:(side:BustSide)=>boole
|
|
|
214
214
|
mode:()=>ChestMode;
|
|
215
215
|
/** The landmark fields read as the producer's entry and derivation (Landmarks mode). */
|
|
216
216
|
landmarks:()=>LandmarkRead;
|
|
217
|
+
/** A different part has its own designation and no pointer gesture from the previous part. */
|
|
218
|
+
rebind:()=>void;
|
|
217
219
|
/** The point the next click places, for the overlay's highlight. */
|
|
218
220
|
armed:()=>LandmarkKey|null;
|
|
219
221
|
/** Hold a status line (null clears it); `log` is the producer's latest lines. */
|
|
@@ -365,6 +367,7 @@ export function bindChestEditor(host:ChestEditorHost):ChestEditor {
|
|
|
365
367
|
sync();
|
|
366
368
|
return {
|
|
367
369
|
active:()=>active,flashing:side=>flash.has(side),sync,mode,landmarks:()=>readLandmarks(read),armed:()=>{const l=readLandmarks(read);return nextLandmark(armed,'missing' in l?l.missing:[]);},
|
|
370
|
+
rebind:()=>{for(const pointer of [drag?.pointer,landmarkDrag?.pointer])if(pointer!==undefined&&host.pane.hasPointerCapture(pointer))host.pane.releasePointerCapture(pointer);drag=null;landmarkDrag=null;armed=null;notice=null;log.textContent='';log.hidden=true;delete host.pane.dataset.chestHover;sync();},
|
|
368
371
|
notify:(text,error=false,lines)=>{notice=text===null?null:{text,error};if(lines){log.textContent=lines.join('\n');log.hidden=!lines.length;log.scrollTop=log.scrollHeight;}sync();},
|
|
369
372
|
noticeText:()=>notice?.text??'',
|
|
370
373
|
rebuildState:(state)=>{busy=state.busy;apply.setAttribute('aria-busy',String(busy));reset.disabled=busy||!state.applied;gate();},
|
package/web/main.ts
CHANGED
|
@@ -18,7 +18,7 @@ import {bindDensityStrip,type DensityStripPanel,type DensityStripViewLike} from
|
|
|
18
18
|
import {densityField,densityPath} from '../src/density-strip.ts';
|
|
19
19
|
import {assertMeshPatch,countsText,meshApplyOutcome,meshPatchOps,setEntryValue,triangleAgreement,type MeshEntry} from '../src/mesh-entry.ts';
|
|
20
20
|
import {worstLine} from '../src/readings.ts';
|
|
21
|
-
import {chestOverlayPolygons,chestRegionRows,chestRowId,evaluateChestForm} from './chest-regions-tool.ts';
|
|
21
|
+
import {chestOverlayPolygons,chestInputIds,chestRegionRows,chestRowId,evaluateChestForm} from './chest-regions-tool.ts';
|
|
22
22
|
import {bindChestEditor,canvasToCrop,bustLabel,bustSides,chestPoseOffset,LANDMARKS,landmarkInputId,posedChestMapping,rowShape,type ChestEditor,type LandmarkKey} from './chest-editor.ts';
|
|
23
23
|
import {bindMeshEditor,meshEditSource,sha256Hex,type MeshEditor} from './mesh-editor.ts';
|
|
24
24
|
import {bindWeightsView,setupPoseMesh,type WeightsView} from './weights-view.ts';
|
|
@@ -29,7 +29,7 @@ import {bindClothPanel,type ClothPanel} from './cloth-panel.ts';
|
|
|
29
29
|
import {animationAppliedRecord,animationOutcomeLine,retargetAppliedRecord,retargetOutcomeLine,stripPendingAfter,type AnimationJobView,type AnimationRequestBody,type AnimationSourceOp,type StageChange,type AppliedAnimation,type AppliedRetarget,type RetargetJobView,type RetargetRequestBody} from './rebuild-client.ts';
|
|
30
30
|
import {bindRetargetPanel,type PoseMap,type RetargetPanel} from './retarget-panel.ts';
|
|
31
31
|
import type {RetargetFlags} from '../src/retarget.ts';
|
|
32
|
-
import {historyRow,isPatchJob,recordFor,refusedText,restoredOutcomeForJob,retargetStage,undoControl,type AppliedHistoryView,type UndoView,type AnyJobView,appliedRecord,deltaAppliedRecord,deltaOutcomeLine,chestSeed,designatedRegions,handoffText,landmarksRequest,noContourReason,seedLandmarks,makePatch,outcomeLine,patchAppliedRecord,patchOutcomeLine,pickBustPart,pickPart,runRebuild,seedFields,stageModel,type AppliedDelta,type AppliedPatch,type AppliedRecord,type DeltaJobView,type DeltaRequestBody,type ConfigPatch,type PatchJobView,type RebuildJobView,type RebuildRefusal,type RebuildRequestBody,type RebuildStatusView} from './rebuild-client.ts';
|
|
32
|
+
import {historyRow,isPatchJob,recordFor,refusedText,restoredOutcomeForJob,retargetStage,undoControl,type AppliedHistoryView,type UndoView,type AnyJobView,appliedRecord,deltaAppliedRecord,deltaOutcomeLine,chestPartFields,chestStatusForPart,chestSeed,designatedRegions,handoffText,landmarksRequest,noContourReason,seedLandmarks,makePatch,outcomeLine,patchAppliedRecord,patchOutcomeLine,pickBustPart,pickPart,runRebuild,seedFields,stageModel,type AppliedDelta,type AppliedPatch,type AppliedRecord,type DeltaJobView,type DeltaRequestBody,type ConfigPatch,type PatchJobView,type RebuildJobView,type RebuildRefusal,type RebuildRequestBody,type RebuildStatusView} from './rebuild-client.ts';
|
|
33
33
|
import {meshEditBinding,meshEditText,type MeshEditDocument} from '../src/mesh-edit.ts';
|
|
34
34
|
import {chestRegionsBinding,cropWorldMapping,type CropWorldMapping} from '../src/chest-regions.ts';
|
|
35
35
|
import {bindWorkspaceUI,selectedInspector,type WorkspaceUI} from './workspace-ui.ts';
|
|
@@ -123,7 +123,7 @@ let playbackIntent=0,desiredPlay=false,seekingControl=false;
|
|
|
123
123
|
let parts:PartExplorer|null=null;
|
|
124
124
|
let animationPanel:AnimationInspectionPanel|null=null;
|
|
125
125
|
let inspectionSourceState:'ready'|'pending'|'failed'='ready';
|
|
126
|
-
function refreshAnimationInspection(){if(inspectionSourceState!=='ready'){animationPanel?.unavailable(`ANIMATION_INSPECTION_SOURCE_${inspectionSourceState.toUpperCase()}: current model source is unavailable`);return;}animationPanel?.update(
|
|
126
|
+
function refreshAnimationInspection(){if(inspectionSourceState!=='ready'){animationPanel?.unavailable(`ANIMATION_INSPECTION_SOURCE_${inspectionSourceState.toUpperCase()}: current model source is unavailable`);return;}animationPanel?.update(time,duration);animationPanel?.model(partModel,player?.current??'');animationPanel?.update(time,duration);}
|
|
127
127
|
let overlays:RigOverlays|null=null;
|
|
128
128
|
let chestEditor:ChestEditor|null=null;
|
|
129
129
|
let meshEditor:MeshEditor|null=null;
|
|
@@ -875,7 +875,7 @@ function bind(): void {
|
|
|
875
875
|
} catch (error) { message(`Submission failed: ${errorText(error)}`, true); } finally { saving = false; updateSavedState(); }
|
|
876
876
|
};
|
|
877
877
|
// Saved browser defaults seed a new inspection; explicit links and source drafts restore over them.
|
|
878
|
-
viewDisposers.push(bindStageNav({model:!!data.manifest.model,setup:()=>showInspector('rig')}));
|
|
878
|
+
viewDisposers.push(bindStageNav({model:!!data.manifest.model,setup:()=>showInspector('rig'),draftBuild:()=>appliedOnStage?.buildId??'inspected',correction:openStageCorrection}));
|
|
879
879
|
workspace=bindWorkspaceUI({changed:fitCamera,defaultTheme:theme=>appearance?.set(theme),currentTheme:()=>appearance?.get()});
|
|
880
880
|
viewport.state.cameraSync=workspace.defaults().defaultCameraSync;input('camera-sync').checked=viewport.state.cameraSync;input('idle-repeat').checked=workspace.defaults().defaultIdleRepeat;
|
|
881
881
|
appearance=bindAppearance(select('settings-theme'),workspace.defaults().theme);
|
|
@@ -949,7 +949,7 @@ async function start(): Promise<void> {
|
|
|
949
949
|
// Checkpoints and reference fold away when the package supplies neither.
|
|
950
950
|
(el('package-context') as HTMLDetailsElement).open = data.manifest.checkpoints.length > 0 || data.manifest.references.length > 0;
|
|
951
951
|
const sourceFiles = el('source-files'); for (const file of data.manifest.authoring) { const a = document.createElement('a'); a.href = assetUrl(file.path); a.textContent = file.label; a.className = 'source-link'; a.target = '_blank'; a.rel = 'noopener'; sourceFiles.append(a); } if (!data.manifest.authoring.length) sourceFiles.textContent = 'No source files supplied';
|
|
952
|
-
populateChestBones(); bind(); parts=new PartExplorer(el('workspace-left'),el('selected-part'),previous=>{if(player&&inspectionSourceState==='ready')animationPanel?.capture(player,parts?.frame('single'));else animationPanel?.capture(null,undefined);weightsView?.refresh();redrawOverlay(true);meshEditor?.selectionChanged();const part=parts?.value();animationPanel?.fromParts(part?.slot??null);meshPanel?.select(part?.slot??null);requirementsPanel?.selectionChanged();renderDropNotices();if(part){viewport.state.activeCamera='rig';if(view==='reference')setView('rig');if(selectedInspector(document)!=='playback')showInspector('rig');renderCameraControls();}if(!viewport.state.cameraRestoring&&(previous?.side!==part?.side||previous?.slot!==part?.slot))cameraAction(()=>fitActiveCamera(part?'rig':availableCamera()));persistence?.save();},part=>{select('feedback-target-kind').value='slot';renderFeedbackTargets(true);input('feedback-target-name').value=part.slot;showInspector('feedback');}); animationPanel=new AnimationInspectionPanel({host:el('animation-inspection'),stage:el('rig-viewport'),project:(x,y)=>rigProject()(x,y),enabled:()=>inspectionSourceState==='ready'&&selectedInspector(document)==='playback',pause,preview:fn=>{animAdjust=fn;if(!player)return;player.adjust=composeAdjust(composeAdjust(composeAdjust(idleAdjust,dialAdjust),turnAdjust),animAdjust);if(!inDrawRig&&player.current&&!playing){player.seek(time);drawRig(()=>player!.draw());}},apply:ops=>applyAnimation(ops),reset:()=>resetAnimationBuild(),seek:exact=>{if(!Number.isFinite(exact)||exact<0||exact>duration){message('KEY_TIME_OUT_OF_DOMAIN: no substitute time was used.',true);return;}seekMarker(animation,exact,'Stored key');},select:value=>{const slot=value?.kind==='slot'?value.name:null;if((parts?.value()?.slot??null)!==slot)parts?.select(slot?{side:'single',slot,mode:parts?.value()?.mode??'context'}:null);parts?.highlightBone(value?.kind==='bone'?value.name:null);redrawOverlay(false);}});viewDisposers.push(()=>animationPanel?.dispose()); updateStripControls(); stripStatus('Choose the entered start–end frames or all feedback ranges to download. Unsubmitted feedback is included; exporting does not submit the review.'); renderFeedbackTargets(true); renderFeedbackRange(); renderCheckpoints(); renderProposals(); renderProvenance(); updateSavedState(); renderCues(); initReport();
|
|
952
|
+
populateChestBones(); bind(); parts=new PartExplorer(el('workspace-left'),el('selected-part'),previous=>{if(player&&inspectionSourceState==='ready')animationPanel?.capture(player,parts?.frame('single'));else animationPanel?.capture(null,undefined);weightsView?.refresh();redrawOverlay(true);meshEditor?.selectionChanged();const part=parts?.value();if(stageCorrectionPart&&!stageCorrectionRebinding&&(part?.slot??null)!==stageCorrectionPart){stageCorrectionPart=null;document.getElementById('stage-draft-label')?.remove();}animationPanel?.fromParts(part?.slot??null);meshPanel?.select(part?.slot??null);requirementsPanel?.selectionChanged();renderDropNotices();if(part){viewport.state.activeCamera='rig';if(view==='reference')setView('rig');if(selectedInspector(document)!=='playback')showInspector('rig');renderCameraControls();}if(!viewport.state.cameraRestoring&&(previous?.side!==part?.side||previous?.slot!==part?.slot))cameraAction(()=>fitActiveCamera(part?'rig':availableCamera()));persistence?.save();},part=>{select('feedback-target-kind').value='slot';renderFeedbackTargets(true);input('feedback-target-name').value=part.slot;showInspector('feedback');}); animationPanel=new AnimationInspectionPanel({host:el('animation-inspection'),stage:el('rig-viewport'),project:(x,y)=>rigProject()(x,y),enabled:()=>inspectionSourceState==='ready'&&selectedInspector(document)==='playback',pause,preview:fn=>{animAdjust=fn;if(!player)return;player.adjust=composeAdjust(composeAdjust(composeAdjust(idleAdjust,dialAdjust),turnAdjust),animAdjust);if(!inDrawRig&&player.current&&!playing){player.seek(time);drawRig(()=>player!.draw());}},apply:ops=>applyAnimation(ops),reset:()=>resetAnimationBuild(),seek:exact=>{if(!Number.isFinite(exact)||exact<0||exact>duration){message('KEY_TIME_OUT_OF_DOMAIN: no substitute time was used.',true);return;}seekMarker(animation,exact,'Stored key');},select:value=>{const slot=value?.kind==='slot'?value.name:null;if((parts?.value()?.slot??null)!==slot)parts?.select(slot?{side:'single',slot,mode:parts?.value()?.mode??'context'}:null);parts?.highlightBone(value?.kind==='bone'?value.name:null);redrawOverlay(false);}});viewDisposers.push(()=>animationPanel?.dispose()); updateStripControls(); stripStatus('Choose the entered start–end frames or all feedback ranges to download. Unsubmitted feedback is included; exporting does not submit the review.'); renderFeedbackTargets(true); renderFeedbackRange(); renderCheckpoints(); renderProposals(); renderProvenance(); updateSavedState(); renderCues(); initReport();
|
|
953
953
|
const requestedId = new URLSearchParams(location.search).get('checkpoint'),initial=initialReviewSelection(data.manifest,requestedId,data.explicitReference?.id,data.initialAnimation??undefined),first=initial.checkpoint;
|
|
954
954
|
rigInput=data.manifest.model?{state:'pending'}:{state:'absent'};renderLayout();
|
|
955
955
|
if(initial.referenceId){select('reference-select').value=initial.referenceId;await showReference(initial.referenceId);}
|
|
@@ -1013,7 +1013,7 @@ async function playPreview():Promise<void> {
|
|
|
1013
1013
|
function localDraft():boolean{return !!comments?.draft()||dirty||!!input('feedback-summary').value.trim()||!!input('feedback-start').value.trim()||!!input('feedback-end').value.trim()||!!select('feedback-category').value||!!input('feedback-target-name').value.trim()&&input('feedback-target-name').value!==data.manifest.id;}
|
|
1014
1014
|
function controlState():ControlInspection {
|
|
1015
1015
|
const box=assets?.stage??player?.bounds(),center=box?{x:box.x+box.width/2,y:box.y+box.height/2}:null;
|
|
1016
|
-
return {part:parts?.value()??null,partGeneration:parts?.observation()?.generation??null,view:numericView(),theme:appearance?.get()??'system',layout:'auto',effectiveLayout:el('stage-layout').dataset.orientation==='vertical'?'column':'row',cameras:{rig:{zoom:player?viewport.state.zoom:1,pan:{x:center&&viewport.state.cameraCenter?(center.x-viewport.state.cameraCenter.x)*viewport.state.rigScale:0,y:center&&viewport.state.cameraCenter?(viewport.state.cameraCenter.y-center.y)*viewport.state.rigScale:0}},reference:{zoom:referenceSize?viewport.state.referenceZoom:1,pan:{x:referenceSize&&viewport.state.referenceCenter?(referenceSize.width/2-viewport.state.referenceCenter.x)*viewport.state.referenceScale:0,y:referenceSize&&viewport.state.referenceCenter?(referenceSize.height/2-viewport.state.referenceCenter.y)*viewport.state.referenceScale:0}}},animation:animation||null,time
|
|
1016
|
+
return {part:parts?.value()??null,partGeneration:parts?.observation()?.generation??null,view:numericView(),theme:appearance?.get()??'system',layout:'auto',effectiveLayout:el('stage-layout').dataset.orientation==='vertical'?'column':'row',cameras:{rig:{zoom:player?viewport.state.zoom:1,pan:{x:center&&viewport.state.cameraCenter?(center.x-viewport.state.cameraCenter.x)*viewport.state.rigScale:0,y:center&&viewport.state.cameraCenter?(viewport.state.cameraCenter.y-center.y)*viewport.state.rigScale:0}},reference:{zoom:referenceSize?viewport.state.referenceZoom:1,pan:{x:referenceSize&&viewport.state.referenceCenter?(referenceSize.width/2-viewport.state.referenceCenter.x)*viewport.state.referenceScale:0,y:referenceSize&&viewport.state.referenceCenter?(referenceSize.height/2-viewport.state.referenceCenter.y)*viewport.state.referenceScale:0}}},animation:animation||null,time,playing,loop:canRepeatIdle()?'idle':'off',layers:{images:!!player&&layers.images,meshes:!!player&&layers.mesh,bones:!!player&&layers.bones},ready:!!data,seeking:seekingControl||!!video?.seeking||!!persistence?.restoring(),dirty:localDraft(),busy:saving||stripBusy||!!persistence?.restoring(),feedbackEligible:!persistence?.restoring(),comparison:controlComparison(layoutEligibility()),capabilities:{camera:!!player,referenceCamera:!!referenceSize,animation:!!player,time:duration>0,playback:duration>0,layers:{images:!!player,meshes:!!player,bones:!!player}}};
|
|
1017
1017
|
}
|
|
1018
1018
|
async function applyControl(command:ControlCommand,signal:AbortSignal):Promise<void> {
|
|
1019
1019
|
if(signal.aborted)throw new Error('CONTROL_SUPERSEDED');
|
|
@@ -1075,7 +1075,8 @@ async function decodedControlTime(media:HTMLVideoElement,target:number,signal:Ab
|
|
|
1075
1075
|
}
|
|
1076
1076
|
function numericView():ControlView {return viewport.numericView();}
|
|
1077
1077
|
function inspectionBinding():InspectionBinding{return {mode:'single',sourceHash:data.sourceHash,rigs:[data.reviewedSource.rig?.sha256??null]};}
|
|
1078
|
-
|
|
1078
|
+
// Persist the displayed inspection clock; the runtime clock accumulates across idle loops for physics.
|
|
1079
|
+
function inspectionBookmark():InspectionBookmark {return {schema:'rig-review-inspection/1',binding:inspectionBinding(),animation:animation||null,time,theme:appearance?.get()??'system',layers:{images:layers.images,meshes:layers.mesh,bones:layers.bones},view:numericView(),selection:{...(turnPad?{turn:turnPad.snapshot()}:{}),part:parts?.value()??null,view,checkpoint:checkpoint?.id??null,reference:select('reference-select').value||null,person:selectedPerson||null,inspector:selectedInspector()??'view',partSet:select('part-set').disabled?null:select('part-set').value,axis:axisInspection?{id:select('axis-select').value,value:Number(input('axis-value').value)}:null}};}
|
|
1079
1080
|
async function restoreInspection(bookmark:InspectionBookmark,signal:AbortSignal,preserveSeconds=false):Promise<void> {
|
|
1080
1081
|
await restoreTransaction(()=>prepareInspection(bookmark,signal),()=>({bookmark:inspectionBookmark(),inputs:captureInputs()}),()=>applyInspection(bookmark,signal,preserveSeconds),async previous=>{await applyInspection(previous.bookmark,new AbortController().signal);restoreInputs(previous.inputs);renderFeedbackRange();});
|
|
1081
1082
|
}
|
|
@@ -1426,13 +1427,30 @@ async function applyMeshDelta(doc:MeshEditDocument,line:(text:string)=>void):Pro
|
|
|
1426
1427
|
}catch(error){const text=`REBUILD_FAILED: ${errorText(error)}`;message(text,true);return {built:false,text,error:true};}
|
|
1427
1428
|
finally{rebuildBusy=false;rebuildState();}
|
|
1428
1429
|
}
|
|
1430
|
+
let chestFormPart:string|null=null;
|
|
1431
|
+
/** Rebinding is explicit: defaults and both modes belong to the new part, while reopening the same part keeps edits. */
|
|
1432
|
+
function rebindChestPart(status:RebuildStatusView,part:string):void {
|
|
1433
|
+
if(chestFormPart===part)return;
|
|
1434
|
+
const next=chestPartFields(status,part);
|
|
1435
|
+
const ids=[...chestInputIds,...LANDMARKS.flatMap(({key})=>['x','y'].map(axis=>`lm-${key}-${axis}`)),'lm-alpha','lm-clearance','lm-bone_r','lm-bone_l','bust-mode'];
|
|
1436
|
+
for(const id of ids){const node=document.getElementById(id) as HTMLInputElement|HTMLSelectElement|HTMLTextAreaElement|null;if(!node)continue;
|
|
1437
|
+
if(node instanceof HTMLInputElement){node.value=node.defaultValue;node.checked=node.defaultChecked;}
|
|
1438
|
+
else if(node instanceof HTMLTextAreaElement)node.value=node.defaultValue;
|
|
1439
|
+
else node.value=[...node.options].find(option=>option.defaultSelected)?.value??node.options[0]?.value??'';
|
|
1440
|
+
}
|
|
1441
|
+
for(const [id,value] of Object.entries(next.fields)){const node=document.getElementById(id) as HTMLInputElement|HTMLSelectElement|null;if(!node)continue;if(node instanceof HTMLInputElement&&node.type==='checkbox')node.checked=value==='true';else node.value=value;}
|
|
1442
|
+
input('bust-mode').value=next.mode;chestFormPart=part;chestEditor?.rebind();
|
|
1443
|
+
const refusal=next.seed.refusals.join(' · ');chestEditor?.notify(refusal||null,!!refusal,next.seed.refusals);
|
|
1444
|
+
el('chest-regions').dispatchEvent(new Event('input',{bubbles:true}));
|
|
1445
|
+
}
|
|
1429
1446
|
/** `GET /api/rebuild`: whether Apply can run, and the producer config's regions to start an untouched editor from. */
|
|
1430
1447
|
async function loadRebuildStatus():Promise<RebuildStatusView|null> {
|
|
1431
1448
|
try{rebuildStatus=await api<RebuildStatusView>('/api/rebuild');}catch(error){rebuildStatus=null;const reason=`REBUILD_STATUS_UNAVAILABLE: ${errorText(error)}`;chestEditor?.notify(reason,true);animationPanel?.loadSource(null,reason);return null;}
|
|
1432
1449
|
const seed={...(seedFields(rebuildStatus,chestField)??{}),...(seedLandmarks(rebuildStatus,chestField)??{})};
|
|
1433
1450
|
if(Object.keys(seed).length){for(const [id,value] of Object.entries(seed)){const node=document.getElementById(id) as HTMLInputElement|HTMLSelectElement|HTMLTextAreaElement|null;if(!node)continue;if(node instanceof HTMLInputElement&&node.type==='checkbox')node.checked=value==='true';else node.value=value;}el('chest-regions').dispatchEvent(new Event('input',{bubbles:true}));}
|
|
1434
1451
|
// #315: a config polygon the editor cannot read as an ellipse is named, never shown as an empty row.
|
|
1435
|
-
|
|
1452
|
+
chestFormPart??=chestSeed(rebuildStatus).part;
|
|
1453
|
+
const refused=chestSeed(chestStatusForPart(rebuildStatus,chestFormPart)).refusals;if(refused.length)chestEditor?.notify(refused.join(' · '),true,refused);
|
|
1436
1454
|
// #342: a rig with no contour mesh disables the chest tools before use and says why in words about the rig.
|
|
1437
1455
|
const noContour=noContourReason(rebuildStatus);chestEditor?.unavailable(noContour?.text??null);
|
|
1438
1456
|
if(noContour)chestEditor?.notify(noContour.text,false,noContour.lines);else if(!rebuildStatus.available)chestEditor?.notify(rebuildStatus.reason,!rebuildStatus.viewOnly);
|
|
@@ -1468,7 +1486,7 @@ function chestPartForNotice():string|null {
|
|
|
1468
1486
|
const read=chestEditor.landmarks();
|
|
1469
1487
|
return 'derived' in read?pickBustPart(rebuildStatus,read.derived.regions):pickBustPart(rebuildStatus,[]);
|
|
1470
1488
|
}
|
|
1471
|
-
const designated=designatedRegions(chestField,rebuildStatus?chestSeed(rebuildStatus):null);
|
|
1489
|
+
const designated=designatedRegions(chestField,rebuildStatus?chestSeed(chestStatusForPart(rebuildStatus,chestFormPart)):null);
|
|
1472
1490
|
return 'regions' in designated?pickPart(rebuildStatus,designated.regions):rebuildStatus.parts.length===1?rebuildStatus.parts[0]!.name:null;
|
|
1473
1491
|
}
|
|
1474
1492
|
function renderDropNotices():void {
|
|
@@ -1603,7 +1621,9 @@ async function undoApply():Promise<UndoView|null> {
|
|
|
1603
1621
|
async function applyRebuild():Promise<void> {
|
|
1604
1622
|
if(rebuildBusy)return;
|
|
1605
1623
|
if(readOnly){chestEditor?.notify(readOnly,true);return;}
|
|
1606
|
-
const
|
|
1624
|
+
const loadedStatus=rebuildStatus??await loadRebuildStatus();
|
|
1625
|
+
const status=loadedStatus?chestStatusForPart(loadedStatus,stageCorrectionPart):loadedStatus;
|
|
1626
|
+
if(stageCorrectionPart&&parts?.value()?.slot!==stageCorrectionPart){chestEditor?.notify('STAGE_DRAFT_MISMATCH',true);return;}
|
|
1607
1627
|
if(!status||!status.available||!status.inputs){const noContour=status?noContourReason(status):null,reason=noContour?.text??status?.reason??'REBUILD_STATUS_UNAVAILABLE';chestEditor?.notify(reason,!noContour,noContour?.lines??[reason]);message(reason,!noContour);return;}
|
|
1608
1628
|
let part:string,body:RebuildRequestBody;const lines:string[]=[];
|
|
1609
1629
|
if(chestEditor?.mode()==='landmarks'){
|
|
@@ -2101,7 +2121,9 @@ async function resetRebuild(world:StageWorld|null=null):Promise<void> {
|
|
|
2101
2121
|
*/
|
|
2102
2122
|
let stageSource:{url:string;prefix:string;hash:string}|null=null;
|
|
2103
2123
|
async function swapRig(modelUrl:string,prefix:string,sha256:string,world:StageWorld|null=null):Promise<void> {
|
|
2104
|
-
|
|
2124
|
+
stageCorrectionRebinding++;try{
|
|
2125
|
+
const keepPart=stageCorrectionPart?parts?.value():null;
|
|
2126
|
+
const keepAnimation=animation,keepTime=time,wasPlaying=playing,keepSet=select('part-set').disabled?'':select('part-set').value;
|
|
2105
2127
|
inspectionSourceState='pending';partModel=null;pause();refreshAnimationInspection();
|
|
2106
2128
|
const next=await loadModel({modelUrl,setsUrl:null,resolvePage:(name,url)=>{const target=new URL(name,url);if(target.origin!==location.origin||!target.pathname.startsWith(prefix))throw new Error(`Model page escapes its build: ${name}`);return target.href;}}).catch(error=>{inspectionSourceState='failed';refreshAnimationInspection();throw error;});
|
|
2107
2129
|
physicsPanel?.clearPreview();
|
|
@@ -2122,10 +2144,12 @@ async function swapRig(modelUrl:string,prefix:string,sha256:string,world:StageWo
|
|
|
2122
2144
|
// when none was staged — and nothing claims a clip the stage is not drawing.
|
|
2123
2145
|
else{drawRig(()=>player!.draw());animation='';duration=0;time=0;select('animation-select').value='';renderTransport();renderCues();renderIdle();}
|
|
2124
2146
|
if(environmentApplied())applyEnvironment();
|
|
2147
|
+
if(keepPart&&parts&&inspectionSourceState==='ready'){try{parts.select({side:keepPart.side,slot:keepPart.slot,mode:keepPart.mode});}catch{message('STAGE_DRAFT_MISMATCH',true);}}
|
|
2125
2148
|
updateChestMapping();fitCamera();
|
|
2126
2149
|
// The preview (#104) drives the new player once its bone setups are read (an idle Apply cleared it first).
|
|
2127
2150
|
stageDocumentSet=true;void loadModelDocument(modelUrl,sha256).then(loaded=>{if(loaded.ok&&stageModelHash===sha256)idlePanel?.model(boneSetup(loaded.document));});
|
|
2128
2151
|
if(wasPlaying)void playPreview();
|
|
2152
|
+
}finally{stageCorrectionRebinding--;}
|
|
2129
2153
|
}
|
|
2130
2154
|
/**
|
|
2131
2155
|
* Mesh Apply (#106): the pending `meshes.<part>` entry becomes one config patch — `replace /meshes/<part>` and nothing
|
|
@@ -2286,11 +2310,33 @@ function setupComments():void {
|
|
|
2286
2310
|
comments=bindStageComments({toolbar:el('stage-comment').parentElement!,viewports:{rig:el('rig-viewport'),reference:el('reference-viewport')},
|
|
2287
2311
|
pose:view=>{
|
|
2288
2312
|
if(view!=='rig'&&view!=='reference')return null;const workspaceMode=document.querySelector<HTMLElement>('[data-mode][aria-pressed="true"]')?.dataset.mode;if(workspaceMode!=='rig'&&workspaceMode!=='playback')return null;const camera=numericView().cameras[view],pane=el(view+'-viewport');if(!camera||pane.clientWidth<=0||pane.clientHeight<=0)return null;
|
|
2289
|
-
const renderer=player?.renderer;const current=
|
|
2313
|
+
const renderer=player?.renderer;const current=time,index=frameAtTime(activeFrameClock(),current),referenceId=view==='reference'?select('reference-select').value||null:null,referenceHash=referenceId?data.referenceHashes?.[referenceId]??(data.explicitReference?.id===referenceId?data.explicitReference.sha256:null):null;
|
|
2290
2314
|
return {mode:workspaceMode==='playback'?'animate':'setup',capture:{pane,root:view==='rig'?el('rig-root'):undefined,images:view==='reference'||layers.images,canvas:view==='rig'&&renderer instanceof CanvasRenderer?renderer.canvas:undefined,backend:renderer instanceof CanvasRenderer?renderer.backendActive:renderer?.meshBackendActive??'canvas2d'},camera,frame:index===null?null:{index,basis:'producer'},...(index===null?{timeBasis:timeOnlyBasis}:{}),time:current,animation:animation||null,turn:turnPad?.snapshot()??null,sourceHash:data.sourceHash,modelHash:view==='reference'?null:stageModelHash,referenceHash,referenceId,rig:data.manifest.id,...(view==='reference'?{media:video??el('reference-content').querySelector('img')??undefined}:{posed:parts?.frame('single'),assets:assets??undefined})} as CommentPose;
|
|
2291
2315
|
},
|
|
2292
|
-
pause:async()=>{const running=playing||!!video&&!video.paused;pause();if(running&&video&&video.readyState>=1){seekingControl=true;try{await inspectControlTime(
|
|
2316
|
+
pause:async()=>{const running=playing||!!video&&!video.paused;pause();if(running&&video&&video.readyState>=1){seekingControl=true;try{await inspectControlTime(time,new AbortController().signal);}finally{seekingControl=false;}}if(turnPad)turnPad.restore({...turnPad.snapshot(),held:true},false);},bookmark:inspectionBookmark,restore:(b,timed)=>restoreInspection(parseBookmark(b,inspectionBinding()),new AbortController().signal,!!timed),feedback:()=>session.feedback,
|
|
2293
2317
|
locked:id=>!!submittedBaseline?.updatedAt&&submittedBaseline.feedback.some(f=>f.id===id),add:f=>session.feedback.push(f),changed:()=>{markDirty();renderProposals();persistence?.save();},error:value=>message(value,true),
|
|
2294
2318
|
refusal:commentCaptureRefusal,blocked:()=>saving||!!persistence?.restoring()||seekingControl||!!video?.seeking||!!rebuildBusy||!!appliedOnStage,shortcutBlocked:()=>!!meshEditor?.active()
|
|
2295
2319
|
});
|
|
2296
2320
|
}
|
|
2321
|
+
|
|
2322
|
+
/** Open the existing precision instruments only after re-reading the same displayed draft binding. */
|
|
2323
|
+
let stageCorrectionPart:string|null=null,stageCorrectionRebinding=0;
|
|
2324
|
+
async function openStageCorrection(request:{part:string;sourceHash:string;buildId:string;instrument:string}):Promise<void>{
|
|
2325
|
+
const buildId=appliedOnStage?.buildId??'inspected';
|
|
2326
|
+
if(request.buildId!==buildId)throw new Error('STAGE_DRAFT_STALE');
|
|
2327
|
+
const data=await api<{sourceHash:string;draft?:{buildId:string;mappings:{part:string;slot:string;skin:string;attachment:string}[]}}>('/api/stage-parts',{headers:{'X-Review-Stage-Build':buildId}});
|
|
2328
|
+
const mapping=data.draft?.mappings.find(m=>m.part===request.part);
|
|
2329
|
+
if(!mapping||data.sourceHash!==request.sourceHash||data.draft?.buildId!==buildId||mapping.slot!==mapping.part)throw new Error('STAGE_DRAFT_MISMATCH');
|
|
2330
|
+
pause();seek(0);showInspector('rig');parts?.select({side:'single',slot:mapping.slot,mode:'context'});meshPanel?.select(mapping.part);
|
|
2331
|
+
const identity=parts?.value()?.identity;if(!identity||identity.skin!==mapping.skin||identity.attachment!==mapping.attachment)throw new Error('STAGE_DRAFT_MISMATCH');
|
|
2332
|
+
const status=rebuildStatus??await loadRebuildStatus();
|
|
2333
|
+
if(!status)throw new Error('REBUILD_STATUS_UNAVAILABLE');
|
|
2334
|
+
if(request.instrument==='chest'&&!status.parts.some(part=>part.name===mapping.part))throw new Error(`REBUILD_PART_NOT_CONTOUR: ${mapping.part}`);
|
|
2335
|
+
rebindChestPart(status,mapping.part);
|
|
2336
|
+
stageCorrectionPart=mapping.part;
|
|
2337
|
+
let label=document.getElementById('stage-draft-label');if(!label){label=document.createElement('p');label.id='stage-draft-label';label.setAttribute('data-i18n','Draft rig · structure evidence only');document.querySelector('.viewbar')?.prepend(label);}label.textContent=tr('Draft rig · structure evidence only');
|
|
2338
|
+
inspectorBlocks?.select('rig',request.instrument==='chest'?'chest-regions':request.instrument==='mesh'?'mesh-panel':'modeling-tools');
|
|
2339
|
+
if(request.instrument==='chest'&&button('chest-edit').getAttribute('aria-pressed')!=='true')button('chest-edit').click();
|
|
2340
|
+
if(request.instrument==='delta'&&button('mesh-edit').getAttribute('aria-pressed')!=='true')button('mesh-edit').click();
|
|
2341
|
+
message(tr('Draft rig · structure evidence only')+tr(` · ${mapping.part} · rig-parts remesh ${request.instrument==='delta'?'--delta':'--mesh'}`));
|
|
2342
|
+
}
|
package/web/parts-flags.ts
CHANGED
|
@@ -7,7 +7,7 @@ type Params = Readonly<Record<string, string | number>>;
|
|
|
7
7
|
export type Translate = (key: string, params?: Params) => string;
|
|
8
8
|
export type LabelledFlag =
|
|
9
9
|
| { kind: 'faint'; item: string; art: number; maxAlpha: number; box: readonly [number, number, number, number] }
|
|
10
|
-
| { kind: 'check'; item: string; path: string; root: string; status: string | null; entry: Readonly<Record<string, unknown
|
|
10
|
+
| { kind: 'check'; item: string; path: string; root: string; status: string | null; entry: Readonly<Record<string, unknown>>; classification?: 'part' | 'pair' | 'evidence' | 'unclassified' };
|
|
11
11
|
|
|
12
12
|
const num = (v: unknown): v is number => typeof v === 'number' && Number.isFinite(v);
|
|
13
13
|
const str = (v: unknown): v is string => typeof v === 'string';
|
|
@@ -38,3 +38,11 @@ function checkReadings(flag: Extract<LabelledFlag, { kind: 'check' }>, t: Transl
|
|
|
38
38
|
}
|
|
39
39
|
return t('Check line {path}', { path: flag.path });
|
|
40
40
|
}
|
|
41
|
+
|
|
42
|
+
/** Presentation only: verdict/2 keeps its original producer IDs and hash binding. */
|
|
43
|
+
export function readingGroup(flag: LabelledFlag): 'mesh' | 'part' | 'pair' | 'evidence' | 'unclassified' {
|
|
44
|
+
return flag.kind === 'faint' ? 'mesh' : flag.classification ?? 'unclassified';
|
|
45
|
+
}
|
|
46
|
+
export function countedFlag(flag: LabelledFlag): boolean {
|
|
47
|
+
return flag.kind === 'faint' || readingGroup(flag) === 'part';
|
|
48
|
+
}
|
package/web/parts.css
CHANGED
|
@@ -14,13 +14,15 @@ body{margin:0;background:var(--bg);color:var(--text);font:13px/1.4 system-ui,-ap
|
|
|
14
14
|
.pv-side{border-left:1px solid var(--line)}
|
|
15
15
|
h2{font-size:11px;letter-spacing:.06em;color:var(--muted);margin:4px 0 8px}
|
|
16
16
|
#pv-items{list-style:none;margin:0;padding:0}
|
|
17
|
-
#pv-items li
|
|
17
|
+
#pv-items li{display:flex;align-items:center;flex-wrap:nowrap;gap:4px}
|
|
18
|
+
#pv-items li>label{display:flex;flex:none;align-items:center}
|
|
19
|
+
#pv-items li button{min-width:0;flex:1;white-space:nowrap;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center;text-align:left;border:0;background:none;color:inherit;padding:4px 6px;border-radius:5px;cursor:pointer;font:inherit}
|
|
18
20
|
#pv-items li button[aria-current="true"]{background:color-mix(in srgb,var(--accent) 18%,transparent)}
|
|
19
21
|
.pv-name{grid-column:1;grid-row:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
20
|
-
.pv-badge{grid-column:
|
|
22
|
+
.pv-badge{grid-column:3;grid-row:1;font-size:10px;padding:0 5px;border-radius:8px;border:1px solid var(--line);color:var(--muted)}
|
|
21
23
|
.pv-badge[data-outcome="clean"]{color:var(--clean);border-color:var(--clean)}
|
|
22
24
|
.pv-badge[data-outcome="flagged"]{color:var(--flag);border-color:var(--flag)}
|
|
23
|
-
.pv-count{grid-column:
|
|
25
|
+
.pv-count{grid-column:2;grid-row:1;font-size:10px;color:var(--muted);white-space:nowrap}
|
|
24
26
|
.pv-stage{display:flex;flex-direction:column;min-width:0;min-height:0}
|
|
25
27
|
.pv-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:8px 12px;border-bottom:1px solid var(--line)}
|
|
26
28
|
.pv-field{display:flex;align-items:center;gap:5px}
|
|
@@ -92,3 +94,10 @@ main{position:relative}.toolbar{anchor-name:--stage-comment-bar}#stage-comment{w
|
|
|
92
94
|
.pv-comparison{display:flex;flex-wrap:wrap;align-items:center;gap:12px}#pv-opacity{width:100px}
|
|
93
95
|
|
|
94
96
|
.pv-overlay canvas{position:absolute;left:0;top:0;pointer-events:none}
|
|
97
|
+
|
|
98
|
+
/* Draft correction tools wrap independently of the raster viewport and compact part list. */
|
|
99
|
+
#pv-corrections{flex:none;padding:8px 12px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
|
|
100
|
+
#pv-corrections p{margin:0 0 8px}
|
|
101
|
+
#pv-corrections p:last-child{margin:8px 0 0;color:var(--muted)}
|
|
102
|
+
#pv-corrections button{font:inherit;color:inherit;background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:5px 9px;margin:0 6px 4px 0;cursor:pointer}
|
|
103
|
+
#reference-empty{padding:30px 12px 12px;color:var(--muted);overflow-wrap:anywhere}
|
package/web/parts.html
CHANGED
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
<label class="pv-field"><input type="checkbox" id="pv-alpha" data-pv-alpha> Alpha only</label>
|
|
17
17
|
<label class="pv-field" id="pv-footprint-control"><input type="checkbox" id="pv-footprints" data-pv-footprints> Footprints of parts in front</label>
|
|
18
18
|
<span id="pv-comparison" class="pv-comparison" hidden>
|
|
19
|
-
<span class="pv-field">Painting comparison <span class="pv-group" role="group" aria-label="Painting comparison"><button type="button" data-pv-comparison="part" aria-pressed="true">Part</button><button type="button" data-pv-comparison="overlay" aria-pressed="false">Overlay</button></span></span>
|
|
19
|
+
<span class="pv-field">Painting comparison <span class="pv-group" role="group" aria-label="Painting comparison"><button type="button" data-pv-comparison="part" aria-pressed="true">Part</button><button type="button" data-pv-comparison="overlay" aria-pressed="false">Overlay</button><button type="button" data-pv-comparison="difference" aria-pressed="false">Difference</button></span></span>
|
|
20
20
|
<label class="pv-field" id="pv-opacity-control" hidden>Part opacity <input type="range" id="pv-opacity" min="0" max="1" step="0.001" value="0.5"><output id="pv-opacity-value">50.0%</output></label>
|
|
21
|
+
<label class="pv-field" id="pv-threshold-control" hidden>Threshold <input type="number" id="pv-threshold" min="0" max="255" step="1" value="0"></label>
|
|
21
22
|
</span>
|
|
22
23
|
<span class="pv-group" role="group" aria-label="Atlas view" id="pv-atlas-switch" hidden><button type="button" data-pv-view="item" aria-pressed="true">Region</button><button type="button" data-pv-view="page" aria-pressed="false">Pages</button></span>
|
|
23
24
|
</div>
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
<p id="pv-comment-count" role="status"></p>
|
|
36
37
|
<label class="pv-label" for="pv-note">Note</label><textarea id="pv-note" rows="4" maxlength="10000"></textarea>
|
|
37
38
|
<label class="pv-label" for="pv-overall">Sign-off</label><select id="pv-overall"><option value="pending">Pending</option><option value="approved">Approved</option><option value="changes-requested">Changes requested</option></select>
|
|
39
|
+
<button id="pv-approve-all" type="button">Approve all</button>
|
|
38
40
|
<button id="pv-save" type="button" class="pv-primary">Save sign-off</button>
|
|
39
41
|
<span><button id="pv-export-json" type="button">Export JSON</button><button id="pv-export-issue" type="button">Export issue</button></span>
|
|
40
42
|
<p id="pv-save-status" class="pv-subtle" role="status"></p>
|