@things-factory/figure-viewer 0.0.0-stage → 10.1.155
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/client/capability-rung.ts +22 -0
- package/client/controls.ts +54 -0
- package/client/detail-facts.ts +87 -0
- package/client/detail-motion.ts +11 -0
- package/client/figure-asset-viewer.ts +284 -0
- package/client/figure-facts-list.ts +59 -0
- package/client/figure-thumb-mark.ts +34 -0
- package/client/figure-view.ts +151 -0
- package/client/index.ts +14 -0
- package/client/preview-model.ts +89 -0
- package/client/side-panel-styles.ts +374 -0
- package/client/tsconfig.json +19 -0
- package/dist-client/capability-rung.d.ts +5 -0
- package/dist-client/capability-rung.js +16 -0
- package/dist-client/capability-rung.js.map +1 -0
- package/dist-client/controls.d.ts +28 -0
- package/dist-client/controls.js +28 -0
- package/dist-client/controls.js.map +1 -0
- package/dist-client/detail-facts.d.ts +37 -0
- package/dist-client/detail-facts.js +58 -0
- package/dist-client/detail-facts.js.map +1 -0
- package/dist-client/detail-motion.d.ts +6 -0
- package/dist-client/detail-motion.js +9 -0
- package/dist-client/detail-motion.js.map +1 -0
- package/dist-client/figure-asset-viewer.d.ts +51 -0
- package/dist-client/figure-asset-viewer.js +313 -0
- package/dist-client/figure-asset-viewer.js.map +1 -0
- package/dist-client/figure-facts-list.d.ts +17 -0
- package/dist-client/figure-facts-list.js +63 -0
- package/dist-client/figure-facts-list.js.map +1 -0
- package/dist-client/figure-thumb-mark.d.ts +12 -0
- package/dist-client/figure-thumb-mark.js +42 -0
- package/dist-client/figure-thumb-mark.js.map +1 -0
- package/dist-client/figure-view.d.ts +117 -0
- package/dist-client/figure-view.js +78 -0
- package/dist-client/figure-view.js.map +1 -0
- package/dist-client/index.d.ts +10 -0
- package/dist-client/index.js +15 -0
- package/dist-client/index.js.map +1 -0
- package/dist-client/preview-model.d.ts +54 -0
- package/dist-client/preview-model.js +79 -0
- package/dist-client/preview-model.js.map +1 -0
- package/dist-client/side-panel-styles.d.ts +27 -0
- package/dist-client/side-panel-styles.js +374 -0
- package/dist-client/side-panel-styles.js.map +1 -0
- package/dist-client/tsconfig.tsbuildinfo +1 -0
- package/dist-server/index.d.ts +1 -0
- package/dist-server/index.js +3 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/tsconfig.tsbuildinfo +1 -0
- package/package.json +35 -4
- package/server/index.ts +4 -0
- package/server/tsconfig.json +10 -0
- package/test/controls.test.ts +51 -0
- package/test/detail-facts.test.ts +79 -0
- package/test/detail-motion.test.ts +26 -0
- package/test/joints.ts +35 -0
- package/test/preview.test.ts +53 -0
- package/test/resolve-ts-siblings.mjs +85 -0
- package/test/view.test.ts +13 -0
- package/things-factory.config.js +5 -0
- package/translations/en.json +37 -0
- package/translations/es.json +37 -0
- package/translations/ja.json +37 -0
- package/translations/ko.json +37 -0
- package/translations/ms.json +37 -0
- package/translations/zh.json +37 -0
- package/README.md +0 -3
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* **조작값과 자세 도구** (2026-09-24).
|
|
3
|
+
*
|
|
4
|
+
* 보드가 값을 바꿔 도형을 움직이는 자리다. 화면이 읽는 값을 명령을 실제로 적용한 자산에서 재고, 화면의 배선은
|
|
5
|
+
* 소스에서 확인한다.
|
|
6
|
+
*/
|
|
7
|
+
import { test } from 'node:test'
|
|
8
|
+
import assert from 'node:assert/strict'
|
|
9
|
+
import { readFileSync } from 'node:fs'
|
|
10
|
+
import { fileURLToPath } from 'node:url'
|
|
11
|
+
|
|
12
|
+
import { addFigureBox, applyFigureAuthoring, createFigureAsset, editFigurePart } from '@hatiolab/figure-model'
|
|
13
|
+
import type { FigureAsset } from '@hatiolab/figure-model'
|
|
14
|
+
|
|
15
|
+
import { controlsOf, poseAsDefault, poseDiffers } from '../client/controls.ts'
|
|
16
|
+
import { moving } from './joints.ts'
|
|
17
|
+
|
|
18
|
+
const read = (path: string) => readFileSync(fileURLToPath(new URL(path, import.meta.url)), 'utf8')
|
|
19
|
+
|
|
20
|
+
const slider = (): FigureAsset => {
|
|
21
|
+
let asset = createFigureAsset('Slider')
|
|
22
|
+
asset = addFigureBox(asset, { id: 'block', size: { x: 100, y: 100, z: 100 }, position: { x: 0, y: 50, z: 0 } })
|
|
23
|
+
asset = moving(asset, 'block', { kind: 'slide', axis: 'x', id: 'shift', min: 0, max: 60, start: 20 })
|
|
24
|
+
asset = addFigureBox(asset, { id: 'arm', size: { x: 40, y: 200, z: 40 }, position: { x: 0, y: 200, z: 0 } })
|
|
25
|
+
return moving(asset, 'arm', { kind: 'turn', axis: 'y', id: 'spin', min: -90, max: 90, start: 0 })
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
test('조작값마다 이름 · 단위 · 범위 · 지금 값 · 시작 값 · 이동 시간을 읽는다', () => {
|
|
29
|
+
let asset = slider()
|
|
30
|
+
asset = editFigurePart(asset, { kind: 'set-state-input', input: 'shift', label: '밀기', sweep: 2 })
|
|
31
|
+
const [shift, spin] = controlsOf(asset, { shift: 45 })
|
|
32
|
+
assert.deepEqual(
|
|
33
|
+
{ ...shift, step: undefined },
|
|
34
|
+
{ id: 'shift', label: '밀기', named: true, unit: 'mm', min: 0, max: 60, value: 45, start: 20, sweep: 2, step: undefined }
|
|
35
|
+
)
|
|
36
|
+
assert.equal(shift!.step, 0.6, '길이는 범위의 백분의 일씩')
|
|
37
|
+
assert.equal(spin!.label, 'spin', '이름이 없으면 id')
|
|
38
|
+
assert.equal(spin!.named, false)
|
|
39
|
+
assert.equal(spin!.step, 1, '각도는 1도씩')
|
|
40
|
+
assert.equal(spin!.value, 0, '편집기 값이 없으면 시작 값')
|
|
41
|
+
})
|
|
42
|
+
|
|
43
|
+
test('지금 자세를 기본으로 — 보고 있는 자세가 시작 자세와 다를 때만, 한 번의 편집으로', () => {
|
|
44
|
+
const asset = slider()
|
|
45
|
+
assert.equal(poseDiffers(controlsOf(asset)), false)
|
|
46
|
+
const looking = controlsOf(asset, { shift: 50, spin: 30 })
|
|
47
|
+
assert.equal(poseDiffers(looking), true)
|
|
48
|
+
const kept = editFigurePart(asset, poseAsDefault(looking))
|
|
49
|
+
assert.deepEqual([kept.stateDefaults['shift'], kept.stateDefaults['spin']], [50, 30])
|
|
50
|
+
assert.equal(poseDiffers(controlsOf(kept, { shift: 50, spin: 30 })), false)
|
|
51
|
+
})
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* What the catalogue preview says about a figure under its picture: read off the asset and the row, in the modeller's
|
|
3
|
+
* words, and nothing made up for what the figure does not say.
|
|
4
|
+
*/
|
|
5
|
+
import { test } from 'node:test'
|
|
6
|
+
import assert from 'node:assert/strict'
|
|
7
|
+
import { readFileSync } from 'node:fs'
|
|
8
|
+
import { fileURLToPath } from 'node:url'
|
|
9
|
+
import { addFigureBox, applyFigureAuthoring, createFigureAsset, editFigurePart } from '@hatiolab/figure-model'
|
|
10
|
+
|
|
11
|
+
import { detailFactsOf, placeTerms } from '../client/detail-facts.ts'
|
|
12
|
+
|
|
13
|
+
const ko = JSON.parse(readFileSync(fileURLToPath(new URL('../translations/ko.json', import.meta.url)), 'utf8'))
|
|
14
|
+
/* `field.*` is the shell's; every figure word must be in this package. */
|
|
15
|
+
const say = (key: string, params: Record<string, unknown> = {}) => {
|
|
16
|
+
if (key.startsWith('field.')) return key
|
|
17
|
+
assert.ok(ko[key], `ko has no words for ${key}`)
|
|
18
|
+
return ko[key].replace(/\{(\w+)\}/g, (_: string, k: string) => String(params[k] ?? ''))
|
|
19
|
+
}
|
|
20
|
+
const box = () => addFigureBox(createFigureAsset('상자'), { id: 'block', size: { x: 100, y: 100, z: 100 }, position: { x: 0, y: 50, z: 0 } })
|
|
21
|
+
const valueOf = (facts: ReturnType<typeof detailFactsOf>, key: string) => facts.find(f => f.key === key)?.value
|
|
22
|
+
|
|
23
|
+
test('a bare figure: dashes for what it does not say, a score not yet measured, its authored size', () => {
|
|
24
|
+
const facts = detailFactsOf(box(), { id: '1', type: 'box', name: '상자', score: null } as never, say)
|
|
25
|
+
assert.equal(valueOf(facts, 'category'), '—')
|
|
26
|
+
assert.equal(valueOf(facts, 'tags'), '—')
|
|
27
|
+
assert.equal(valueOf(facts, 'placement'), '—')
|
|
28
|
+
assert.equal(valueOf(facts, 'does'), ko['figure.label.rung-none'])
|
|
29
|
+
assert.equal(valueOf(facts, 'places'), '—')
|
|
30
|
+
assert.equal(valueOf(facts, 'joints'), '0')
|
|
31
|
+
assert.equal(valueOf(facts, 'maturity'), ko['figure.text.not-measured-yet'])
|
|
32
|
+
assert.equal(valueOf(facts, 'updated'), undefined)
|
|
33
|
+
assert.equal(valueOf(facts, 'extensions'), undefined)
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
test('a declared size reads as its range on each axis; the row gives category, tags, score and who changed it', () => {
|
|
37
|
+
const asset = applyFigureAuthoring(box(), {
|
|
38
|
+
kind: 'declare-instance-size',
|
|
39
|
+
range: { x: { min: 50, max: 4000 }, y: { min: 50, max: 400 }, z: { min: 50, max: 400 } },
|
|
40
|
+
at: { x: 100, y: 100, z: 100 }
|
|
41
|
+
})
|
|
42
|
+
const facts = detailFactsOf(
|
|
43
|
+
asset,
|
|
44
|
+
{ id: '1', type: 'box', name: '상자', category: 'equipment', tags: ['agv', 'line-2'], score: 82.6, updatedAt: '2026-10-12T03:00:00Z', updater: { id: 'u', name: '관리자' } } as never,
|
|
45
|
+
say
|
|
46
|
+
)
|
|
47
|
+
assert.equal(valueOf(facts, 'size'), `X ${(50).toLocaleString()}–${(4000).toLocaleString()} · Y 50–400 · Z 50–400 mm`)
|
|
48
|
+
assert.equal(valueOf(facts, 'category'), 'equipment')
|
|
49
|
+
assert.equal(valueOf(facts, 'tags'), 'agv, line-2')
|
|
50
|
+
assert.equal(valueOf(facts, 'maturity'), '83')
|
|
51
|
+
assert.match(valueOf(facts, 'updated')!, / · 관리자$/)
|
|
52
|
+
})
|
|
53
|
+
|
|
54
|
+
test('what it does follows its capability names; a set that is no rung is shown as the names', () => {
|
|
55
|
+
const holds = editFigurePart(box(), { kind: 'set-capabilities', names: ['Capacity', 'Holdable'] })
|
|
56
|
+
assert.equal(valueOf(detailFactsOf(holds, { id: '1', type: 'box', name: '상자' } as never, say), 'does'), ko['figure.label.rung-hold'])
|
|
57
|
+
const odd = editFigurePart(box(), { kind: 'set-capabilities', names: ['Capacity'] })
|
|
58
|
+
assert.equal(valueOf(detailFactsOf(odd, { id: '1', type: 'box', name: '상자' } as never, say), 'does'), 'Capacity')
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
test('a row that keeps no score (a board server\'s release) has no maturity line; the catalogue\'s null says not measured', () => {
|
|
62
|
+
assert.equal(valueOf(detailFactsOf(box(), { category: 'robot' }, say), 'maturity'), undefined)
|
|
63
|
+
assert.equal(valueOf(detailFactsOf(box(), { category: 'robot', score: null }, say), 'maturity'), ko['figure.text.not-measured-yet'])
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
test('★ a place reads its role, what it accepts and how many — the same words wherever places are listed', () => {
|
|
67
|
+
assert.equal(
|
|
68
|
+
placeTerms({ role: 'grip', accepts: ['BOX', 'WORKPIECE'], capacity: 1 }, say),
|
|
69
|
+
`${ko['figure.label.role-grip']} · ${say('figure.text.place-accepts', { accepts: 'BOX, WORKPIECE' })} · ${say('figure.label.place-holds', { count: 1 })}`
|
|
70
|
+
)
|
|
71
|
+
assert.equal(ko['figure.label.role-grip'], '파지')
|
|
72
|
+
assert.equal(say('figure.label.place-holds', { count: 1 }), '최대 1')
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
test('★ placement reads as the modeller says it (배치 기준), not as fastening (붙이기)', () => {
|
|
76
|
+
const facts = detailFactsOf(box(), { category: 'robot' }, say)
|
|
77
|
+
assert.equal(facts.find(f => f.key === 'placement')?.label, ko['figure.label.figure-placement'])
|
|
78
|
+
assert.equal(ko['figure.label.figure-placement'], '배치 기준')
|
|
79
|
+
})
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { test } from 'node:test'
|
|
2
|
+
import assert from 'node:assert/strict'
|
|
3
|
+
import { addFigureBox, createFigureAsset, editFigurePart, serializeFigureAsset } from '@hatiolab/figure-model'
|
|
4
|
+
import { moving } from './joints.ts'
|
|
5
|
+
import { clipForControl, parametersForClip } from '../client/detail-motion.ts'
|
|
6
|
+
|
|
7
|
+
function machine() {
|
|
8
|
+
let asset = addFigureBox(createFigureAsset('Motion probe'), { id: 'block', size: { x: 100, y: 100, z: 100 }, position: { x: 0, y: 50, z: 0 } })
|
|
9
|
+
asset = moving(asset, 'block', { kind: 'slide', axis: 'x', id: 'shift', min: 0, max: 200, start: 0 })
|
|
10
|
+
return editFigurePart(asset, { kind: 'set-driver', state: 'shift', clip: 'cycle', duration: 4, keys: [{ seconds: 0, value: 0 }, { seconds: 2, value: 200 }, { seconds: 4, value: 0 }] })
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
test('playing a clip releases manual values that would mask its drivers, retaining unrelated controls and the source', () => {
|
|
14
|
+
const asset = machine()
|
|
15
|
+
const source = serializeFigureAsset(asset)
|
|
16
|
+
const values = { shift: 75, other: 42 }
|
|
17
|
+
assert.deepEqual(parametersForClip(asset, values, 'cycle'), { other: 42 })
|
|
18
|
+
assert.deepEqual(values, { shift: 75, other: 42 })
|
|
19
|
+
assert.equal(serializeFigureAsset(asset), source)
|
|
20
|
+
assert.equal(clipForControl(asset, 'shift'), 'cycle')
|
|
21
|
+
assert.equal(clipForControl(asset, 'other'), undefined)
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
test('choosing a different clip cannot clear another clip’s manual control', () => {
|
|
25
|
+
assert.deepEqual(parametersForClip(machine(), { shift: 75 }, 'other'), { shift: 75 })
|
|
26
|
+
})
|
package/test/joints.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* A copy of figure-ui test/joints.ts: a test fixture both packages' tests use (no product code).
|
|
3
|
+
*
|
|
4
|
+
* Moving a part in a test, as the modeller does it now (ADR-0093): the joint above the part is given a turn or a
|
|
5
|
+
* slide. A part fastened to nothing is stood on the floor first -- a joint has a parent.
|
|
6
|
+
*/
|
|
7
|
+
import { applyFigureAuthoring } from '@hatiolab/figure-model'
|
|
8
|
+
import type { FigureAsset, FigureJoint } from '@hatiolab/figure-model'
|
|
9
|
+
|
|
10
|
+
export function moving(
|
|
11
|
+
asset: FigureAsset,
|
|
12
|
+
part: string,
|
|
13
|
+
spec: { kind: 'slide' | 'turn'; axis: 'x' | 'y' | 'z'; id: string; min: number; max: number; start?: number }
|
|
14
|
+
): FigureAsset {
|
|
15
|
+
/* Stood on the floor where it is: its X and Z kept as offsets on the plane. */
|
|
16
|
+
const at = (axis: 'x' | 'z') => ({ mm: asset.designInputs[`${part}.position.${axis}`] ?? 0 })
|
|
17
|
+
const above: FigureJoint = asset.joints?.find(j => j.body1.part === part) ?? {
|
|
18
|
+
id: part,
|
|
19
|
+
type: 'fixed',
|
|
20
|
+
body0: { plane: 'mounting-plane' },
|
|
21
|
+
body1: { part, face: 'bottom' },
|
|
22
|
+
origin: { align: { x: at('x'), z: at('z') } }
|
|
23
|
+
}
|
|
24
|
+
return applyFigureAuthoring(asset, {
|
|
25
|
+
kind: 'set-joint',
|
|
26
|
+
joint: {
|
|
27
|
+
...above,
|
|
28
|
+
type: spec.kind === 'slide' ? 'prismatic' : 'revolute',
|
|
29
|
+
axis: spec.axis.toUpperCase() as 'X' | 'Y' | 'Z',
|
|
30
|
+
lowerLimit: spec.min,
|
|
31
|
+
upperLimit: spec.max,
|
|
32
|
+
state: { id: spec.id, ...(spec.start !== undefined ? { start: spec.start } : {}) }
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* **미리보기** (사용자 2026-09-24). 저작 중인 도형을 도면처럼 등록하고,
|
|
3
|
+
* 기준 크기와 한 · 두 · 세 축을 2배로 늘린 일곱을 나란히 FigureInstance 로 세운다.
|
|
4
|
+
*/
|
|
5
|
+
import { test } from 'node:test'
|
|
6
|
+
import assert from 'node:assert/strict'
|
|
7
|
+
|
|
8
|
+
import { addFigureBox, createFigureAsset } from '@hatiolab/figure-model'
|
|
9
|
+
|
|
10
|
+
import { authoredSizeOf, PREVIEW_WAYS, previewClampsOf, previewInstances, previewTypeOf, setupPartOf } from '../client/preview-model.ts'
|
|
11
|
+
|
|
12
|
+
test('여덟 — 기준과 일곱 조합, 한 줄에 넷, 늘린 축만 두 배 · 높이는 늘 적는다', () => {
|
|
13
|
+
assert.deepEqual(PREVIEW_WAYS.map(w => w.name), ['base', 'x', 'y', 'z', 'x·y', 'x·z', 'y·z', 'x·y·z'])
|
|
14
|
+
const { components, board } = previewInstances('T', { x: 1000, y: 500, z: 400 })
|
|
15
|
+
assert.equal(components.length, 8)
|
|
16
|
+
assert.deepEqual(components.map(c => [c.width, c.depth, c.height]), [
|
|
17
|
+
[1000, 500, 400], [2000, 500, 400], [1000, 1000, 400], [1000, 500, 800],
|
|
18
|
+
[2000, 1000, 400], [2000, 500, 800], [1000, 1000, 800], [2000, 1000, 800]
|
|
19
|
+
])
|
|
20
|
+
assert.ok(components.every(c => c.type === 'T'))
|
|
21
|
+
assert.deepEqual(board, { width: 10000, height: 2000 }, '가장 큰 것이 들어갈 칸 넷씩 두 줄')
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
test('크기를 선언하지 않은 도형은 부품이 차지하는 범위를 기준 크기로', () => {
|
|
25
|
+
const asset = addFigureBox(createFigureAsset('Fixed'), { id: 'body', size: { x: 300, y: 200, z: 100 }, position: { x: 0, y: 100, z: 0 } })
|
|
26
|
+
assert.deepEqual(authoredSizeOf(asset), { x: 300, y: 200, z: 100 })
|
|
27
|
+
})
|
|
28
|
+
|
|
29
|
+
test('미리보기는 제 타입으로 등록한다 — 남의 도면을 건드리지 않는다', () => {
|
|
30
|
+
/* Going to the preview and back, and the registration standing and going with it, are the browser check's (test/browser/screen.check.mjs). */
|
|
31
|
+
assert.equal(previewTypeOf(''), 'figure-preview-new', '저장 전 도형')
|
|
32
|
+
assert.equal(previewTypeOf('abc'), 'figure-preview-abc')
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
test('미리보기 — 선언하지 않은 크기를 묻는 변형은 그려지는 크기를 말한다(높이만 따르는 조명탑, 아키텍트 판정 09-25)', async () => {
|
|
36
|
+
const fm = await import('@hatiolab/figure-model')
|
|
37
|
+
let a = fm.addFigureBox(fm.createFigureAsset('Tower'), { id: 'mast', size: { x: 200, y: 2000, z: 300 }, position: { x: 0, y: 0, z: 0 } })
|
|
38
|
+
a = fm.applyFigureAuthoring(a, { kind: 'attach', part: 'mast', face: 'bottom', to: { plane: 'mounting-plane' } })
|
|
39
|
+
a = fm.applyFigureAuthoring(a, { kind: 'declare-instance-size', range: { x: { min: 200, max: 200 }, y: { min: 1000, max: 3000 }, z: { min: 300, max: 300 } } })
|
|
40
|
+
const clamps = previewClampsOf(a, authoredSizeOf(a))
|
|
41
|
+
assert.deepEqual(clamps['base'], [], '기준은 그대로')
|
|
42
|
+
assert.deepEqual(clamps['x'], [{ axis: 'x', asked: 400, used: 200 }])
|
|
43
|
+
assert.deepEqual(clamps['y'], [{ axis: 'y', asked: 4000, used: 3000 }], '높이도 선언 최대까지')
|
|
44
|
+
assert.deepEqual(clamps['x·y·z'].map(c => c.axis), ['x', 'y', 'z'])
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
test('미리보기 크기 안내는 편집에서 고른 부품부터 — 안내에서 고른 것이 먼저, 없는 부품은 건너뛴다', () => {
|
|
48
|
+
assert.equal(setupPartOf('', 'roller', ['frame', 'roller']), 'roller', '편집에서 고른 부품')
|
|
49
|
+
assert.equal(setupPartOf('frame', 'roller', ['frame', 'roller']), 'frame', '안내에서 고른 것이 이긴다')
|
|
50
|
+
assert.equal(setupPartOf('', 'leg', ['frame', 'roller']), 'frame', '크기 규칙이 없는 부품이면 첫 부품')
|
|
51
|
+
assert.equal(setupPartOf('gone', '', ['frame']), 'frame', '사라진 부품은 건너뛴다')
|
|
52
|
+
assert.equal(setupPartOf('', '', []), '')
|
|
53
|
+
})
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ★ 소스 시험이 형제 모듈을 부를 수 있게 한다 — **`.js` 로 적힌 상대 경로를 `.ts` 로 되짚는다.**
|
|
3
|
+
*
|
|
4
|
+
* ── 무엇이 서고 있었나 (2026-08-22) ─────────────────────────────────────────
|
|
5
|
+
* 이 패키지의 `npm test` 는 `node --test test/*.test.ts` 로 **소스를 그대로 실행**한다. 그런데 서버
|
|
6
|
+
* 소스는 tsc 로 빌드되는 코드이므로 상대 import 를 `'./x.js'` 로 적는다(그것이 빌드 산출물에서 맞는
|
|
7
|
+
* 경로다). 타입만 지우는 실행은 그 `.js` 를 `.ts` 로 바꿔 주지 않는다.
|
|
8
|
+
*
|
|
9
|
+
* 그래서 **소스 모듈이 형제 모듈을 값으로 참조하는 순간** 그 모듈 그래프를 부르는 시험이 전부 선다.
|
|
10
|
+
* 실측으로 하루에 세 종류가 이 벽에 걸렸다: `identity/namespace.js`(정체성 이름공간) ·
|
|
11
|
+
* `engine/log.js`(로그 문) · `isa95-coverage.js`(적합성 판정). 늘 같은 오류다.
|
|
12
|
+
*
|
|
13
|
+
* Cannot find module '…/server/identity/namespace.js' imported from '…/templates/wms-unit-load.ts'
|
|
14
|
+
*
|
|
15
|
+
* ── 왜 이 방식인가 ──────────────────────────────────────────────────────────
|
|
16
|
+
* 고르던 길이 둘 있었다.
|
|
17
|
+
*
|
|
18
|
+
* ① 그 시험들을 **빌드 산출물**(`dist-server`)로 돌린다 — 이 패키지에 전례가 있다. 그러나 시험마다
|
|
19
|
+
* 그 배선을 적어야 하고, 걸리는 시험이 늘 때마다 같은 일을 다시 한다. 그리고 산출물이 낡으면
|
|
20
|
+
* **고친 코드가 아닌 것이 돌면서 초록으로 보인다.**
|
|
21
|
+
* ② 상수를 쓰는 파일 안으로 옮긴다 — 값 참조가 사라지지만 **정본이 흩어진다.** 그것이 이 상수를 한
|
|
22
|
+
* 자리에 모은 이유와 정면으로 어긋난다.
|
|
23
|
+
*
|
|
24
|
+
* 둘 다 증상을 피하는 것이고, 원인은 **해석 규칙 하나**다. 그래서 규칙을 고친다: 상대 경로 `.js` 가
|
|
25
|
+
* 없고 같은 이름의 `.ts` 가 있으면 그것을 쓴다. 한 자리에 두므로 걸리는 시험이 늘어도 할 일이 없다.
|
|
26
|
+
*
|
|
27
|
+
* ── 무엇을 하지 않는가 ─────────────────────────────────────────────────────
|
|
28
|
+
* **패키지 이름(`@things-factory/…`)은 손대지 않는다.** 그것은 의존 패키지의 산출물을 가리키는
|
|
29
|
+
* 것이고 실제로 `.js` 가 있다. 되짚는 것은 **상대 경로**뿐이고, 그것도 `.ts` 가 실제로 있을 때만이다 —
|
|
30
|
+
* 없으면 원래 오류가 그대로 난다(없는 것을 지어내지 않는다).
|
|
31
|
+
*/
|
|
32
|
+
import { registerHooks } from 'node:module'
|
|
33
|
+
import { createRequire } from 'node:module'
|
|
34
|
+
import { existsSync } from 'node:fs'
|
|
35
|
+
import { fileURLToPath, pathToFileURL } from 'node:url'
|
|
36
|
+
|
|
37
|
+
/*
|
|
38
|
+
* ── 이 패키지에서 한 가지 더 (2026-08-30) ───────────────────────────────────
|
|
39
|
+
* things-factory 패키지는 CommonJS 로 빌드하므로 상대 import 를 **확장자 없이** 적는다(`'./x'`).
|
|
40
|
+
* 빌드에서는 그것이 맞는데, 소스를 그대로 실행하는 테스트는 ESM 해석이라 확장자가 없으면 찾지 못한다.
|
|
41
|
+
* 그래서 `.js` 와 같은 규칙을 확장자 없는 상대 경로에도 적용한다.
|
|
42
|
+
*/
|
|
43
|
+
function tsSibling(specifier, parentURL, stripExtension) {
|
|
44
|
+
if (!parentURL) return undefined
|
|
45
|
+
const base = stripExtension ? specifier.slice(0, -3) : specifier
|
|
46
|
+
const asTs = new URL(base + '.ts', parentURL)
|
|
47
|
+
return existsSync(fileURLToPath(asTs)) ? asTs : undefined
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/*
|
|
51
|
+
* ── 패키지 이름 하나만 예외다: `@hatiolab/things-scene` (2026-09-24) ─────────────────────────
|
|
52
|
+
* 이 패키지의 client 는 브라우저 코드이고, things-scene 은 판이 둘이다 — 브라우저용 `things-scene.mjs` 와
|
|
53
|
+
* 서버 전송용 `things-scene-transfer.mjs`. Node 는 `exports` 의 `node` 조건으로 전송 판을 고르는데, 그 판에는
|
|
54
|
+
* figure 가 없다(`buildFigureGeometry` · `registerFigure` …). 모델러 소스를 Node 에서 시험하면 **브라우저가
|
|
55
|
+
* 받을 판**을 봐야 맞다. 그래서 이 이름만 브라우저 판으로 되짚는다. 다른 패키지 이름은 그대로 둔다.
|
|
56
|
+
*/
|
|
57
|
+
const SCENE_BROWSER_BUNDLE = (() => {
|
|
58
|
+
try {
|
|
59
|
+
const require = createRequire(import.meta.url)
|
|
60
|
+
return pathToFileURL(require.resolve('@hatiolab/things-scene/package.json').replace(/package\.json$/, 'things-scene.mjs')).href
|
|
61
|
+
} catch {
|
|
62
|
+
return null
|
|
63
|
+
}
|
|
64
|
+
})()
|
|
65
|
+
|
|
66
|
+
registerHooks({
|
|
67
|
+
resolve(specifier, context, nextResolve) {
|
|
68
|
+
if (specifier === '@hatiolab/things-scene' && SCENE_BROWSER_BUNDLE) return { url: SCENE_BROWSER_BUNDLE, shortCircuit: true }
|
|
69
|
+
/* 상대 경로만 본다 — 패키지 이름은 그대로 둔다(의존 패키지의 산출물을 가리킨다). */
|
|
70
|
+
if (!specifier.startsWith('.')) return nextResolve(specifier, context)
|
|
71
|
+
|
|
72
|
+
const endsWithJs = specifier.endsWith('.js')
|
|
73
|
+
const hasExtension = /\.[a-zA-Z0-9]+$/.test(specifier)
|
|
74
|
+
if (!endsWithJs && hasExtension) return nextResolve(specifier, context)
|
|
75
|
+
|
|
76
|
+
try {
|
|
77
|
+
return nextResolve(specifier, context)
|
|
78
|
+
} catch (err) {
|
|
79
|
+
/* 해석이 실패한 그때만 `.ts` 를 본다 — 성공하는 경로의 뜻을 바꾸지 않는다. */
|
|
80
|
+
const asTs = tsSibling(specifier, context?.parentURL, endsWithJs)
|
|
81
|
+
if (!asTs) throw err
|
|
82
|
+
return { url: pathToFileURL(fileURLToPath(asTs)).href, shortCircuit: true, format: 'module-typescript' }
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
})
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* **보기 — 작업대의 설정** (「환경」 탭). 도형에 저장되지 않고, 보는 사람의 브라우저에 남는다.
|
|
3
|
+
* 탭에서 바꾸면 판이 따르고 브라우저에 남으며 도형은 그대로인 것은 브라우저 검사(`test/browser/screen.check.mjs`)가 본다.
|
|
4
|
+
*/
|
|
5
|
+
import { test } from 'node:test'
|
|
6
|
+
import assert from 'node:assert/strict'
|
|
7
|
+
|
|
8
|
+
import { ENVIRONMENTS } from '../client/figure-view.ts'
|
|
9
|
+
|
|
10
|
+
test('환경 탭 — 씬이 받는 환경 여덟을 모두 고를 수 있다', () => {
|
|
11
|
+
assert.equal(ENVIRONMENTS.length, 8, '환경 여덟')
|
|
12
|
+
assert.ok(ENVIRONMENTS.includes('studio') && ENVIRONMENTS.includes('rainy'))
|
|
13
|
+
})
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"figure.button.detail-reset": "Reset size and pose",
|
|
3
|
+
"figure.button.detail-save-thumbnail": "use this view as the thumbnail",
|
|
4
|
+
"figure.label.category": "category",
|
|
5
|
+
"figure.label.detail-size": "Placement size",
|
|
6
|
+
"figure.label.extensions": "extensions",
|
|
7
|
+
"figure.label.figure-placement": "placement",
|
|
8
|
+
"figure.label.instance-range": "allowed size",
|
|
9
|
+
"figure.label.joint": "joint",
|
|
10
|
+
"figure.label.maturity": "maturity",
|
|
11
|
+
"figure.label.place-grip": "Grip",
|
|
12
|
+
"figure.label.place-holds": "up to {count}",
|
|
13
|
+
"figure.label.place-seat": "Seat",
|
|
14
|
+
"figure.label.placement-ceiling": "ceiling-based (ceiling)",
|
|
15
|
+
"figure.label.placement-center": "center-based (center)",
|
|
16
|
+
"figure.label.placement-floor": "floor-based (floor)",
|
|
17
|
+
"figure.label.placement-limit": "placement limit",
|
|
18
|
+
"figure.label.placement-wall": "wall (wall)",
|
|
19
|
+
"figure.label.places": "grip · seat places",
|
|
20
|
+
"figure.label.role-grip": "grip",
|
|
21
|
+
"figure.label.role-seat": "seat",
|
|
22
|
+
"figure.label.rung-flow": "conveys",
|
|
23
|
+
"figure.label.rung-hold": "holds",
|
|
24
|
+
"figure.label.rung-none": "none",
|
|
25
|
+
"figure.label.sizing-rule": "resizing",
|
|
26
|
+
"figure.label.sizing-uniform": "proportional (geometric mean of the three axes)",
|
|
27
|
+
"figure.label.tags": "tags",
|
|
28
|
+
"figure.label.what-this-does": "function",
|
|
29
|
+
"figure.text.detail-no-motion": "No motion is defined.",
|
|
30
|
+
"figure.text.detail-paused": "Paused",
|
|
31
|
+
"figure.text.detail-playing": "Playing",
|
|
32
|
+
"figure.text.detail-thumbnail-failed": "could not save the thumbnail. try again.",
|
|
33
|
+
"figure.text.detail-thumbnail-saved": "saved as the thumbnail",
|
|
34
|
+
"figure.text.detail-transient": "Try sizes and motion here. The saved model stays unchanged.",
|
|
35
|
+
"figure.text.not-measured-yet": "not measured",
|
|
36
|
+
"figure.text.place-accepts": "accepts {accepts}"
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"figure.button.detail-reset": "Restablecer tamaño y postura",
|
|
3
|
+
"figure.button.detail-save-thumbnail": "usar esta vista como miniatura",
|
|
4
|
+
"figure.label.category": "categoría",
|
|
5
|
+
"figure.label.detail-size": "Tamaño de colocación",
|
|
6
|
+
"figure.label.extensions": "extensiones",
|
|
7
|
+
"figure.label.figure-placement": "colocación",
|
|
8
|
+
"figure.label.instance-range": "tamaño permitido",
|
|
9
|
+
"figure.label.joint": "articulación",
|
|
10
|
+
"figure.label.maturity": "madurez",
|
|
11
|
+
"figure.label.place-grip": "Agarre",
|
|
12
|
+
"figure.label.place-holds": "hasta {count}",
|
|
13
|
+
"figure.label.place-seat": "Asiento",
|
|
14
|
+
"figure.label.placement-ceiling": "basado en el techo (ceiling)",
|
|
15
|
+
"figure.label.placement-center": "basado en el centro (center)",
|
|
16
|
+
"figure.label.placement-floor": "basado en el suelo (floor)",
|
|
17
|
+
"figure.label.placement-limit": "límite de colocación",
|
|
18
|
+
"figure.label.placement-wall": "pared (wall)",
|
|
19
|
+
"figure.label.places": "puntos de agarre · asiento",
|
|
20
|
+
"figure.label.role-grip": "agarre",
|
|
21
|
+
"figure.label.role-seat": "asiento",
|
|
22
|
+
"figure.label.rung-flow": "transporte",
|
|
23
|
+
"figure.label.rung-hold": "carga",
|
|
24
|
+
"figure.label.rung-none": "ninguna",
|
|
25
|
+
"figure.label.sizing-rule": "cambio de tamaño",
|
|
26
|
+
"figure.label.sizing-uniform": "proporcional (media geométrica de los tres ejes)",
|
|
27
|
+
"figure.label.tags": "etiquetas",
|
|
28
|
+
"figure.label.what-this-does": "función",
|
|
29
|
+
"figure.text.detail-no-motion": "No hay ningún movimiento definido.",
|
|
30
|
+
"figure.text.detail-paused": "En pausa",
|
|
31
|
+
"figure.text.detail-playing": "Reproduciendo",
|
|
32
|
+
"figure.text.detail-thumbnail-failed": "no se pudo guardar la miniatura. inténtelo de nuevo.",
|
|
33
|
+
"figure.text.detail-thumbnail-saved": "guardada como miniatura",
|
|
34
|
+
"figure.text.detail-transient": "Pruebe aquí tamaños y movimientos. El modelo guardado no cambia.",
|
|
35
|
+
"figure.text.not-measured-yet": "no medido",
|
|
36
|
+
"figure.text.place-accepts": "acepta {accepts}"
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"figure.button.detail-reset": "基準サイズと姿勢に戻す",
|
|
3
|
+
"figure.button.detail-save-thumbnail": "この画面をサムネイルに",
|
|
4
|
+
"figure.label.category": "分類",
|
|
5
|
+
"figure.label.detail-size": "配置サイズ",
|
|
6
|
+
"figure.label.extensions": "拡張属性",
|
|
7
|
+
"figure.label.figure-placement": "配置基準",
|
|
8
|
+
"figure.label.instance-range": "許容サイズ",
|
|
9
|
+
"figure.label.joint": "関節",
|
|
10
|
+
"figure.label.maturity": "maturity",
|
|
11
|
+
"figure.label.place-grip": "つかむ場所",
|
|
12
|
+
"figure.label.place-holds": "最大 {count}",
|
|
13
|
+
"figure.label.place-seat": "載せる場所",
|
|
14
|
+
"figure.label.placement-ceiling": "天井基準 (ceiling)",
|
|
15
|
+
"figure.label.placement-center": "中心基準 (center)",
|
|
16
|
+
"figure.label.placement-floor": "床基準 (floor)",
|
|
17
|
+
"figure.label.placement-limit": "配置上限",
|
|
18
|
+
"figure.label.placement-wall": "壁基準 (wall)",
|
|
19
|
+
"figure.label.places": "把持・載置位置",
|
|
20
|
+
"figure.label.role-grip": "把持",
|
|
21
|
+
"figure.label.role-seat": "載置",
|
|
22
|
+
"figure.label.rung-flow": "搬送",
|
|
23
|
+
"figure.label.rung-hold": "積載",
|
|
24
|
+
"figure.label.rung-none": "なし",
|
|
25
|
+
"figure.label.sizing-rule": "サイズ変更",
|
|
26
|
+
"figure.label.sizing-uniform": "比例 (3軸の幾何平均)",
|
|
27
|
+
"figure.label.tags": "タグ",
|
|
28
|
+
"figure.label.what-this-does": "機能",
|
|
29
|
+
"figure.text.detail-no-motion": "登録された動きがありません。",
|
|
30
|
+
"figure.text.detail-paused": "一時停止",
|
|
31
|
+
"figure.text.detail-playing": "再生中",
|
|
32
|
+
"figure.text.detail-thumbnail-failed": "サムネイルを保存できませんでした。もう一度お試しください。",
|
|
33
|
+
"figure.text.detail-thumbnail-saved": "サムネイルに保存しました",
|
|
34
|
+
"figure.text.detail-transient": "サイズと動きはここでのみ試します。保存されたモデルは変更されません。",
|
|
35
|
+
"figure.text.not-measured-yet": "not measured",
|
|
36
|
+
"figure.text.place-accepts": "受け入れ {accepts}"
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"figure.button.detail-reset": "기준 크기와 자세로",
|
|
3
|
+
"figure.button.detail-save-thumbnail": "이 화면을 썸네일로",
|
|
4
|
+
"figure.label.category": "분류",
|
|
5
|
+
"figure.label.detail-size": "배치 크기",
|
|
6
|
+
"figure.label.extensions": "확장 속성",
|
|
7
|
+
"figure.label.figure-placement": "배치 기준",
|
|
8
|
+
"figure.label.instance-range": "허용 크기",
|
|
9
|
+
"figure.label.joint": "관절",
|
|
10
|
+
"figure.label.maturity": "성숙도",
|
|
11
|
+
"figure.label.place-grip": "파지 위치",
|
|
12
|
+
"figure.label.place-holds": "최대 {count}",
|
|
13
|
+
"figure.label.place-seat": "안착 위치",
|
|
14
|
+
"figure.label.placement-ceiling": "천장 기반 (ceiling)",
|
|
15
|
+
"figure.label.placement-center": "중심 기반 (center)",
|
|
16
|
+
"figure.label.placement-floor": "바닥 기반 (floor)",
|
|
17
|
+
"figure.label.placement-limit": "배치 한도",
|
|
18
|
+
"figure.label.placement-wall": "벽 기반 (wall)",
|
|
19
|
+
"figure.label.places": "파지·안착 위치",
|
|
20
|
+
"figure.label.role-grip": "파지",
|
|
21
|
+
"figure.label.role-seat": "안착",
|
|
22
|
+
"figure.label.rung-flow": "이송",
|
|
23
|
+
"figure.label.rung-hold": "적재",
|
|
24
|
+
"figure.label.rung-none": "없음",
|
|
25
|
+
"figure.label.sizing-rule": "크기 변경",
|
|
26
|
+
"figure.label.sizing-uniform": "비례 (세 축 기하평균)",
|
|
27
|
+
"figure.label.tags": "태그",
|
|
28
|
+
"figure.label.what-this-does": "기능",
|
|
29
|
+
"figure.text.detail-no-motion": "등록된 움직임이 없습니다.",
|
|
30
|
+
"figure.text.detail-paused": "일시정지",
|
|
31
|
+
"figure.text.detail-playing": "재생 중",
|
|
32
|
+
"figure.text.detail-thumbnail-failed": "썸네일을 저장하지 못했습니다. 다시 시도하세요.",
|
|
33
|
+
"figure.text.detail-thumbnail-saved": "썸네일로 저장했습니다",
|
|
34
|
+
"figure.text.detail-transient": "크기와 움직임은 여기서만 시험합니다. 저장된 모델은 바뀌지 않습니다.",
|
|
35
|
+
"figure.text.not-measured-yet": "미측정",
|
|
36
|
+
"figure.text.place-accepts": "받는 것 {accepts}"
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"figure.button.detail-reset": "Pulihkan saiz dan posisi asal",
|
|
3
|
+
"figure.button.detail-save-thumbnail": "guna paparan ini sebagai lakaran kecil",
|
|
4
|
+
"figure.label.category": "kategori",
|
|
5
|
+
"figure.label.detail-size": "Saiz penempatan",
|
|
6
|
+
"figure.label.extensions": "sambungan",
|
|
7
|
+
"figure.label.figure-placement": "penempatan",
|
|
8
|
+
"figure.label.instance-range": "saiz dibenarkan",
|
|
9
|
+
"figure.label.joint": "sendi",
|
|
10
|
+
"figure.label.maturity": "maturity",
|
|
11
|
+
"figure.label.place-grip": "Tempat cengkam",
|
|
12
|
+
"figure.label.place-holds": "maksimum {count}",
|
|
13
|
+
"figure.label.place-seat": "Tempat letak",
|
|
14
|
+
"figure.label.placement-ceiling": "berasaskan siling (ceiling)",
|
|
15
|
+
"figure.label.placement-center": "berasaskan pusat (center)",
|
|
16
|
+
"figure.label.placement-floor": "berasaskan lantai (floor)",
|
|
17
|
+
"figure.label.placement-limit": "had penempatan",
|
|
18
|
+
"figure.label.placement-wall": "dinding (wall)",
|
|
19
|
+
"figure.label.places": "tempat cengkam · letak",
|
|
20
|
+
"figure.label.role-grip": "cengkam",
|
|
21
|
+
"figure.label.role-seat": "letak",
|
|
22
|
+
"figure.label.rung-flow": "pengangkutan",
|
|
23
|
+
"figure.label.rung-hold": "muatan",
|
|
24
|
+
"figure.label.rung-none": "tiada",
|
|
25
|
+
"figure.label.sizing-rule": "ubah saiz",
|
|
26
|
+
"figure.label.sizing-uniform": "berkadar (min geometri tiga paksi)",
|
|
27
|
+
"figure.label.tags": "tag",
|
|
28
|
+
"figure.label.what-this-does": "fungsi",
|
|
29
|
+
"figure.text.detail-no-motion": "Tiada gerakan didaftarkan.",
|
|
30
|
+
"figure.text.detail-paused": "Dijeda",
|
|
31
|
+
"figure.text.detail-playing": "Sedang dimainkan",
|
|
32
|
+
"figure.text.detail-thumbnail-failed": "lakaran kecil tidak dapat disimpan. cuba lagi.",
|
|
33
|
+
"figure.text.detail-thumbnail-saved": "disimpan sebagai lakaran kecil",
|
|
34
|
+
"figure.text.detail-transient": "Saiz dan gerakan hanya diuji di sini. Model yang disimpan tidak berubah.",
|
|
35
|
+
"figure.text.not-measured-yet": "not measured",
|
|
36
|
+
"figure.text.place-accepts": "menerima {accepts}"
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"figure.button.detail-reset": "恢复基准尺寸与姿态",
|
|
3
|
+
"figure.button.detail-save-thumbnail": "将此画面设为缩略图",
|
|
4
|
+
"figure.label.category": "分类",
|
|
5
|
+
"figure.label.detail-size": "放置尺寸",
|
|
6
|
+
"figure.label.extensions": "扩展属性",
|
|
7
|
+
"figure.label.figure-placement": "放置基准",
|
|
8
|
+
"figure.label.instance-range": "允许尺寸",
|
|
9
|
+
"figure.label.joint": "关节",
|
|
10
|
+
"figure.label.maturity": "maturity",
|
|
11
|
+
"figure.label.place-grip": "夹持位置",
|
|
12
|
+
"figure.label.place-holds": "最多 {count}",
|
|
13
|
+
"figure.label.place-seat": "放置位置",
|
|
14
|
+
"figure.label.placement-ceiling": "天花板基准 (ceiling)",
|
|
15
|
+
"figure.label.placement-center": "中心基准 (center)",
|
|
16
|
+
"figure.label.placement-floor": "地面基准 (floor)",
|
|
17
|
+
"figure.label.placement-limit": "布置上限",
|
|
18
|
+
"figure.label.placement-wall": "墙面基准 (wall)",
|
|
19
|
+
"figure.label.places": "夹持・放置位置",
|
|
20
|
+
"figure.label.role-grip": "夹持",
|
|
21
|
+
"figure.label.role-seat": "放置",
|
|
22
|
+
"figure.label.rung-flow": "输送",
|
|
23
|
+
"figure.label.rung-hold": "承载",
|
|
24
|
+
"figure.label.rung-none": "无",
|
|
25
|
+
"figure.label.sizing-rule": "尺寸变化",
|
|
26
|
+
"figure.label.sizing-uniform": "等比 (三轴几何平均)",
|
|
27
|
+
"figure.label.tags": "标签",
|
|
28
|
+
"figure.label.what-this-does": "功能",
|
|
29
|
+
"figure.text.detail-no-motion": "没有已注册的动作。",
|
|
30
|
+
"figure.text.detail-paused": "已暂停",
|
|
31
|
+
"figure.text.detail-playing": "播放中",
|
|
32
|
+
"figure.text.detail-thumbnail-failed": "无法保存缩略图。请重试。",
|
|
33
|
+
"figure.text.detail-thumbnail-saved": "已保存为缩略图",
|
|
34
|
+
"figure.text.detail-transient": "尺寸和动作仅在此处试用,不会修改已保存的模型。",
|
|
35
|
+
"figure.text.not-measured-yet": "not measured",
|
|
36
|
+
"figure.text.place-accepts": "接收 {accepts}"
|
|
37
|
+
}
|
package/README.md
DELETED