Skip to content

Commit 2bda2fe

Browse files
committed
🐶 v1.0.1
1 parent 7e9850f commit 2bda2fe

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

dist/zdog.dist.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Zdog v1.0.0
2+
* Zdog v1.0.1
33
* Round, flat, designer-friendly pseudo-3D engine
44
* Licensed MIT
55
* https://zzz.dog
@@ -888,7 +888,9 @@ Illustration.prototype.prerenderCanvas = function() {
888888
ctx.clearRect( 0, 0, this.canvasWidth, this.canvasHeight );
889889
ctx.save();
890890
if ( this.centered ) {
891-
ctx.translate( this.width/2, this.height/2 );
891+
var centerX = this.width/2 * this.pixelRatio;
892+
var centerY = this.height/2 * this.pixelRatio;
893+
ctx.translate( centerX, centerY );
892894
}
893895
var scale = this.pixelRatio * this.zoom;
894896
ctx.scale( scale, scale );
@@ -1743,8 +1745,7 @@ CylinderEllipse.prototype.copyGraph = noop;
17431745
var Cylinder = Shape.subclass({
17441746
diameter: 1,
17451747
length: 1,
1746-
frontBaseColor: undefined,
1747-
rearBaseColor: undefined,
1748+
frontFace: undefined,
17481749
fill: true,
17491750
});
17501751

@@ -1771,14 +1772,14 @@ Cylinder.prototype.create = function(/* options */) {
17711772
color: this.color,
17721773
stroke: this.stroke,
17731774
fill: this.fill,
1774-
backface: this.frontBaseColor || baseColor,
1775+
backface: this.frontFace || baseColor,
17751776
visible: this.visible,
17761777
});
17771778
// back outside base
17781779
this.rearBase = this.group.rearBase = this.frontBase.copy({
17791780
translate: { z: -baseZ },
17801781
rotate: { y: 0 },
1781-
backface: this.rearBaseColor || baseColor,
1782+
backface: baseColor,
17821783
});
17831784
};
17841785

dist/zdog.dist.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/boilerplate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Zdog v1.0.0
2+
* Zdog v1.0.1
33
* Round, flat, designer-friendly pseudo-3D engine
44
* Licensed MIT
55
* https://zzz.dog

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "zdog",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Round, flat, designer-friendly pseudo-3D engine",
55
"main": "js/index.js",
66
"files": [

0 commit comments

Comments
 (0)