Skip to content

Commit

Permalink
🐶 v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed May 28, 2019
1 parent 7e9850f commit 2bda2fe
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
13 changes: 7 additions & 6 deletions dist/zdog.dist.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Zdog v1.0.0
* Zdog v1.0.1
* Round, flat, designer-friendly pseudo-3D engine
* Licensed MIT
* https://zzz.dog
Expand Down Expand Up @@ -888,7 +888,9 @@ Illustration.prototype.prerenderCanvas = function() {
ctx.clearRect( 0, 0, this.canvasWidth, this.canvasHeight );
ctx.save();
if ( this.centered ) {
ctx.translate( this.width/2, this.height/2 );
var centerX = this.width/2 * this.pixelRatio;
var centerY = this.height/2 * this.pixelRatio;
ctx.translate( centerX, centerY );
}
var scale = this.pixelRatio * this.zoom;
ctx.scale( scale, scale );
Expand Down Expand Up @@ -1743,8 +1745,7 @@ CylinderEllipse.prototype.copyGraph = noop;
var Cylinder = Shape.subclass({
diameter: 1,
length: 1,
frontBaseColor: undefined,
rearBaseColor: undefined,
frontFace: undefined,
fill: true,
});

Expand All @@ -1771,14 +1772,14 @@ Cylinder.prototype.create = function(/* options */) {
color: this.color,
stroke: this.stroke,
fill: this.fill,
backface: this.frontBaseColor || baseColor,
backface: this.frontFace || baseColor,
visible: this.visible,
});
// back outside base
this.rearBase = this.group.rearBase = this.frontBase.copy({
translate: { z: -baseZ },
rotate: { y: 0 },
backface: this.rearBaseColor || baseColor,
backface: baseColor,
});
};

Expand Down
4 changes: 2 additions & 2 deletions dist/zdog.dist.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/boilerplate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Zdog v1.0.0
* Zdog v1.0.1
* Round, flat, designer-friendly pseudo-3D engine
* Licensed MIT
* https://zzz.dog
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zdog",
"version": "1.0.0",
"version": "1.0.1",
"description": "Round, flat, designer-friendly pseudo-3D engine",
"main": "js/index.js",
"files": [
Expand Down

0 comments on commit 2bda2fe

Please sign in to comment.