@floless/app 0.131.0 → 0.132.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.
Files changed (34) hide show
  1. package/dist/floless-server.cjs +2558 -1885
  2. package/dist/schemas/steel.model.v2.schema.json +3 -1
  3. package/dist/web/app.css +359 -0
  4. package/dist/web/app.js +22 -0
  5. package/dist/web/aware.js +62 -10
  6. package/dist/web/commands-filter.js +157 -0
  7. package/dist/web/commands-shell.js +1316 -0
  8. package/dist/web/commands-steel.js +1829 -0
  9. package/dist/web/commands-vector.js +154 -0
  10. package/dist/web/commands-vector3d.js +96 -0
  11. package/dist/web/commands.js +316 -0
  12. package/dist/web/grid-core.js +124 -23
  13. package/dist/web/index.html +269 -164
  14. package/dist/web/instructor-reporter.js +201 -0
  15. package/dist/web/instructor.js +1119 -0
  16. package/dist/web/reference-changes.js +55 -0
  17. package/dist/web/reference-geometry-worker.js +194 -0
  18. package/dist/web/steel-3d-core.js +454 -107
  19. package/dist/web/steel-3d-view.js +790 -165
  20. package/dist/web/steel-canvas-guidance.js +7 -4
  21. package/dist/web/steel-editor.html +2347 -1810
  22. package/dist/web/steel-filter-core.js +13 -5
  23. package/dist/web/steel-filter.html +36 -22
  24. package/dist/web/steel-model-adapter.js +17 -22
  25. package/dist/web/steel-model-commands.js +23 -10
  26. package/dist/web/steel-model-v2-client-validation.js +20 -3
  27. package/dist/web/steel-model-v2-commands.js +91 -3
  28. package/dist/web/steel-model-v2-projection.js +4 -5
  29. package/dist/web/steel-plan-transform.js +4 -8
  30. package/dist/web/steel-split-view.js +52 -0
  31. package/dist/web/vector-3d.html +19 -7
  32. package/dist/web/vector-editor.html +21 -8
  33. package/dist/web/workspaces.js +9 -24
  34. package/package.json +9 -1
