pure-canvas
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -73,5 +73,8 @@ "use strict"; | ||
Stage.prototype.render = function () { | ||
var _this = this; | ||
this.context.clearRect(0, 0, this.canvas.width, this.canvas.height); | ||
this.internalLayer.draw(this.context); | ||
this.index(); | ||
}; | ||
Stage.prototype.index = function () { | ||
var _this = this; | ||
this.tree.clear(); | ||
@@ -78,0 +81,0 @@ this.internalLayer.index(function (node, zIndex, transformers) { |
{ | ||
"name": "pure-canvas", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "TODO", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -90,3 +90,6 @@ import Node, {Bounds, Point} from './Node'; | ||
this.internalLayer.draw(this.context); | ||
this.index(); | ||
} | ||
index(): void { | ||
this.tree.clear(); | ||
@@ -93,0 +96,0 @@ this.internalLayer.index((node: Node, zIndex: number, transformers: Array<Transformer>) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1584
143504