@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.
- package/dist/index.js +1 -9
- 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
|
-
|
|
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;
|