Add a 3D view of every diagram; organise source by job; 0.6.0

3D view: a "3D" menu beside Export switches the diagram to a three.js
scene built from the live Archify SVG. Nodes become blocks topped with
the node as Archify draws it, relationships become lit pipes along
Archify's routes, and the canvas, frames, lanes and legend form the
floor. Clicks and hover go to the SVG nodes, so focus, the Semantic
Passport and the intent trace work as in 2D; Archify's own animations
(trace, node pulse, passport/path/lens flows) are mirrored live. The
menu also offers flat or stacked levels, reset view and a top view;
Export gains "3D view" (PNG). Trackpad scrolling pans, pinch and the
mouse wheel zoom, and the zoom buttons work beyond the 2D limits.
The scene draws only when something moves. New setting
archify.defaultView.

Source: src/ is split by job (commands, views, webview, archify,
sources, language, util, viewer3d); behaviour unchanged.
This commit is contained in:
2026-10-11 00:54:00 +03:00
parent 20786f4b5a
commit 97b3b5f685
40 changed files with 2553 additions and 353 deletions
+19 -4
View File
@@ -1,8 +1,8 @@
{
"name": "archify-vscode-ext",
"displayName": "Archify Diagram Viewer",
"description": "Archify diagrams in VS Code. Write diagrams as .archify files in YAML: they open as the interactive diagram, with live updates, validation, templates and completion. Also previews Archify's own JSON files (*.architecture.json, \u2026) and opens rendered Archify HTML.",
"version": "0.5.2",
"description": "Archify diagrams in VS Code. Write diagrams as .archify files in YAML: they open as the interactive diagram, with live updates, validation, templates and completion. Also previews Archify's own JSON files (*.architecture.json, …) and opens rendered Archify HTML.",
"version": "0.6.0",
"publisher": "root-at-skic",
"license": "MIT",
"icon": "media/icon.png",
@@ -41,7 +41,7 @@
"commands": [
{
"command": "archify.newDiagram",
"title": "Archify | New Diagram\u2026",
"title": "Archify | New Diagram…",
"icon": "$(new-file)"
},
{
@@ -61,7 +61,7 @@
},
{
"command": "archify.renderToHtml",
"title": "Archify | Render to HTML File\u2026",
"title": "Archify | Render to HTML File…",
"icon": "$(file-code)"
},
{
@@ -257,6 +257,19 @@
"default": "vscode",
"description": "Theme used when showing Archify diagrams."
},
"archify.defaultView": {
"type": "string",
"enum": [
"2d",
"3d"
],
"enumDescriptions": [
"Open diagrams as Archify draws them.",
"Open diagrams in the 3D view. The 3D button in the diagram toolbar switches back."
],
"default": "2d",
"description": "How diagrams open. Each open diagram remembers its own choice."
},
"archify.preview.liveUpdate": {
"type": "boolean",
"default": true,
@@ -340,6 +353,7 @@
},
"devDependencies": {
"@types/node": "^22.0.0",
"@types/three": "^0.186.0",
"@types/vscode": "~1.100.0",
"@vscode/test-electron": "^3.1.0",
"@vscode/vsce": "^3.0.0",
@@ -353,6 +367,7 @@
},
"homepage": "https://gitea.lego-cloud.eu/vscode-extensions/archify-vscode-ext#readme",
"dependencies": {
"three": "^0.186.1",
"yaml": "^2.9.1"
}
}