@slithy/prim-lib 0.9.0 → 0.9.1

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 (2) hide show
  1. package/dist/index.js +1 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -214,15 +214,7 @@ var Canvas = class _Canvas {
214
214
  static svgRoot(width, height, fill) {
215
215
  const node = document.createElementNS(SVGNS, "svg");
216
216
  node.setAttribute("viewBox", `0 0 ${width} ${height}`);
217
- node.setAttribute("clip-path", "url(#clip)");
218
- const defs = document.createElementNS(SVGNS, "defs");
219
- node.appendChild(defs);
220
- const cp = document.createElementNS(SVGNS, "clipPath");
221
- defs.appendChild(cp);
222
- cp.setAttribute("id", "clip");
223
- let rect = svgRect(width, height);
224
- cp.appendChild(rect);
225
- rect = svgRect(width, height);
217
+ const rect = svgRect(width, height);
226
218
  rect.setAttribute("fill", fill);
227
219
  node.appendChild(rect);
228
220
  return node;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slithy/prim-lib",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "Core engine for primitive-based image reconstruction.",
5
5
  "type": "module",
6
6
  "exports": {