@liquidcars/atlas 0.1.45 → 0.1.46

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
@@ -163,6 +163,8 @@ const transparent = atlas.captureFrame(); // canvas 2D con alfa
163
163
  const themed = atlas.captureFrame({ background: "theme" }); // añade el fondo visual del componente
164
164
  const white = atlas.captureFrame({ background: "#ffffff" }); // fondo sólido opcional
165
165
  const presentation = atlas.captureFrame({ background: "transparent", scale: 2 }); // salida HD
166
+ const copied = await atlas.copyFrame({ background: "theme", scale: 2 }); // portapapeles PNG
167
+ const portable = await atlas.copyFrame({ background: "transparent", scale: 2, fallback: "download" });
166
168
  atlas.prepareForPrint();
167
169
  atlas.restoreAfterPrint();
168
170
  ```
@@ -178,6 +180,12 @@ premultiplicado a alfa directo para conservar el tono de los contenedores
178
180
  abiertos cuando el PNG se coloca sobre un fondo claro. Para evitar que un bloque se divida entre páginas, el
179
181
  componente aplica `break-inside: avoid` durante la impresión.
180
182
 
183
+ La toolbar incorpora las variantes PNG con fondo y transparente. Ambas usan
184
+ `copyFrame()` a resolución 2×; si el portapapeles de imágenes no está disponible,
185
+ la acción descarga `atlas-view.png`. La API emite `lc-image-export` con el método
186
+ empleado (`clipboard` o `download`) y `lc-image-export-error` si tampoco puede
187
+ generar el archivo.
188
+
181
189
  ## Contrato de datos
182
190
 
183
191
  - `palette`: mapa de nombres de color a valores CSS/hex.