Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pure-canvas

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pure-canvas - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

7

lib/Layer.js

@@ -12,2 +12,3 @@ "use strict";

_super.apply(this, arguments);
this.hitEnabled = true;
this.children = [];

@@ -74,2 +75,8 @@ }

};
Layer.prototype.isHitEnabled = function () {
return this.hitEnabled;
};
Layer.prototype.setHitEnabled = function (value) {
this.hitEnabled = value;
};
return Layer;

@@ -76,0 +83,0 @@ }(NodeBasic_1.default));

7

lib/NodeBasic.js
"use strict";
var NodeBasic = (function () {
function NodeBasic() {
this._hitEnabled = true;
}

@@ -14,8 +13,2 @@ NodeBasic.prototype.toImage = function () {

};
NodeBasic.prototype.isHitEnabled = function () {
return this._hitEnabled;
};
NodeBasic.prototype.setHitEnabled = function (value) {
this._hitEnabled = value;
};
return NodeBasic;

@@ -22,0 +15,0 @@ }());

@@ -13,2 +13,3 @@ "use strict";

_super.apply(this, arguments);
this.hitEnabled = false;
}

@@ -18,2 +19,8 @@ NodeLeaf.prototype.index = function (action, zIndex) {

};
NodeLeaf.prototype.isHitEnabled = function () {
return this.hitEnabled;
};
NodeLeaf.prototype.setHitEnabled = function (value) {
this.hitEnabled = value;
};
return NodeLeaf;

@@ -20,0 +27,0 @@ }(NodeBasic_1.default));

2

package.json
{
"name": "pure-canvas",
"version": "0.1.5",
"version": "0.1.6",
"description": "TODO",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -8,2 +8,4 @@ import Node, {Point, Bounds} from './Node';

class Layer extends NodeBasic implements NodeCollection {
private hitEnabled: boolean = true;
private children: Array<NodeIndexable> = [];

@@ -74,4 +76,12 @@

}
isHitEnabled(): boolean {
return this.hitEnabled;
}
setHitEnabled(value: boolean): void {
this.hitEnabled = value;
}
}
export default Layer;

@@ -6,4 +6,2 @@ import Node, {Bounds, Point} from './Node';

abstract class NodeBasic implements NodeIndexable {
_hitEnabled: boolean = true;
abstract getBounds(): Bounds;

@@ -26,11 +24,7 @@

isHitEnabled(): boolean {
return this._hitEnabled;
}
abstract isHitEnabled(): boolean;
setHitEnabled(value: boolean): void {
this._hitEnabled = value;
}
abstract setHitEnabled(value: boolean): void;
}
export default NodeBasic;

@@ -8,2 +8,4 @@ import Node, {Point, Bounds} from './Node';

abstract class NodeLeaf extends NodeBasic {
private hitEnabled: boolean = false;
abstract getBounds(): Bounds;

@@ -18,4 +20,12 @@

}
isHitEnabled(): boolean {
return this.hitEnabled;
}
setHitEnabled(value: boolean): void {
this.hitEnabled = value;
}
}
export default NodeLeaf;

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc