@liquidcars/atlas 0.1.52 → 0.2.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.
package/README.md CHANGED
@@ -195,6 +195,7 @@ generar el archivo.
195
195
  ## Contrato de datos
196
196
 
197
197
  - `palette`: mapa de nombres de color a valores CSS/hex.
198
+ - `libraries` (opcional): librerías de geometrías de autor publicadas en npm y vinculadas por el modelo, no por Studio. Cada entrada declara `package`, una `version` semántica exacta y, opcionalmente, el `namespace` esperado. Studio limita inicialmente esta carga dinámica a paquetes `@liquidcars/atlas-geometry-*`.
198
199
  - `theme` (opcional): configuración de `background`, `lighting`, `panel`, `toolbar`, `breadcrumbs`, `hint` y `ui`. `ui` permite mostrar u ocultar `panel`, `toolbar`, `breadcrumbs` y `hint`.
199
200
  - `render.camera` (opcional): vista inicial con `position`, `target` y `zoom`. Las coordenadas pertenecen al espacio del modelo; `zoom` conserva el encuadre relativo entre tamaños de visor.
200
201
  - `render.initialMode`: `2d` o `3d`. `render.views."2d".theme` admite `auto` (hereda el fondo del documento), `light` o `dark`; `render.views."2d".grid` activa o desactiva los puntos (por defecto, `true`). `render.views."2d".background` permite un color CSS concreto. `render.ui.toolbar` acepta `true`, `false` o una lista como `[mode, zoom, fit]` para mostrar solo esos controles.
@@ -541,3 +542,9 @@ presentation as well as its history.
541
542
  ## Public model contract
542
543
 
543
544
  `@liquidcars/atlas/model` exports `validateRuntimeModel`, `runtimeModel`, `runtimeSnapshot`, relation normalization and presentation capture without DOM, Three or layout. It validates supplied vectors and hierarchy before core applies defaults. See the [model/document contract](../atlas-layout/spec/ATLAS-MODEL-CONTRACT-v1.md).
545
+
546
+ ## 0.2.0: accelerated diagram
547
+
548
+ Interactive 2D now draws the independently calculated diagram using an orthographic WebGL camera. The orientation cube, pseudo-camera, focus, item/relationship filters and layout spacing remain available. Pan and zoom do not recalculate layout. Containers are packed bottom-up with their complete subtrees: unrelated bounds remain separate and descendants stay within their parents. Light/dark backgrounds, a dotted grid, flat geometry and cached captions preserve the diagram style.
549
+
550
+ `computeDiagramLayout(atlas, options)` returns layout data without generating SVG. `renderDiagramSvg` / `exportDiagramSvg` remain explicit vector exports using the same layout and reusable geometry symbols. Canonical model positions remain unchanged. Interactive diagrams require WebGL; hosts should offer a list/tree alternative if it is unavailable. Detached geometry building and vector export remain available without a GPU. Camera and diagram state are distinct and retain their existing APIs.