@things-factory/figure-ui 10.1.171 → 10.1.172

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/figure-ui",
3
- "version": "10.1.171",
3
+ "version": "10.1.172",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "@things-factory:registry": "https://registry.npmjs.org"
@@ -42,10 +42,10 @@
42
42
  "@operato/styles": "^10.0.0",
43
43
  "@operato/utils": "^10.0.0",
44
44
  "@things-factory/ai-assistant": "^10.1.170",
45
- "@things-factory/figure-service": "^10.1.171",
45
+ "@things-factory/figure-service": "^10.1.172",
46
46
  "@things-factory/figure-viewer": "^10.1.171",
47
47
  "@things-factory/setting-base": "^10.1.167",
48
48
  "three": "^0.185.1"
49
49
  },
50
- "gitHead": "e88536db0bc3cbb759fe58f9efeef66a67fef2c3"
50
+ "gitHead": "6c653ce8573f7a0d64c7f7f930605f816c35d69f"
51
51
  }
@@ -780,6 +780,15 @@ describe('the preview stands one figure the author stretches (first 15 minutes,
780
780
  assert.ok(said.startsWith('6,000 × '), said)
781
781
  const box = await read(() => { const m = screenCheck.deep('figure-preview')[0].scene.root.components[0].model; return m.left + m.width / 2 })
782
782
  assert.equal(Math.round(box), await read(() => screenCheck.deep('figure-preview')[0].board.width / 2), 'grown about the board\'s centre')
783
+ /* From one figure to eight, the view is fitted to them again: the camera kept from the one stood inside the eight. */
784
+ await read(() => {
785
+ const scene = screenCheck.deep('figure-preview')[0].scene
786
+ const fit = scene.fit.bind(scene)
787
+ window.previewFits = 0
788
+ scene.fit = type => (window.previewFits++, fit(type))
789
+ })
790
+ await press('the eight sizes', () => screenCheck.deep('figure-preview')[0].shadowRoot.querySelector('button[way=eight]'))
791
+ await until('the eight, fitted', () => screenCheck.deep('figure-preview')[0].scene.root.components.length === 8 && window.previewFits >= 1)
783
792
  await boardsUp()
784
793
  })
785
794
  })
@@ -984,6 +993,21 @@ describe('the modeller page: the editor with the page\'s figure panel, verdict a
984
993
  await open('fig-a')
985
994
  })
986
995
 
996
+ /* First 15 minutes, again (2026-10-16 evening): a new figure, nothing in it yet, showed 「발행 막힘 1」 in red from the start. */
997
+ test('a figure with no parts has nothing red beside 「발행」; the verdict still holds what blocks it', async () => {
998
+ const answer = blocked => read(blocked => product.answer('inspectFigureDraft', () => ({ __typename: 'FigureInspection', blocked, findings: blocked ? [alone.finding('occupancy-undeclared')] : [] })), blocked)
999
+ await answer(true)
1000
+ try {
1001
+ await open('fig-empty-bar', 'empty', 'probe-empty-bar')
1002
+ await until('the page has the verdict', () => screenCheck.editor().releaseBlockers.length === 1)
1003
+ assert.equal(await read(() => !!screenCheck.editor().shadowRoot.querySelector('ox-canvas-bar button[release-blocked]')), false)
1004
+ assert.equal(await read(() => !!screenCheck.editor().shadowRoot.querySelector('ox-canvas-bar button[publish]')), true, '「발행」 is still there')
1005
+ } finally {
1006
+ await read(() => product.answer('inspectFigureDraft'))
1007
+ await open('fig-a')
1008
+ }
1009
+ })
1010
+
987
1011
  test('the figure\'s type is the first field of the figure panel, under its heading', async () => {
988
1012
  await pressTab(TAB('properties'))
989
1013
  const first = await read(() => {