@zumer/snapdom-plugins 4.4.1-dev.1 → 5.0.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.
Files changed (70) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +30 -83
  3. package/ascii-export.d.ts +0 -7
  4. package/ascii-export.js +0 -21
  5. package/index.d.ts +0 -3
  6. package/index.js +1 -4
  7. package/package.json +4 -19
  8. package/pdf/LICENSE +0 -21
  9. package/pdf/README.md +0 -22
  10. package/pdf/REFERENCE.md +0 -520
  11. package/pdf/src/frontmatter.js +0 -200
  12. package/pdf/src/furniture.js +0 -398
  13. package/pdf/src/index.js +0 -2415
  14. package/pdf/src/mega/README.md +0 -47
  15. package/pdf/src/mega/diag.js +0 -148
  16. package/pdf/src/mega/flow.js +0 -56
  17. package/pdf/src/mega/fonts.js +0 -287
  18. package/pdf/src/mega/forms.js +0 -479
  19. package/pdf/src/mega/labels.js +0 -43
  20. package/pdf/src/mega/meta.js +0 -145
  21. package/pdf/src/nav.js +0 -357
  22. package/pdf/src/paginate.js +0 -583
  23. package/pdf/src/tagged.js +0 -355
  24. package/pdf/src/text-layer.js +0 -1771
  25. package/pdf/src/writer/encrypt.js +0 -218
  26. package/pdf/src/writer/font.js +0 -507
  27. package/pdf/src/writer/index.js +0 -1135
  28. package/pdf/src/writer/subset.js +0 -387
  29. package/pdf.d.ts +0 -294
  30. package/pdf.js +0 -1
  31. package/stream/LICENSE +0 -21
  32. package/stream/README.md +0 -142
  33. package/stream/src/index.js +0 -41
  34. package/stream/src/overlays.js +0 -153
  35. package/stream/src/recorder.js +0 -41
  36. package/stream/src/stream.js +0 -686
  37. package/stream/src/webgl.js +0 -58
  38. package/stream.d.ts +0 -86
  39. package/stream.js +0 -1
  40. package/vector/CONTRACT.md +0 -903
  41. package/vector/LICENSE +0 -21
  42. package/vector/README.md +0 -35
  43. package/vector/src/adapters/snapdom.js +0 -795
  44. package/vector/src/collect/box.js +0 -1676
  45. package/vector/src/collect/font.js +0 -487
  46. package/vector/src/collect/image.js +0 -1458
  47. package/vector/src/collect/mathml.js +0 -272
  48. package/vector/src/collect/text.js +0 -3027
  49. package/vector/src/css/color.js +0 -823
  50. package/vector/src/css/gradient.js +0 -1126
  51. package/vector/src/css/matrix.js +0 -398
  52. package/vector/src/css/radius.js +0 -124
  53. package/vector/src/css/shadow.js +0 -201
  54. package/vector/src/emit/figma-json.js +0 -1995
  55. package/vector/src/emit/h2d-vector.js +0 -215
  56. package/vector/src/emit/h2d.js +0 -1147
  57. package/vector/src/emit/pdf.js +0 -2571
  58. package/vector/src/emit/svg-flat.js +0 -4842
  59. package/vector/src/exclusion.js +0 -13
  60. package/vector/src/index.js +0 -2910
  61. package/vector/src/paint.js +0 -2908
  62. package/vector/src/public.js +0 -57
  63. package/vector/src/writer/encrypt.js +0 -227
  64. package/vector/src/writer/font.js +0 -507
  65. package/vector/src/writer/index.js +0 -1148
  66. package/vector/src/writer/subset.js +0 -387
  67. package/vector/svd/index.js +0 -72
  68. package/vector/svd/schema.js +0 -985
  69. package/vector.d.ts +0 -28
  70. package/vector.js +0 -1
package/vector/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 ZumerLab
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/vector/README.md DELETED
@@ -1,35 +0,0 @@
1
- # Vector plugin
2
-
3
- MIT-licensed editable SVG and Figma clipboard export for SnapDOM.
4
- The plugin lives inside the official `packages/plugins` workspace and requires core 3.x.
5
- SVD lives in `svd/` as an internal format; no additional npm package is needed.
6
-
7
- ```js
8
- import { snapdom } from '@zumer/snapdom'
9
- import { vector } from '@zumer/snapdom-plugins/vector'
10
-
11
- const result = await snapdom(element, { plugins: [vector()] })
12
- const svg = await result.toVector()
13
- copyButton.addEventListener('click', () => result.toFigma()) // HTTPS or localhost
14
- ```
15
-
16
- `exclude` accepts a selector, a predicate, or an array of either. Export-time
17
- exclusions override the factory default. Keep the source element connected through export. `toVector()` returns a string;
18
- `toFigma()` resolves without a return value after writing the clipboard.
19
- Register per capture to avoid applying
20
- the render hook to unrelated captures. SVG preserves editable text and supported
21
- shapes; unsupported paint is diagnosed by the engine.
22
-
23
- The plugin is available on npm in `@zumer/snapdom-plugins` 4.x.
24
- Run `npm run test:vector` from the monorepo root. The migrated baselines are
25
- unchanged. Inline SVG export omits inactive mask longhands from unmasked nodes,
26
- while retaining active masks and embedded stylesheet behavior.
27
-
28
- `src/public.js` defines the public `toVector()` and `toFigma()` contract.
29
- `src/index.js` and the emitters retain the internal engine used by the suites.
30
- `figma-plugin/` is the optional SVD consumer exercised by those suites; the public
31
- clipboard export does not require installing that plugin.
32
-
33
- ## Live demo
34
-
35
- Run `npm run compile` and `npm run site` from the monorepo root, then open `/plugins/vector/` or `/showcase/`. The demo exports real SVG and can copy artwork to Figma. The retained `/pro/` URL does not denote a paid product. See [the public contract](CONTRACT.md) for supported behavior and limits.