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:
+4
-3
@@ -1,7 +1,8 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import { test } from 'node:test';
|
||||
import { hasSourceEvidence, isArchifyHtml, readDiagramSource, stripSourceEvidence, typeFromFilename } from '../src/detect';
|
||||
import { pointerSegments, rangeForPointer, rangeForPointerYaml, yamlSyntaxProblems } from '../src/jsonPointer';
|
||||
import { pointerSegments, rangeForPointer, rangeForPointerYaml, yamlSyntaxProblems } from '../src/language/jsonPointer';
|
||||
import { isArchifyHtml, readDiagramSource, typeFromFilename } from '../src/sources/detect';
|
||||
import { hasSourceEvidence, stripSourceEvidence } from '../src/sources/evidence';
|
||||
|
||||
test('reads diagram_type from content', () => {
|
||||
const source = readDiagramSource('{"schema_version":1,"diagram_type":"sequence","meta":{}}', 'plain.json');
|
||||
@@ -49,7 +50,7 @@ test('json pointer ranges point at keys for containers and values for leaves', (
|
||||
});
|
||||
|
||||
test('.archify files are diagram sources typed by their content', async () => {
|
||||
const { diagramBaseName, isArchifyFile, isDiagramFileName } = await import('../src/detect');
|
||||
const { diagramBaseName, isArchifyFile, isDiagramFileName } = await import('../src/sources/detect');
|
||||
assert.ok(isArchifyFile('/w/My Platform.archify'));
|
||||
assert.ok(isDiagramFileName('/w/x.ARCHIFY'));
|
||||
assert.ok(isDiagramFileName('/w/x.workflow.json'));
|
||||
|
||||
Reference in New Issue
Block a user