@zumer/snapdom 3.3.4 → 3.3.5

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
@@ -87,7 +87,7 @@ Install the core and, when you need them, the official plugins; choose a core su
87
87
  npm i @zumer/snapdom@latest @zumer/snapdom-plugins@latest
88
88
  ```
89
89
 
90
- Plugins 4.x in this checkout require core 3.x. The full PDF and Vector exporters are open source under MIT here, but have not been published to npm; the `@latest` command above does not install these new exporters. Run `npm run compile` and `npm run site` to try them against the local build.
90
+ Plugins 4.x require SnapDOM 3.3.0 or newer within 3.x. The full PDF and Vector exporters are MIT-licensed and available on npm in `@zumer/snapdom-plugins` 4.x. The `@latest` command above installs the published release.
91
91
 
92
92
  Or load it in a browser:
93
93
 
@@ -157,7 +157,7 @@ const result = await snapdom(card, {
157
157
  });
158
158
  ```
159
159
 
160
- `width` and `height` define output size. If only one is set, the aspect ratio is preserved. `scale` applies when neither is set, and `dpr` multiplies the pixel dimensions.
160
+ `width` and `height` define output size. If only one is set, the aspect ratio is preserved. `scale` applies when neither is set, and `dpr` multiplies the pixel dimensions. `download()` always uses DPR 1, so the file matches the element's CSS size; pass `scale: devicePixelRatio` for a file as sharp as the screen.
161
161
 
162
162
  | Common option | Default | Purpose |
163
163
  | --- | --- | --- |
@@ -215,7 +215,7 @@ for (let y = 0; y < h0; y += pieceHeight) {
215
215
 
216
216
  ### Export HTML or structured context
217
217
 
218
- Official plugins are published separately as `@zumer/snapdom-plugins`. Plugins 4.x in this checkout require core 3.x and include the full PDF and Vector exporters under MIT. Their sources live in `packages/plugins/`.
218
+ Official plugins are published separately as `@zumer/snapdom-plugins`. Plugins 4.x require SnapDOM 3.3.0 or newer within 3.x and include the full PDF and Vector exporters under MIT. Their sources live in `packages/plugins/`.
219
219
 
220
220
  ```js
221
221
  import { htmlExport, contextExport } from '@zumer/snapdom-plugins';
@@ -232,7 +232,7 @@ The same plugin system supports overlays, redaction and custom exporters. Local
232
232
 
233
233
  ### Export PDF and editable vectors
234
234
 
235
- These examples use plugins 4.x from this checkout. PDF returns a `Blob` with searchable, selectable text, links, pagination and optional form fields. Vector returns an SVG string without `<foreignObject>`, preserving supported shapes and editable text.
235
+ These examples use the published `@zumer/snapdom-plugins` 4.x package. PDF returns a `Blob` with searchable, selectable text, links, pagination and optional form fields. Vector returns an SVG string without `<foreignObject>`, preserving supported shapes and editable text.
236
236
 
237
237
  ```js
238
238
  import { snapdom } from '@zumer/snapdom';
@@ -271,7 +271,7 @@ async function refresh(element) {
271
271
  }
272
272
  ```
273
273
 
274
- `result.meta` contains the capture geometry needed to place an exported image over the source interface. The [labs](https://snapdom.dev/labs.html) show textures, mirrors and transitions.
274
+ `result.meta` contains the capture geometry needed to place an exported image over the source interface. The [labs](https://snapdom.dev/showcase/#labs) show textures, mirrors and transitions.
275
275
 
276
276
  ## What's new in v3
277
277
 
@@ -368,10 +368,10 @@ For a useful comparison, use the same scene, output format, scale and DPR. Compa
368
368
 
369
369
  ## Documentation
370
370
 
371
- - [Interactive Playground](https://snapdom.dev/playground/), [PDF demos](https://snapdom.dev/pro/pdf/) and [Vector demos](https://snapdom.dev/pro/vector/)
371
+ - [Plugin demos](https://snapdom.dev/showcase/#plugins), [PDF demos](https://snapdom.dev/pro/pdf/) and [Vector demos](https://snapdom.dev/pro/vector/)
372
372
  - [v2 source](https://github.com/zumerlab/snapdom/tree/v2)
373
373
  - [API](https://snapdom.dev/docs/api/) and [options](https://snapdom.dev/docs/options/)
374
- - [Framework guides](https://snapdom.dev/guides/) and [how-to examples](https://snapdom.dev/how-to/)
374
+ - [Framework guides](https://snapdom.dev/how-to/#frameworks) and [how-to examples](https://snapdom.dev/how-to/)
375
375
  - [Official plugins](packages/plugins/README.md), [plugin specification](PLUGIN_SPEC.md) and [contributing plugins](CONTRIBUTING_PLUGINS.md)
376
376
  - [Architecture](ARCHITECTURE.md) and [technical features](FEATURES.md)
377
377