Comparing version 1.0.2 to 1.0.3
@@ -7,2 +7,7 @@ # Change Log | ||
## [1.0.3][2016-08-14] | ||
### Fixed | ||
- Fixed some typescript definitions | ||
## [1.0.2][2016-07-08] | ||
@@ -9,0 +14,0 @@ |
@@ -831,4 +831,2 @@ declare module Konva { | ||
declare module "konva" { | ||
export = Konva; | ||
} | ||
export = Konva; |
{ | ||
"name": "konva", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"author": "Anton Lavrenov", | ||
@@ -5,0 +5,0 @@ "files": [ |
@@ -23,3 +23,3 @@ ![Konva logo](https://raw.githubusercontent.com/konvajs/konvajs.github.io/master/apple-touch-icon-180x180.png) | ||
```html | ||
<script src="https://cdn.rawgit.com/konvajs/konva/1.0.2/konva.min.js"></script> | ||
<script src="https://cdn.rawgit.com/konvajs/konva/1.0.3/konva.min.js"></script> | ||
<div id="container"></div> | ||
@@ -69,6 +69,6 @@ <script> | ||
```html | ||
<script src="https://cdn.rawgit.com/konvajs/konva/1.0.2/konva.min.js"></script> | ||
<script src="https://cdn.rawgit.com/konvajs/konva/1.0.3/konva.min.js"></script> | ||
``` | ||
You can use CDN: [https://cdn.rawgit.com/konvajs/konva/1.0.2/konva.min.js](https://cdn.rawgit.com/konvajs/konva/1.0.2/konva.min.js) | ||
You can use CDN: [https://cdn.rawgit.com/konvajs/konva/1.0.3/konva.min.js](https://cdn.rawgit.com/konvajs/konva/1.0.3/konva.min.js) | ||
@@ -96,2 +96,5 @@ ###2 Load via AMD (requirejs): | ||
import Konva from 'konva'; | ||
// typescript | ||
import * as Konva from 'konva'; | ||
``` | ||
@@ -98,0 +101,0 @@ |
@@ -184,3 +184,3 @@ (function(Konva) { | ||
* @method | ||
* @memberof Konva.Node.prototype | ||
* @memberof Konva.Shape.prototype | ||
* @returns {Object} rect with {x, y, width, height} properties | ||
@@ -187,0 +187,0 @@ * @example |
@@ -993,4 +993,33 @@ /*eslint-disable eqeqeq, no-cond-assign, no-empty*/ | ||
return newStart; | ||
}, | ||
_prepareToStringify: function(obj) { | ||
var desc; | ||
obj.visitedByCircularReferenceRemoval = true; | ||
for(var key in obj) { | ||
if (!(obj.hasOwnProperty(key) && obj[key] && typeof obj[key] == 'object')) { | ||
continue; | ||
} | ||
desc = Object.getOwnPropertyDescriptor(obj, key); | ||
if (obj[key].visitedByCircularReferenceRemoval || Konva.Util._isElement(obj[key])) { | ||
if (desc.configurable) { | ||
delete obj[key]; | ||
} else { | ||
return null; | ||
} | ||
} else if (Konva.Util._prepareToStringify(obj[key]) === null) { | ||
if (desc.configurable) { | ||
delete obj[key]; | ||
} else { | ||
return null; | ||
} | ||
} | ||
} | ||
delete obj.visitedByCircularReferenceRemoval; | ||
return obj; | ||
} | ||
}; | ||
})(); |
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
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
1243755
30129
163