@@ -0,0 +1,157 @@
1
+ /* ──────────────────────────────────────────────────────────────────────────
2
+ Drawing Filter capability registrations (steel-filter.html).
3
+
4
+ Same shape as commands-steel.js, and the same two-documents rule: this file
5
+ loads in steel-filter.html AND in index.html, because the shell is the sole
6
+ guidance producer and must be able to resolve an id that arrives over the
7
+ reporter seam. Two copies of a list of immutable declarations are not two
8
+ registries — see the header of commands-steel.js for the full reasoning.
9
+
10
+ ── Why NOTHING here is 'active-command' ─────────────────────────────────
11
+ Not an oversight, and not a shortcut. This surface arms nothing: the
12
+ eyedropper OPENS ON CLICK (pointerup → openEyedropper) rather than being
13
+ armed first and clicked second, the facets apply immediately, and pan/zoom is
14
+ a plain drag. `mode` in steel-filter.html is the match-on facet mode — which
15
+ criteria AND together — not an armed tool.
16
+
17
+ A command with no steps must not be given steps. Inventing a "click a line to
18
+ sample it" sequence would put a step counter on the band for a command that
19
+ has no sequence to count, which is the kind of confident wrongness this whole
20
+ design exists to avoid.
21
+
22
+ ── persistence, on this surface ─────────────────────────────────────────
23
+ Facet and mode toggles are 'local': they change what you see and what a Save
24
+ would write, but nothing reaches the project until you press Save. Only
25
+ `filter.save` is 'working'.
26
+ ────────────────────────────────────────────────────────────────────────── */
27
+ (function () {
28
+ 'use strict';
29
+
30
+ if (!window.Commands) return;
31
+ var def = window.Commands.define;
32
+ window.Commands.surfaceScope('steel-filter');
33
+
34
+ /* ── the header ─────────────────────────────────────────────────────────── */
35
+
36
+ def('filter.sheet-switch', {
37
+ label: 'Switch sheet',
38
+ actsOn: 'Shows another framing-plan sheet from this drawing set',
39
+ group: 'In the Drawing Filter header',
40
+ persistence: 'local',
41
+ interaction: 'instant',
42
+ risk: [],
43
+ guidance: 'on-demand',
44
+ why: 'Only appears when the set has more than one sheet. Your filter is shared across sheets — switching changes what you are looking at, not what is selected.',
45
+ });
46
+
47
+ def('filter.save', {
48
+ label: 'Save filter',
49
+ actsOn: 'Writes the filter onto this app’s contract',
50
+ group: 'In the Drawing Filter header',
51
+ persistence: 'working',
52
+ interaction: 'instant',
53
+ risk: [],
54
+ guidance: 'on-demand',
55
+ why: 'Everything you tick on this screen is held in memory until you press this. It stays off until something has actually changed.',
56
+ });
57
+
58
+ /* ── the left panel: which elements are shown ───────────────────────────── */
59
+
60
+ def('filter.match-on', {
61
+ label: 'Match on',
62
+ actsOn: 'Chooses which criteria have to agree',
63
+ group: 'In the Drawing Filter panel',
64
+ persistence: 'local',
65
+ interaction: 'instant',
66
+ risk: [],
67
+ guidance: 'on-demand',
68
+ why: 'Every criterion you tick must match (AND), so adding one can only narrow the result — never widen it.',
69
+ });
70
+
71
+ def('filter.facet-toggle', {
72
+ label: 'Include a value',
73
+ actsOn: 'Adds or removes one layer, thickness or colour',
74
+ group: 'In the Drawing Filter panel',
75
+ persistence: 'local',
76
+ interaction: 'instant',
77
+ risk: [],
78
+ guidance: 'on-demand',
79
+ });
80
+
81
+ def('filter.facet-all', {
82
+ label: 'Select all in a facet',
83
+ actsOn: 'Ticks every value in that list',
84
+ group: 'In the Drawing Filter panel',
85
+ persistence: 'local',
86
+ interaction: 'instant',
87
+ risk: [],
88
+ guidance: 'on-demand',
89
+ });
90
+
91
+ def('filter.facet-none', {
92
+ label: 'Clear a facet',
93
+ actsOn: 'Unticks every value in that list',
94
+ group: 'In the Drawing Filter panel',
95
+ persistence: 'local',
96
+ interaction: 'instant',
97
+ risk: [],
98
+ guidance: 'on-demand',
99
+ why: 'Clearing every value in a criterion you are matching on leaves nothing to match, so the drawing goes empty until you tick something back.',
100
+ });
101
+
102
+ /* ── the canvas ─────────────────────────────────────────────────────────── */
103
+
104
+ def('filter.fit', {
105
+ label: 'Fit',
106
+ actsOn: 'Frames the whole page',
107
+ group: 'On the Drawing Filter canvas',
108
+ persistence: 'local',
109
+ interaction: 'instant',
110
+ risk: [],
111
+ guidance: 'on-demand',
112
+ });
113
+
114
+ def('filter.zoom-steel', {
115
+ label: 'Zoom steel',
116
+ actsOn: 'Frames just the steel on this sheet',
117
+ group: 'On the Drawing Filter canvas',
118
+ persistence: 'local',
119
+ interaction: 'instant',
120
+ risk: [],
121
+ guidance: 'on-demand',
122
+ why: 'Falls back to fitting the whole page when the sheet has no steel identified on it yet.',
123
+ });
124
+
125
+ def('filter.eyedropper', {
126
+ label: 'Sample an element',
127
+ actsOn: 'Reads the layer, thickness and colour off one line or label',
128
+ group: 'On the Drawing Filter canvas',
129
+ persistence: 'none',
130
+ interaction: 'gesture',
131
+ risk: [],
132
+ guidance: 'on-demand',
133
+ why: 'Click a line on the drawing — no tool to arm first. Use it when you can see the elements you want but do not know which layer or colour they are on.',
134
+ });
135
+
136
+ def('filter.eyedropper-add', {
137
+ label: 'Add a sampled value to the filter',
138
+ actsOn: 'Ticks the sampled layer, thickness or colour',
139
+ group: 'On the Drawing Filter canvas',
140
+ persistence: 'local',
141
+ interaction: 'instant',
142
+ risk: [],
143
+ guidance: 'on-demand',
144
+ why: 'Add one criterion at a time, or all three at once — the fastest way to build a filter from an element you can already see.',
145
+ });
146
+
147
+ def('filter.pan-zoom', {
148
+ label: 'Pan and zoom the drawing',
149
+ actsOn: 'Moves the view only',
150
+ group: 'On the Drawing Filter canvas',
151
+ persistence: 'local',
152
+ interaction: 'gesture',
153
+ risk: [],
154
+ guidance: 'on-demand',
155
+ why: 'Drag to pan, wheel to zoom. A drag never samples an element — only a click that did not move does.',
156
+ });
157
+ })();