Integrate compact BIM inspector, measurement editing and shared tooltips

This commit is contained in:
DCCONSTRUCTIONS
2026-11-16 14:34:19 +03:00
parent 996ce7efdf
commit a5e4fba807
12 changed files with 52 additions and 43 deletions
+8 -8
View File
@@ -10,7 +10,7 @@
"hasInstallScript": true,
"dependencies": {
"@noble/hashes": "^2.2.0",
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.32.tgz",
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.46.tgz",
"@nodedc/map-cesium-react": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/map-cesium-react",
"@nodedc/page-patterns": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/page-patterns",
"@nodedc/tokens": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/tokens",
@@ -64,19 +64,19 @@
},
"../../../NODEDC_DESIGN_GUIDELINE/packages/ui-core": {
"name": "@nodedc/ui-core",
"version": "0.7.0",
"version": "0.7.1",
"dependencies": {
"@nodedc/tokens": "0.6.0"
}
},
"../../../NODEDC_DESIGN_GUIDELINE/packages/ui-react": {
"name": "@nodedc/ui-react",
"version": "0.7.0",
"version": "0.7.1",
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@nodedc/ui-core": "0.7.0",
"@nodedc/ui-core": "0.7.1",
"lucide-react": "^0.468.0"
},
"devDependencies": {
@@ -884,11 +884,11 @@
}
},
"node_modules/@nodedc/bim-viewer": {
"version": "0.2.32",
"resolved": "file:../../vendor/bim/nodedc-bim-viewer-0.2.32.tgz",
"integrity": "sha512-672oj6S4Mps1JsTUhdUE4VKfJPuwTJqJ8KZMHXCW1k2slpdpz9IXLeUANdImyDaXlvaPGUGwvI8Ml8M9ftPArg==",
"version": "0.2.46",
"resolved": "file:../../vendor/bim/nodedc-bim-viewer-0.2.46.tgz",
"integrity": "sha512-nlI4IVgrdVXKRsDd1VwH/7J30SC6z1rV68+/I/yCJwiJso7dX2asuUrubAweWviy6oGr49PpYHt7lzS9emny2g==",
"peerDependencies": {
"@nodedc/ui-react": "0.7.0",
"@nodedc/ui-react": "0.7.1",
"react": ">=19 <20",
"react-dom": ">=19 <20"
}
+1 -1
View File
@@ -15,7 +15,7 @@
},
"dependencies": {
"@noble/hashes": "^2.2.0",
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.32.tgz",
"@nodedc/bim-viewer": "file:../../vendor/bim/nodedc-bim-viewer-0.2.46.tgz",
"@nodedc/map-cesium-react": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/map-cesium-react",
"@nodedc/page-patterns": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/page-patterns",
"@nodedc/tokens": "file:../../../NODEDC_DESIGN_GUIDELINE/packages/tokens",
@@ -45,8 +45,8 @@ export function PlannerExperience({worldId,worldSha,runtime,viewport,onVisibilit
{visible&&memory?createPortal(<svg className="ai-local-editor__markers" viewBox="0 0 1280 720" preserveAspectRatio="none" aria-label="Память проездов">
{memory.attempts.map((attempt,i)=>{const p=projected[i];if(!p)return null;
const label=attemptLabel(attempt),color=URBAN_COLORS[attempt.status==="unresolved"?"attempt":"revisited"];
return <g key={attempt.id} role="img" aria-label={label} tabIndex={0} style={{pointerEvents:"auto"}}>
<title>{label}</title><circle cx={p[0]*1280} cy={p[1]*720} r="7" fill={`rgb(${color.join(",")})`}/>
return <g key={attempt.id} role="img" data-nodedc-tooltip={label} aria-label={label} tabIndex={0} style={{pointerEvents:"auto"}}>
<circle cx={p[0]*1280} cy={p[1]*720} r="7" fill={`rgb(${color.join(",")})`}/>
</g>;
})}
</svg>,viewport):null}
@@ -38,21 +38,20 @@ export function SemanticEditOverlay(props:SemanticOverlayProps) {
{props.editing&&!props.blocked&&base&&g?<g aria-label="Пивот перемещения">
{(["x","y","z"] as const).map(axis=>{const end=g[axis];if(!end)return null;const p=[end[0]*rect.width,end[1]*rect.height],d=Math.hypot(p[0]-base[0],p[1]-base[1]);if(d<12)return null;
const ux=(p[0]-base[0])/d,uy=(p[1]-base[1])/d;
return <g key={axis} data-semantic-axis={axis} style={{pointerEvents:"stroke",cursor:"move"}}>
<title>{`Переместить по ${axis.toUpperCase()}`}</title>
return <g key={axis} data-nodedc-tooltip={`Переместить по ${axis.toUpperCase()}`} aria-label={`Переместить по ${axis.toUpperCase()}`} data-semantic-axis={axis} style={{pointerEvents:"stroke",cursor:"move"}}>
<line x1={base[0]} y1={base[1]} x2={p[0]} y2={p[1]} stroke="transparent" strokeWidth={18}/>
<line x1={base[0]} y1={base[1]} x2={p[0]} y2={p[1]} stroke={g.colors[axis]} strokeWidth={3}/>
<path d={`M${p[0]},${p[1]} L${p[0]-ux*12-uy*5},${p[1]-uy*12+ux*5} L${p[0]-ux*12+uy*5},${p[1]-uy*12-ux*5} Z`} fill={g.colors[axis]}/>
<text x={p[0]+7} y={p[1]-7} fill={g.colors[axis]} fontSize={12}>{axis.toUpperCase()}</text>
</g>;
})}
<rect data-semantic-axis={props.axis} x={base[0]-7} y={base[1]-7} width={14} height={14} fill={color} stroke="var(--nodedc-glass-panel-bg)" strokeWidth={2} style={{pointerEvents:"all",cursor:"move"}}><title>{`Переместить: ${props.axis.toUpperCase()}`}</title></rect>
{chosen[0]&&(isRigidMarking(chosen[0])||selected?.object)?<circle data-semantic-axis="rotate" cx={base[0]} cy={base[1]} r={48} fill="none" stroke={color} strokeWidth={3} style={{pointerEvents:"stroke",cursor:"grab"}}><title>Повернуть элемент в плоскости</title></circle>:null}
<rect data-nodedc-tooltip={`Переместить: ${props.axis.toUpperCase()}`} aria-label={`Переместить: ${props.axis.toUpperCase()}`} data-semantic-axis={props.axis} x={base[0]-7} y={base[1]-7} width={14} height={14} fill={color} stroke="var(--nodedc-glass-panel-bg)" strokeWidth={2} style={{pointerEvents:"all",cursor:"move"}}/>
{chosen[0]&&(isRigidMarking(chosen[0])||selected?.object)?<circle data-nodedc-tooltip="Повернуть элемент в плоскости" aria-label="Повернуть элемент в плоскости" data-semantic-axis="rotate" cx={base[0]} cy={base[1]} r={48} fill="none" stroke={color} strokeWidth={3} style={{pointerEvents:"stroke",cursor:"grab"}}/>:null}
</g>:null}
{props.editing&&node&&props.selection.length===1?(["incoming","outgoing"] as const).map(key=>{
const a=project(node.point),b=project(curveControlPoint(node,key,handleScale));
if(!a||!b||!node[key].some(Boolean))return null;
return <g key={key} data-semantic-handle-scale={handleScale}><line x1={a[0]} y1={a[1]} x2={b[0]} y2={b[1]} stroke="var(--nodedc-glass-panel-bg)" strokeWidth={4}/><line x1={a[0]} y1={a[1]} x2={b[0]} y2={b[1]} stroke={color} strokeWidth={1.5}/><circle data-semantic-handle={key} cx={b[0]} cy={b[1]} r={6} fill="var(--nodedc-text-primary)" stroke={color} strokeWidth={2} style={{pointerEvents:"all",cursor:"move"}}><title>Ручка кривой</title></circle></g>;
return <g key={key} data-semantic-handle-scale={handleScale}><line x1={a[0]} y1={a[1]} x2={b[0]} y2={b[1]} stroke="var(--nodedc-glass-panel-bg)" strokeWidth={4}/><line x1={a[0]} y1={a[1]} x2={b[0]} y2={b[1]} stroke={color} strokeWidth={1.5}/><circle data-nodedc-tooltip="Ручка кривой" aria-label="Ручка кривой" data-semantic-handle={key} cx={b[0]} cy={b[1]} r={6} fill="var(--nodedc-text-primary)" stroke={color} strokeWidth={2} style={{pointerEvents:"all",cursor:"move"}}/></g>;
}):null}
</svg>,viewport);
}
+3 -2
View File
@@ -1,3 +1,4 @@
import { TooltipProvider } from "@nodedc/ui-react";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { applyNodedcTheme } from "@nodedc/ui-core";
@@ -23,11 +24,11 @@ rootElement.dataset.nodedcUi = "";
applyNodedcTheme(rootElement, { theme: "dark" });
createRoot(rootElement).render(
<StrictMode>
<StrictMode><TooltipProvider>
<DevicePluginHostProvider plugins={installedDevicePlugins} nodeSensorContributions={installedNodeSensorContributions}>
<ComputeContourProvider>
<PlanningTestProvider><App /></PlanningTestProvider>
</ComputeContourProvider>
</DevicePluginHostProvider>
</StrictMode>,
</TooltipProvider></StrictMode>,
);
+2 -2
View File
@@ -18,7 +18,7 @@ dependencies = [
"httpx>=0.28,<1",
"lz4>=4.4,<5",
"missioncore-plugin-sdk",
"nodedc-bim-module==0.2.12",
"nodedc-bim-module==0.2.14",
"paho-mqtt>=2.1,<3",
"pillow>=12,<13",
"pyyaml>=6.0,<7",
@@ -29,7 +29,7 @@ dependencies = [
]
[tool.uv.sources]
nodedc-bim-module = { path = "vendor/bim/nodedc_bim_module-0.2.12-py3-none-any.whl" }
nodedc-bim-module = { path = "vendor/bim/nodedc_bim_module-0.2.14-py3-none-any.whl" }
missioncore-plugin-sdk = { path = "packages/plugin-sdk", editable = true }
[project.optional-dependencies]
Generated
+4 -4
View File
@@ -479,8 +479,8 @@ wheels = [
[[package]]
name = "nodedc-bim-module"
version = "0.2.12"
source = { path = "vendor/bim/nodedc_bim_module-0.2.12-py3-none-any.whl" }
version = "0.2.14"
source = { path = "vendor/bim/nodedc_bim_module-0.2.14-py3-none-any.whl" }
dependencies = [
{ name = "fastapi" },
{ name = "httpx" },
@@ -488,7 +488,7 @@ dependencies = [
{ name = "uvicorn" },
]
wheels = [
{ filename = "nodedc_bim_module-0.2.12-py3-none-any.whl", hash = "sha256:f88640ddf2dc2f8a01111dda8a78654a79b615f3d56e69e468d7fc34dd4b0061" },
{ filename = "nodedc_bim_module-0.2.14-py3-none-any.whl", hash = "sha256:f4a91742b490932490eb2eb6851b16d1d32e8681920e9d64e1d0fee30a8149ec" },
]
[package.metadata]
@@ -561,7 +561,7 @@ requires-dist = [
{ name = "httpx", specifier = ">=0.28,<1" },
{ name = "lz4", specifier = ">=4.4,<5" },
{ name = "missioncore-plugin-sdk", editable = "packages/plugin-sdk" },
{ name = "nodedc-bim-module", path = "vendor/bim/nodedc_bim_module-0.2.12-py3-none-any.whl" },
{ name = "nodedc-bim-module", path = "vendor/bim/nodedc_bim_module-0.2.14-py3-none-any.whl" },
{ name = "paho-mqtt", specifier = ">=2.1,<3" },
{ name = "pillow", specifier = ">=12,<13" },
{ name = "pyyaml", specifier = ">=6.0,<7" },
+4 -2
View File
@@ -2,8 +2,8 @@
Immutable packages from the independent [NODEDC_BIM_MOD](https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD) repository:
- Python host services 0.1.4: `release.json`, wheel, `uv.lock` integrity.
- Browser workspace 0.1.9: `client-release.json`, npm tarball, Control Station lockfile integrity. Runtime workers and third-party notices are included in the tarball.
- Python host services 0.2.14: `release.json`, wheel, `uv.lock` integrity.
- Browser workspace 0.2.46: `client-release.json`, npm tarball, Control Station lockfile integrity. Runtime workers and third-party notices are included in the tarball.
Core consumes these versioned artifacts without importing a sibling checkout or copying the domain implementation. Update through a new module release, identity review and host qualification. The Worker image and durable data volume remain on Worker 006. Private connection settings and service tokens are never part of these releases.
@@ -14,3 +14,5 @@ The retained 0.1.0/0.1.1 artifacts identify the previous qualified release. New
Full-version deletion requires Worker 0.1.2 or later. Do not roll back to an implementation without deletion journals while retirement is pending; retain the durable journals and deploy a compatible forward fix. Local-copy eviction is still separate.
Viewer preferences include new fields; host 0.1.3 cannot parse the new cube fields. Keep host 0.1.4 when reverting a client instead of discarding durable meta.json. Worker remains 0.1.2.
Current transform inspector uses host 0.2.14 and UI 0.2.46 with Design Guideline 0.7.1. Worker stays 0.2.12. Whole-layer and per-IFC-item transforms are scene metadata, never modifications to original files. UI tool window is named «Инспектор»; compact axis fields and shared glass tooltips are shipped by the portable module. Current qualification is from the local working tree; see release manifests for provenance and limits.
+15 -10
View File
@@ -1,18 +1,18 @@
{
"schema_version": "missioncore.bim-client-release/v1",
"repository": "https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD",
"source_commit": "d38173085654b63d4440f0574a889b3ef125185b",
"package": "nodedc-bim-viewer-0.2.32.tgz",
"sha256": "425395c61783251ac0b67a8b114593cbfa1346112f30828a60e828776ed3e2ff",
"source_commit": "2be6e9e8773cc0426a7a9aaf00935ce97e03130c",
"package": "nodedc-bim-viewer-0.2.46.tgz",
"sha256": "181fb067272cc5512e503b276d50606780f8b0faa49b18f7e6d6be4948096bfe",
"types": "pass",
"contract_tests": 107,
"visual_acceptance": "KU layer notes list/tiles/gallery and exact per-project view roundtrip passed; project deletion confirmation open/cancel only; 219074194-point LAS rendered and reopened after full page reload; IAB held W and mouse drag changed heading and displayed flight speed, then Fit restored cloud overview",
"contract_tests": 167,
"visual_acceptance": "KU layer notes list/tiles/gallery and exact per-project view roundtrip passed; project deletion confirmation open/cancel only; 219074194-point LAS rendered and reopened after full page reload; IAB held W and mouse drag changed heading and displayed flight speed, then Fit restored cloud overview; 2026-11-16: individual IFC translation/rotation/scale, group translation and Ctrl/Command undo checked; compact inspector has nine editable fields and no caption/section plates; window and toolbar read «Инспектор»; single shared tooltip verified in viewer and main navigation: radius 14px, blur 18px, border/outline 0, 12px text.; 0.2.46: background click cleared whole cloud and BIM group selected through tree in navigate mode; inspector and selected rows removed. Compact axis headings align on one line (verified equal top coordinate), units hidden in headings. Regression covers geometry/modifier clicks and orbit returning to its starting point.",
"evidence": "docs/BIM_MODULE.md",
"qualification_date": "2026-11-16",
"design_guideline_commit": "d0648014f58daf9b94b6bf8ba681ef0aa82c1e82",
"design_guideline_commit": "f8aa8022f14f8f8050a411c5f40a29ce03c9b6ba",
"core_frontend_tests": 1608,
"core_frontend_failures": 0,
"validation_context": "107 module client and 1608 Core frontend checks; architecture, typography, typecheck and build passed. Large LAS upload/reload/reopen and notes acceptance recorded in docs/BIM_MODULE.md.",
"validation_context": "167 module client tests; 1608 Core frontend tests; architecture, typography, typecheck and production build passed.",
"visual_limits": [
"Native RMB drag not independently automated; actual OrbitControls pan regression passed",
"Native OS layout switch not exercised; physical code fixtures cover Cyrillic/IME labels",
@@ -20,10 +20,15 @@
"Pivot samples currently rendered depth/LOD with a two-CSS-pixel neighbour fallback; not exhaustive GPU/material qualification",
"Preflight File handles remain browser-session resources; full reload/browser shutdown does not resume local checks or unsubmitted drafts.",
"Native Ctrl+drag was not independently automated; actual gesture/runtime tests cover both configured rotation modes.",
"Manual whole-material placement supports translation and vertical-axis rotation; no scale, roll/pitch or automatic scan registration.",
"Thin range variant uses canonical theme tokens; light theme and every accent palette were not independently visually qualified.",
"Live note deletion and native fullscreen were not newly qualified; note deletion/recovery is covered by focused tests.",
"1895 imported camera notes have source poses; 75 photographs remain explicitly unplaced. Exact pixel reprojection, lens distortion and roll are not qualified.",
"The operator stopped further photo admission at 1970 photographs plus one text note. No additional image imports are pending."
]
"The operator stopped further photo admission at 1970 photographs plus one text note. No additional image imports are pending.",
"IFC sub-element pointer transforms preview the shared frame; geometry updates on release. Transform history is session-local."
],
"source_base_commit": "868838651ed5af1b00c81843f2937ea7806a652e",
"source_state": "committed",
"design_guideline_version": "0.7.1",
"design_guideline_source_state": "committed",
"inspector_evidence": "inspector-compact-axes.jpg (operator Codex workspace)"
}
Binary file not shown.
Binary file not shown.
+9 -7
View File
@@ -1,18 +1,20 @@
{
"schema_version": "missioncore.bim-release/v1",
"repository": "https://git.dcserve.ru/dctouch/NODEDC_BIM_MOD",
"source_commit": "dd201554220a10d3825b04a146f0f044f47355c5",
"package": "nodedc_bim_module-0.2.12-py3-none-any.whl",
"sha256": "f88640ddf2dc2f8a01111dda8a78654a79b615f3d56e69e468d7fc34dd4b0061",
"python_tests": 161,
"source_commit": "2be6e9e8773cc0426a7a9aaf00935ce97e03130c",
"package": "nodedc_bim_module-0.2.14-py3-none-any.whl",
"sha256": "f4a91742b490932490eb2eb6851b16d1d32e8681920e9d64e1d0fee30a8149ec",
"python_tests": 167,
"node_reader_tests": 1,
"scope": "Project retirement, per-project viewer metadata, interrupted upload recovery and bounded transport retries",
"scope": "Host project affine transforms for full materials and individual IFC items; existing viewer and workspace contracts.",
"qualification_date": "2026-11-16",
"worker_source_commit": "dd201554220a10d3825b04a146f0f044f47355c5",
"worker_image": "sha256:dd987e8201391ec92cc8a6f9e10f9d4b9e50ada45fb6a68f31d2f5775925af32",
"core_adapter_tests": 2,
"notes_regression_tests": 13,
"validation_context": "161 server checks, 2 Core adapter checks; installed Core host and single Worker 0.2.12 healthy. Existing 7448522823-byte LAS upload resumed, SHA verified, 219074194 points published, Core ready copy verified; no transfer/job scratch remains.",
"validation_context": "167 server tests passed; Core host installed 0.2.14. Worker remains 0.2.12, with no conversion or storage change for the inspector.",
"worker_package_version": "0.2.12",
"worker_cloud_regression_tests": 19
"worker_cloud_regression_tests": 19,
"source_base_commit": "868838651ed5af1b00c81843f2937ea7806a652e",
"source_state": "committed"
}