Permalink
Browse files

Fixed ignoreScale in Graphics SetStrokeStyle command

  • Loading branch information...
lannymcnie committed Sep 18, 2015
1 parent 91ef5ff commit 3d2d7c3df7d84235005a5a287d78f48a2bb449cc
Showing with 5 additions and 1 deletion.
  1. +1 −0 VERSIONS.txt
  2. +4 −1 src/easeljs/display/Graphics.js
@@ -3,6 +3,7 @@ Version NEXT [Not Released]
- fixed compositeOperation value in DisplayProps.setValues (thanks @fumio)
- documentation updates
- fixed the SpriteSheetBuilder to support both SpriteSheet framerate and speed (instead of frequency)
- fixed ignoreScale support in Graphic StrokeStyle command
Version 0.8.1 [May 21, 2015]
@@ -2066,6 +2066,7 @@ this.createjs = this.createjs||{};
* @param {String} [caps]
* @param {String} [joints]
* @param {Number} [miterLimit]
* @param {Boolean} [ignoreScale=false]
**/
/**
* @property width
@@ -2089,17 +2090,19 @@ this.createjs = this.createjs||{};
* @method exec
* @param {CanvasRenderingContext2D} ctx
*/
p = (G.StrokeStyle = function(width, caps, joints, miterLimit) {
p = (G.StrokeStyle = function(width, caps, joints, miterLimit, ignoreScale) {
this.width = width;
this.caps = caps;
this.joints = joints;
this.miterLimit = miterLimit;
this.ignoreScale = ignoreScale;
}).prototype;
p.exec = function(ctx) {
ctx.lineWidth = (this.width == null ? "1" : this.width);
ctx.lineCap = (this.caps == null ? "butt" : (isNaN(this.caps) ? this.caps : Graphics.STROKE_CAPS_MAP[this.caps]));
ctx.lineJoin = (this.joints == null ? "miter" : (isNaN(this.joints) ? this.joints : Graphics.STROKE_JOINTS_MAP[this.joints]));
ctx.miterLimit = (this.miterLimit == null ? "10" : this.miterLimit);
ctx.ignoreScale = (this.ignoreScale == null ? false : this.ignoreScale);
};
p.path = false;

0 comments on commit 3d2d7c3

Please sign in to comment.