@liquidcars/atlas 0.1.12 → 0.1.13
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 +4 -3
- package/demo/index.html +2 -2
- package/dist/liquidcars-atlas.js +12 -3
- package/index.html +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Después abre <http://localhost:4173/> (o <http://localhost:4173/demo/>). La dem
|
|
|
17
17
|
```html
|
|
18
18
|
<script type="module" src="./dist/liquidcars-atlas.js"></script>
|
|
19
19
|
|
|
20
|
-
<liquidcars-atlas height="720" relation-mode="selected" shell-labels="on">
|
|
20
|
+
<liquidcars-atlas height="720" relation-mode="selected" shell-labels="on" toolbar="on">
|
|
21
21
|
<script type="application/json">
|
|
22
22
|
{
|
|
23
23
|
"palette": {
|
|
@@ -51,6 +51,7 @@ const atlas = document.querySelector('liquidcars-atlas');
|
|
|
51
51
|
atlas.model = model;
|
|
52
52
|
atlas.select('distribution-agreement');
|
|
53
53
|
atlas.setRelationMode('all'); // 'all' | 'selected' | 'none'
|
|
54
|
+
atlas.setToolbarVisible(true); // también se puede usar toolbar="on" | "off"
|
|
54
55
|
atlas.setTheme({
|
|
55
56
|
background: { color: '#07121e', glow: '#20394b' },
|
|
56
57
|
lighting: { ambient: 1.8, directional: 3.0 },
|
|
@@ -93,9 +94,9 @@ Una vez publicado, los consumidores podrán instalarlo con `npm install @liquidc
|
|
|
93
94
|
Para probar el paquete sin publicarlo, basta con instalar el tarball generado:
|
|
94
95
|
|
|
95
96
|
```bash
|
|
96
|
-
npm install ./liquidcars-atlas-0.1.
|
|
97
|
+
npm install ./liquidcars-atlas-0.1.13.tgz
|
|
97
98
|
```
|
|
98
99
|
|
|
99
100
|
## Estado
|
|
100
101
|
|
|
101
|
-
`0.1.
|
|
102
|
+
`0.1.13` mantiene la corrección del desplazamiento interno del texto y ancla las etiquetas a las dimensiones reales de las geometrías redondeadas. Además fija un margen superior absoluto para las etiquetas secundarias de contenedores abiertos, situado dentro del frontal del contenedor y sin depender de sus dimensiones. También corrige los sólidos truncados, normaliza sus dimensiones finales, refuerza la visibilidad de la toolbar con el atributo `toolbar="on"`/`"off"` y `setToolbarVisible()`, desacopla la paleta por defecto de nombres de dominio y añade actualización programática de la paleta con `setPalette`.
|
package/demo/index.html
CHANGED
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
liquidcars-atlas { display: block; width: 100%; max-width: 1480px; margin: 0 auto; }
|
|
15
15
|
code { color: #85e5d3; }
|
|
16
16
|
</style>
|
|
17
|
-
<script type="module" src="../dist/liquidcars-atlas.js?v=0.1.
|
|
17
|
+
<script type="module" src="../dist/liquidcars-atlas.js?v=0.1.13"></script>
|
|
18
18
|
</head>
|
|
19
19
|
<body>
|
|
20
20
|
<header>
|
|
21
21
|
<h1>LiquidCars Atlas</h1>
|
|
22
|
-
<p>Prueba de distribución del componente <code><liquidcars-atlas></code> · v0.1.
|
|
22
|
+
<p>Prueba de distribución del componente <code><liquidcars-atlas></code> · v0.1.13</p>
|
|
23
23
|
</header>
|
|
24
24
|
<main>
|
|
25
25
|
<liquidcars-atlas id="atlas" height="720" relation-mode="selected" shell-labels="on"></liquidcars-atlas>
|
package/dist/liquidcars-atlas.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! LiquidCars Atlas 0.1.
|
|
1
|
+
/*! LiquidCars Atlas 0.1.13 | MIT */
|
|
2
2
|
|
|
3
3
|
// src/three.core.js
|
|
4
4
|
var REVISION = "180";
|
|
@@ -29223,7 +29223,7 @@ function makeLabel(text, color, dimensions, type = "") {
|
|
|
29223
29223
|
}
|
|
29224
29224
|
var LiquidCarsAtlas = class extends HTMLElement {
|
|
29225
29225
|
static get observedAttributes() {
|
|
29226
|
-
return ["height", "relation-mode", "shell-labels"];
|
|
29226
|
+
return ["height", "relation-mode", "shell-labels", "toolbar"];
|
|
29227
29227
|
}
|
|
29228
29228
|
constructor() {
|
|
29229
29229
|
super();
|
|
@@ -29278,6 +29278,7 @@ var LiquidCarsAtlas = class extends HTMLElement {
|
|
|
29278
29278
|
this.showShellLabels = value !== "false";
|
|
29279
29279
|
this.invalidate();
|
|
29280
29280
|
}
|
|
29281
|
+
if (name === "toolbar" && this.ready) this._applyTheme();
|
|
29281
29282
|
}
|
|
29282
29283
|
get model() {
|
|
29283
29284
|
return this.modelData;
|
|
@@ -29303,6 +29304,14 @@ var LiquidCarsAtlas = class extends HTMLElement {
|
|
|
29303
29304
|
this.invalidate();
|
|
29304
29305
|
return this;
|
|
29305
29306
|
}
|
|
29307
|
+
get toolbarVisible() {
|
|
29308
|
+
const value = this.getAttribute("toolbar");
|
|
29309
|
+
return value === "off" ? false : value === "on" ? true : this.theme.ui.toolbar !== false;
|
|
29310
|
+
}
|
|
29311
|
+
setToolbarVisible(value) {
|
|
29312
|
+
this.setAttribute("toolbar", value ? "on" : "off");
|
|
29313
|
+
return this;
|
|
29314
|
+
}
|
|
29306
29315
|
get styles() {
|
|
29307
29316
|
return this.theme;
|
|
29308
29317
|
}
|
|
@@ -29348,7 +29357,7 @@ var LiquidCarsAtlas = class extends HTMLElement {
|
|
|
29348
29357
|
const panel = this.shadowRoot.querySelector(".panel");
|
|
29349
29358
|
const hint = this.shadowRoot.querySelector(".hint");
|
|
29350
29359
|
if (atlas) atlas.dataset.panel = theme.ui.panel === false ? "hidden" : "visible";
|
|
29351
|
-
const toolbarVisible =
|
|
29360
|
+
const toolbarVisible = this.toolbarVisible;
|
|
29352
29361
|
const panelVisible = theme.ui.panel !== false;
|
|
29353
29362
|
const hintVisible = theme.ui.hint !== false;
|
|
29354
29363
|
if (toolbar) {
|
package/index.html
CHANGED
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
liquidcars-atlas { display: block; width: 100%; max-width: 1480px; margin: 0 auto; }
|
|
15
15
|
code { color: #85e5d3; }
|
|
16
16
|
</style>
|
|
17
|
-
<script type="module" src="./dist/liquidcars-atlas.js?v=0.1.
|
|
17
|
+
<script type="module" src="./dist/liquidcars-atlas.js?v=0.1.13"></script>
|
|
18
18
|
</head>
|
|
19
19
|
<body>
|
|
20
20
|
<header>
|
|
21
21
|
<h1>LiquidCars Atlas</h1>
|
|
22
|
-
<p>Prueba de distribución del componente <code><liquidcars-atlas></code> · v0.1.
|
|
22
|
+
<p>Prueba de distribución del componente <code><liquidcars-atlas></code> · v0.1.13</p>
|
|
23
23
|
</header>
|
|
24
24
|
<main>
|
|
25
25
|
<liquidcars-atlas id="atlas" height="720" relation-mode="selected" shell-labels="on"></liquidcars-atlas>
|