react-konva
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -1,5 +0,25 @@ | ||
"use strict"; | ||
'use strict'; | ||
var ReactKonva = require("./ReactKonva"); | ||
exports.Stage = require('./Stage'); | ||
exports.Layer = require('./Layer'); | ||
exports.FastLayer = require('./FastLayer'); | ||
exports.Group = require('./Group'); | ||
module.exports = ReactKonva; | ||
exports.Arc = require('./shapes/Arc'); | ||
exports.Arrow = require('./shapes/Arrow'); | ||
exports.Circle = require('./shapes/Circle'); | ||
exports.Ellipse = require('./shapes/Ellipse'); | ||
exports.Image = require('./shapes/Image'); | ||
exports.Label = require('./shapes/Label'); | ||
exports.Line = require('./shapes/Line'); | ||
exports.Path = require('./shapes/Path'); | ||
exports.Rect = require('./shapes/Rect'); | ||
exports.RegularPolygon = require('./shapes/RegularPolygon'); | ||
exports.Ring = require('./shapes/Ring'); | ||
exports.Shape = require('./shapes/Shape'); | ||
exports.Sprite = require('./shapes/Sprite'); | ||
exports.Star = require('./shapes/Star'); | ||
exports.Tag = require('./shapes/Tag'); | ||
exports.Text = require('./shapes/Text'); | ||
exports.TextPath = require('./shapes/TextPath'); | ||
exports.Wedge = require('./shapes/Wedge'); |
@@ -1,11 +0,41 @@ | ||
"use strict"; | ||
'use strict'; | ||
module.exports = { | ||
nodeRenderer: function nodeRenderer() { | ||
if (this.nodeRender) { | ||
return this.nodeRender(); | ||
exports.__esModule = true; | ||
exports.diff = diff; | ||
function diff(lhs, rhs) { | ||
var result = new Map(); | ||
var properies = new Set([].concat(Object.keys(lhs), Object.keys(rhs))); | ||
for (var _iterator = properies, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) { | ||
var _ref; | ||
if (_isArray) { | ||
if (_i >= _iterator.length) break; | ||
_ref = _iterator[_i++]; | ||
} else { | ||
return null; | ||
_i = _iterator.next(); | ||
if (_i.done) break; | ||
_ref = _i.value; | ||
} | ||
var property = _ref; | ||
if (lhs.hasOwnProperty(property) && !rhs.hasOwnProperty(property)) { | ||
result.set(property, 'delete'); | ||
} | ||
if (!lhs.hasOwnProperty(property) && rhs.hasOwnProperty(property)) { | ||
result.set(property, 'create'); | ||
} | ||
if (lhs.hasOwnProperty(property) && rhs.hasOwnProperty(property)) { | ||
if (lhs[property] !== rhs[property]) { | ||
result.set(property, 'update'); | ||
} | ||
} | ||
} | ||
}; | ||
return result; | ||
} |
{ | ||
"name": "react-konva", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"author": "Olim <olim.mail@gmail.com> Saidov, Mikhail <freiksenet@gmail.com> Novikov", | ||
@@ -5,0 +5,0 @@ "description": "Using Konva library with React", |
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
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
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
909024
33
19047
48
1