Comparing version 0.15.0 to 0.15.3
@@ -504,3 +504,3 @@ import { PointerEventTarget, utils, WorldBaseFacade, ReactCanvasBase } from 'troika-core'; | ||
utils.assign({}, props, { | ||
worldClass: props.worldClass || World2DFacade, | ||
worldFacade: props.worldFacade || World2DFacade, | ||
worldProps: utils.assign({}, { | ||
@@ -507,0 +507,0 @@ backgroundColor: props.backgroundColor, |
@@ -508,3 +508,3 @@ (function (global, factory) { | ||
troikaCore.utils.assign({}, props, { | ||
worldClass: props.worldClass || World2DFacade, | ||
worldFacade: props.worldFacade || World2DFacade, | ||
worldProps: troikaCore.utils.assign({}, { | ||
@@ -511,0 +511,0 @@ backgroundColor: props.backgroundColor, |
@@ -13,4 +13,4 @@ 'use strict';(function(d,e){"object"===typeof exports&&"undefined"!==typeof module?e(exports,require("troika-core"),require("react"),require("prop-types")):"function"===typeof define&&define.amd?define(["exports","troika-core","react","prop-types"],e):(d=d||self,e(d.troika_2d={},d.troika_core,d.React,d.PropTypes))})(this,function(d,e,k,f){function m(c,a){var b="\u27a4"+c;Object.defineProperty(l.prototype,c,{get:function(){return b in this?this[b]:a},set:function(a){this[b]!==a&&(this[b]=a,this._matrixChanged= | ||
a.transform(c[0],c[1],c[2],c[3],c[4],c[5]);b.render(a);a.restore()})};a.prototype.getFacadeUserSpaceXYZ=function(b){var a=b.getProjectedPosition(0,0);b=b.z;return{x:a.x,y:a.y,z:1<b?1/b:1-b}};a.prototype.getFacadesAtEvent=function(a){var b=a.target.getBoundingClientRect(),c=a.clientX-b.left,d=a.clientY-b.top,e=null,f=0;q(this.getChildByKey("bg"),function(a){a.hitTest(c,d)&&(e||(e=Object.create(null)),e[a.$facadeId]={facade:a,distance:f--})});e&&(e=Object.keys(e).map(function(a){return e[a]}));return e}; | ||
a.prototype._onBgClick=function(a){if(a.target===a.currentTarget)this.onBackgroundClick(a)};return a}(e.WorldBaseFacade),t=function(c){function a(){c.apply(this,arguments)}c&&(a.__proto__=c);a.prototype=Object.create(c&&c.prototype);a.prototype.constructor=a;a.prototype.render=function(){var a=this.props;return k.createElement(e.ReactCanvasBase,e.utils.assign({},a,{worldClass:a.worldClass||w,worldProps:e.utils.assign({},{backgroundColor:a.backgroundColor,onBackgroundClick:a.onBackgroundClick,objects:a.objects}, | ||
a.prototype._onBgClick=function(a){if(a.target===a.currentTarget)this.onBackgroundClick(a)};return a}(e.WorldBaseFacade),t=function(c){function a(){c.apply(this,arguments)}c&&(a.__proto__=c);a.prototype=Object.create(c&&c.prototype);a.prototype.constructor=a;a.prototype.render=function(){var a=this.props;return k.createElement(e.ReactCanvasBase,e.utils.assign({},a,{worldFacade:a.worldFacade||w,worldProps:e.utils.assign({},{backgroundColor:a.backgroundColor,onBackgroundClick:a.onBackgroundClick,objects:a.objects}, | ||
a.worldProps)}),a.children)};return a}(k.Component);t.displayName="Canvas2D";t.propTypes=e.utils.assignIf({backgroundColor:f.any,objects:f.oneOfType([f.array,f.object]).isRequired,onBackgroundClick:f.func},e.ReactCanvasBase.commonPropTypes);Object.defineProperty(d,"Facade",{enumerable:!0,get:function(){return e.Facade}});Object.defineProperty(d,"ListFacade",{enumerable:!0,get:function(){return e.ListFacade}});Object.defineProperty(d,"ParentFacade",{enumerable:!0,get:function(){return e.ParentFacade}}); | ||
d.Canvas2D=t;d.Group2DFacade=p;d.HtmlOverlay2DFacade=B;d.Object2DFacade=l;d.Text2DFacade=u;d.World2DFacade=w;Object.defineProperty(d,"__esModule",{value:!0})}); |
{ | ||
"name": "troika-2d", | ||
"version": "0.15.0", | ||
"version": "0.15.3", | ||
"description": "Troika 2D", | ||
@@ -18,5 +18,5 @@ "author": "Jason Johnston <jason.johnston@protectwise.com>", | ||
"dependencies": { | ||
"troika-core": "^0.15.0" | ||
"troika-core": "^0.15.3" | ||
}, | ||
"gitHead": "ed0883f7a7093a15de489ce750c042f8112a94d4" | ||
"gitHead": "5286e414c66aa8c471091aaaea28c08b86bed0f6" | ||
} |
@@ -12,3 +12,3 @@ import React from 'react' | ||
utils.assign({}, props, { | ||
worldClass: props.worldClass || World2DFacade, | ||
worldFacade: props.worldFacade || World2DFacade, | ||
worldProps: utils.assign({}, { | ||
@@ -15,0 +15,0 @@ backgroundColor: props.backgroundColor, |
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
56752
1360
Updatedtroika-core@^0.15.3