mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-27 00:44:41 +00:00
Update static_canvas.class.js
This commit is contained in:
parent
463ecc5e22
commit
cd9ae6e9a3
1 changed files with 4 additions and 6 deletions
|
|
@ -861,28 +861,26 @@
|
|||
|
||||
this.fire('before:render');
|
||||
|
||||
canvasToDrawOn.save();
|
||||
if (this.clipTo) {
|
||||
fabric.util.clipContext(this, canvasToDrawOn);
|
||||
}
|
||||
this._renderBackground(canvasToDrawOn);
|
||||
|
||||
canvasToDrawOn.save();
|
||||
objsToRender = this._chooseObjectsToRender();
|
||||
|
||||
//apply viewport transform once for all rendering process
|
||||
canvasToDrawOn.transform.apply(canvasToDrawOn, this.viewportTransform);
|
||||
this._renderBackground(canvasToDrawOn);
|
||||
this._renderObjects(canvasToDrawOn, objsToRender);
|
||||
this.preserveObjectStacking || this._renderObjects(canvasToDrawOn, [this.getActiveGroup()]);
|
||||
canvasToDrawOn.restore();
|
||||
|
||||
if (!this.controlsAboveOverlay && this.interactive) {
|
||||
this.drawControls(canvasToDrawOn);
|
||||
}
|
||||
|
||||
if (this.clipTo) {
|
||||
canvasToDrawOn.restore();
|
||||
}
|
||||
|
||||
this._renderOverlay(canvasToDrawOn);
|
||||
|
||||
if (this.controlsAboveOverlay && this.interactive) {
|
||||
this.drawControls(canvasToDrawOn);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue