abstract-image
Advanced tools
Comparing version 3.2.3 to 3.2.4
@@ -75,3 +75,5 @@ "use strict"; | ||
case "svg": | ||
const svg = component.data.reduce((a, b) => a + String.fromCharCode(b), ""); | ||
const svg = component.data | ||
.reduce((a, b) => a + String.fromCharCode(b), "") | ||
.replace('<?xml version="1.0" encoding="utf-8"?>', ""); | ||
return [ | ||
@@ -78,0 +80,0 @@ React.createElement("image", { key: key, x: component.topLeft.x, y: component.topLeft.y, width: component.bottomRight.x - component.topLeft.x, height: component.bottomRight.y - component.topLeft.y, id: makeIdAttr(component.id), href: `data:image/svg+xml;utf8,${svg}` }), |
@@ -23,3 +23,5 @@ "use strict"; | ||
case "svg": | ||
const svg = component.data.reduce((a, b) => a + String.fromCharCode(b), ""); | ||
const svg = component.data | ||
.reduce((a, b) => a + String.fromCharCode(b), "") | ||
.replace('<?xml version="1.0" encoding="utf-8"?>', ""); | ||
return createElement("image", { | ||
@@ -26,0 +28,0 @@ x: component.topLeft.x.toString(), |
{ | ||
"name": "abstract-image", | ||
"version": "3.2.3", | ||
"version": "3.2.4", | ||
"description": "Dynamically create images using code or JSX and render to any format", | ||
@@ -25,3 +25,3 @@ "repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-image", | ||
}, | ||
"gitHead": "81109d0f47e5d8c0539e47ff83372f6c4ab9182a" | ||
"gitHead": "6771b0df367bd2617498ace3c1c61e08a370d0bd" | ||
} |
@@ -31,3 +31,5 @@ import * as AbstractImage from "../model/index"; | ||
case "svg": | ||
const svg = component.data.reduce((a, b) => a + String.fromCharCode(b), ""); | ||
const svg = component.data | ||
.reduce((a, b) => a + String.fromCharCode(b), "") | ||
.replace('<?xml version="1.0" encoding="utf-8"?>', ""); | ||
return createElement( | ||
@@ -34,0 +36,0 @@ "image", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
716863
10587