Comparing version 2.6.5 to 2.6.6
@@ -32,2 +32,8 @@ # Change Log | ||
## [2.6.6] - 2018-08-30 | ||
### Added | ||
- added global reference to support 'window' in bundlers (#767) | ||
## [2.6.5] - 2018-05-26 | ||
@@ -638,2 +644,3 @@ | ||
<!-- Headings above link to the releases listed here --> | ||
[2.6.6]: https://github.com/svgdotjs/svg.js/releases/tag/2.6.6 | ||
[2.6.5]: https://github.com/svgdotjs/svg.js/releases/tag/2.6.5 | ||
@@ -640,0 +647,0 @@ [2.6.4]: https://github.com/svgdotjs/svg.js/releases/tag/2.6.4 |
{ | ||
"name": "svg.js", | ||
"version": "2.6.5", | ||
"version": "2.6.6", | ||
"description": "A lightweight library for manipulating and animating SVG.", | ||
@@ -5,0 +5,0 @@ "url": "https://svgdotjs.github.io/", |
@@ -14,2 +14,13 @@ # SVG.js | ||
#### Node: | ||
`npm install svg.js` | ||
#### Yarn: | ||
`yarn add svg.js` | ||
#### Bower: | ||
@@ -19,6 +30,3 @@ | ||
#### Node: | ||
`npm install svg.js` | ||
#### Cdnjs: | ||
@@ -25,0 +33,0 @@ |
@@ -0,3 +1,7 @@ | ||
// Find global reference - uses 'this' by default when available, | ||
// falls back to 'window' otherwise (for bundlers like Webpack) | ||
var globalRef = (typeof this !== "undefined") ? this : window; | ||
// The main wrapping element | ||
var SVG = this.SVG = function(element) { | ||
var SVG = globalRef.SVG = function(element) { | ||
if (SVG.supported) { | ||
@@ -4,0 +8,0 @@ element = new SVG.Doc(element) |
@@ -926,2 +926,3 @@ export = svgjs; | ||
f?: number; | ||
scale?: number; | ||
} | ||
@@ -998,2 +999,6 @@ export interface Transformation { | ||
stop(): Animation; | ||
finish(): Animation; | ||
pause(): Animation; | ||
play(): Animation; | ||
reverse(reversed?: boolean): Animation; | ||
@@ -1008,2 +1013,3 @@ attr(name: string, value: any, namespace?: string): Animation; | ||
move(x: number, y: number, anchor?: boolean): Animation; | ||
dmove(x: number, y: number): Animation; | ||
x(x: number, anchor?: boolean): Animation; | ||
@@ -1020,2 +1026,4 @@ y(y: number, anchor?: boolean): Animation; | ||
after(cb: () => void): Animation; | ||
delay(delayMS: number): Animation; | ||
@@ -1026,2 +1034,3 @@ rotate(degrees: number, cx?: number, cy?: number): Animation; | ||
translate(x: number, y: number): Animation; | ||
transform(t: Transform, relative?: boolean): Animation; | ||
@@ -1028,0 +1037,0 @@ // TODO style, etc, bbox... |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1039533
137
25363
38