canvg
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -27,2 +27,6 @@ # Changelog | ||
## [3.0.1] - 2019-12-03 | ||
### Fixed | ||
- [#816](https://github.com/canvg/canvg/issues/816) | ||
## [3.0.0] - 2019-10-23 | ||
@@ -29,0 +33,0 @@ ### Added |
@@ -7,10 +7,10 @@ export default class BoundingBox { | ||
constructor(x1?: number, y1?: number, x2?: number, y2?: number); | ||
readonly x: number; | ||
readonly y: number; | ||
readonly width: number; | ||
readonly height: number; | ||
get x(): number; | ||
get y(): number; | ||
get width(): number; | ||
get height(): number; | ||
addPoint(x: number, y: number): void; | ||
addX(x: number): void; | ||
addY(y: number): void; | ||
addBoundingBox({ x1, y1, x2, y2 }: BoundingBox): void; | ||
addBoundingBox(boundingBox: BoundingBox): void; | ||
private sumCubic; | ||
@@ -17,0 +17,0 @@ private bezierCurveAdd; |
@@ -99,6 +99,7 @@ import Canvg from '../Canvg'; | ||
constructor(canvg: Canvg, { rootEmSize, emSize, createCanvas, createImage }?: IDocumentOptions); | ||
readonly window: Window; | ||
readonly fetch: any; | ||
readonly ctx: import("..").RenderingContext2D; | ||
emSize: number; | ||
get window(): Window; | ||
get fetch(): any; | ||
get ctx(): import("..").RenderingContext2D; | ||
get emSize(): number; | ||
set emSize(value: number); | ||
popEmSize(): void; | ||
@@ -105,0 +106,0 @@ getUniqueId(): string; |
@@ -5,3 +5,3 @@ import { RenderingContext2D } from '../types'; | ||
import Document from './Document'; | ||
import PathElement from './PathElement'; | ||
import PathElement, { Marker } from './PathElement'; | ||
export default class PolylineElement extends PathElement { | ||
@@ -12,4 +12,4 @@ type: string; | ||
path(ctx: RenderingContext2D): BoundingBox; | ||
getMarkers(): [Point, number][]; | ||
getMarkers(): Marker[]; | ||
} | ||
//# sourceMappingURL=PolylineElement.d.ts.map |
@@ -13,4 +13,4 @@ import { RenderingContext2D } from '../types'; | ||
elementTransform(): Transform; | ||
protected readonly element: PathElement; | ||
protected get element(): PathElement; | ||
} | ||
//# sourceMappingURL=UseElement.d.ts.map |
@@ -12,6 +12,6 @@ export interface IViewPortSize { | ||
getCurrent(): IViewPortSize; | ||
readonly width: number; | ||
readonly height: number; | ||
get width(): number; | ||
get height(): number; | ||
computeSize(d?: number | Axis): number; | ||
} | ||
//# sourceMappingURL=ViewPort.d.ts.map |
{ | ||
"name": "canvg", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "JavaScript SVG parser and renderer on Canvas.", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -32,3 +32,3 @@ # canvg | ||
[Playground](https://jsfiddle.net/5n230gh7/) | ||
[Playground](https://jsfiddle.net/0q1vrjxk/) | ||
@@ -207,3 +207,3 @@ ## Install | ||
```html | ||
<script type="text/javascript" src="https://unpkg.com/canvg@3.0.0/lib/umd.js"></script> | ||
<script type="text/javascript" src="https://unpkg.com/canvg@3.0.1/lib/umd.js"></script> | ||
<script type="text/javascript"> | ||
@@ -210,0 +210,0 @@ window.onload = () => { |
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
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
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1483220
21074