canvg
Advanced tools
Comparing version 3.0.0-beta.0 to 3.0.0-beta.1
{ | ||
"name": "canvg", | ||
"version": "3.0.0-beta.0", | ||
"version": "3.0.0-beta.1", | ||
"description": "JavaScript SVG parser and renderer on Canvas.", | ||
@@ -100,3 +100,3 @@ "authors": [ | ||
"typedoc": "^0.15.0", | ||
"typescript": "3.6.2", | ||
"typescript": "3.6.4", | ||
"xmldom": "^0.1.27" | ||
@@ -103,0 +103,0 @@ }, |
@@ -30,4 +30,6 @@ # canvg | ||
[Demo](https://canvg.github.io/canvg/demo/) | ||
[Demo](https://canvg.github.io/canvg/demo/index.html) | ||
[Playground](https://jsfiddle.net/oL091wmv/1/) | ||
## Install | ||
@@ -199,2 +201,27 @@ | ||
<details> | ||
<summary> | ||
<b>Browser</b> | ||
</summary> | ||
```html | ||
<script type="text/javascript" src="https://unpkg.com/canvg@3.0.0-beta.0/lib/umd.js"></script> | ||
<script type="text/javascript"> | ||
window.onload = () => { | ||
const canvas = document.querySelector('canvas'); | ||
const ctx = canvas.getContext('2d'); | ||
v = canvg.Canvg.fromString(ctx, '<svg width="600" height="600"><text x="50" y="50">Hello World!</text></svg>'); | ||
// Start SVG rendering with animations and mouse handling. | ||
v.start(); | ||
}; | ||
</script> | ||
<canvas /> | ||
``` | ||
</details> | ||
### Options | ||
@@ -201,0 +228,0 @@ |
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses eval() which is a dangerous function. This prevents the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
312
2
11636
4
0