Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svg2canvas

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg2canvas - npm Package Compare versions

Comparing version 0.0.9 to 0.0.10

2

build/index.d.ts

@@ -39,3 +39,3 @@ export declare type Color = {

}
export declare function CreateDrawingFromSVG(svg?: XMLDocument): SVGDrawing | undefined;
export declare function CreateDrawingFromSVG(svg?: XMLDocument, globalStyle?: Style): SVGDrawing | undefined;
export {};

@@ -0,1 +1,12 @@

var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
var __spreadArrays = (this && this.__spreadArrays) || function () {

@@ -294,3 +305,3 @@ for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;

};
export function CreateDrawingFromSVG(svg) {
export function CreateDrawingFromSVG(svg, globalStyle) {
if (!svg)

@@ -325,3 +336,3 @@ return undefined;

var type = element.nodeName;
var style = parseStyles(element);
var style = __assign(__assign({}, parseStyles(element)), globalStyle);
var shape = Shapes[type];

@@ -328,0 +339,0 @@ var attributes = shape.attributes.map(function (attribute) {

{
"name": "svg2canvas",
"version": "0.0.9",
"version": "0.0.10",
"description": "Library to allow batching and rendering of SVGs onto the canvas EFFICIENTLY. Currently only compatible w/ simple geometry.",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc