@liquidcars/atlas 0.1.49 → 0.1.51
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 +33 -0
- package/dist/liquidcars-atlas.js +517 -363
- package/dist/liquidcars-atlas.js.map +1 -1
- package/package.json +1 -1
- package/src/diagram-svg.js +1 -1
- package/src/diagram-view.js +42 -12
- package/src/document-navigation.js +40 -13
- package/src/liquidcars-atlas.js +135 -24
package/README.md
CHANGED
|
@@ -191,6 +191,7 @@ generar el archivo.
|
|
|
191
191
|
- `palette`: mapa de nombres de color a valores CSS/hex.
|
|
192
192
|
- `theme` (opcional): configuración de `background`, `lighting`, `panel`, `toolbar`, `breadcrumbs`, `hint` y `ui`. `ui` permite mostrar u ocultar `panel`, `toolbar`, `breadcrumbs` y `hint`.
|
|
193
193
|
- `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.
|
|
194
|
+
- `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.
|
|
194
195
|
- `render.focus` (opcional): filtrado visual por selección. `mode` acepta `all` o `connected`, `effect` acepta `dim` o `hide`, y `layout` distingue posiciones estables (`preserve`) de una proyección recompilada (`reflow`).
|
|
195
196
|
- `render.relationMarker` (opcional): forma de los indicadores animados de relación. Admite `cone` (por defecto, conserva el sentido en capturas estáticas) o `ring`.
|
|
196
197
|
- `style.label.anchor` (opcional): posición predeterminada de las etiquetas de los elementos (`auto`, `top`, `bottom`, `left` o `right`). Si se omite, los elementos usan `bottom`; una entidad puede sobrescribirlo con su propio `style.label.anchor`. Los títulos de contenedores mantienen su colocación automática salvo override explícito.
|
|
@@ -471,3 +472,35 @@ In that fallback, Save opens a picker or downloads a copy because the selected
|
|
|
471
472
|
files cannot be written in place.
|
|
472
473
|
See `examples/hyperlinks` for two linked documents and an external Markdown
|
|
473
474
|
information file.
|
|
475
|
+
|
|
476
|
+
### Named models and cloud destinations
|
|
477
|
+
|
|
478
|
+
The optional `model` selector identifies a technical model key within the
|
|
479
|
+
destination document. Titles may change without changing the reference:
|
|
480
|
+
|
|
481
|
+
| Destination | Reference |
|
|
482
|
+
| --- | --- |
|
|
483
|
+
| Current document | `atlas:?model=process` |
|
|
484
|
+
| Local collection | `atlas:actors/dealer.atlas.md?model=inventory` |
|
|
485
|
+
| Current cloud publication | `atlas://cloud/DOCUMENT_ID@published?model=process` |
|
|
486
|
+
| Fixed cloud revision | `atlas://cloud/DOCUMENT_ID@r3?model=process` |
|
|
487
|
+
| Authorized cloud Draft | `atlas://cloud/DOCUMENT_ID@draft?model=process` |
|
|
488
|
+
|
|
489
|
+
Append `#entityId` to select an entity. URI-encode model keys and fragments.
|
|
490
|
+
Omitting `model` uses the destination document's `defaultModel`. A cloud origin
|
|
491
|
+
cannot resolve local document or content paths; a local origin may open cloud
|
|
492
|
+
documents through its host resolver.
|
|
493
|
+
|
|
494
|
+
The exported `atlasReferenceTarget(reference, from)` parses the document kind,
|
|
495
|
+
version and model selector. The resolver may return `context` alongside `uri`
|
|
496
|
+
and `model`; the runtime carries that context in history and navigation events.
|
|
497
|
+
Return a canonical revision URI when resolving `@published` to pin the visit.
|
|
498
|
+
Cloud history visits invoke the resolver again so the host can recheck access.
|
|
499
|
+
The runtime does not grant authorization or contact a cloud deployment itself.
|
|
500
|
+
|
|
501
|
+
Use `setNavigationGuard(async () => { ... })` to finish pending saves before
|
|
502
|
+
navigation. Resolution errors, missing models and missing entity fragments leave
|
|
503
|
+
the origin active. History retains 2D/3D mode, camera, diagram zoom and scroll,
|
|
504
|
+
selection, open containers and filters. Hosts that rebuild the component can use
|
|
505
|
+
`restoreNavigationState(state, { restorePresentation: true })` to restore its
|
|
506
|
+
presentation as well as its history.
|