Skip to content

Commit 7600936

Browse files
committed
Redux
1 parent f7d7cef commit 7600936

File tree

3 files changed

+0
-277
lines changed

3 files changed

+0
-277
lines changed

src/assets/js/createjs/easeljs.js

Lines changed: 0 additions & 251 deletions
Original file line numberDiff line numberDiff line change
@@ -1278,44 +1278,6 @@ this.createjs = this.createjs||{};
12781278
return this._setStroke(color ? new G.Stroke(color) : null);
12791279
};
12801280

1281-
/**
1282-
* Ends the current sub-path, and begins a new one with no stroke. Functionally identical to <code>beginStroke(null)</code>.
1283-
* A tiny API method "es" also exists.
1284-
* @method endStroke
1285-
* @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.)
1286-
* @chainable
1287-
**/
1288-
p.endStroke = function() {
1289-
return this.beginStroke();
1290-
};
1291-
1292-
/**
1293-
* Maps the familiar ActionScript <code>curveTo()</code> method to the functionally similar {{#crossLink "Graphics/quadraticCurveTo"}}{{/crossLink}}
1294-
* method.
1295-
* @method curveTo
1296-
* @param {Number} cpx
1297-
* @param {Number} cpy
1298-
* @param {Number} x
1299-
* @param {Number} y
1300-
* @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.)
1301-
* @chainable
1302-
**/
1303-
p.curveTo = p.quadraticCurveTo;
1304-
1305-
/**
1306-
*
1307-
* Maps the familiar ActionScript <code>drawRect()</code> method to the functionally similar {{#crossLink "Graphics/rect"}}{{/crossLink}}
1308-
* method.
1309-
* @method drawRect
1310-
* @param {Number} x
1311-
* @param {Number} y
1312-
* @param {Number} w Width of the rectangle
1313-
* @param {Number} h Height of the rectangle
1314-
* @return {Graphics} The Graphics instance the method is called on (useful for chaining calls.)
1315-
* @chainable
1316-
**/
1317-
p.drawRect = p.rect;
1318-
13191281
/**
13201282
* Appends a graphics command object to the graphics queue. Command objects expose an "exec" method
13211283
* that accepts two parameters: the Context2D to operate on, and an arbitrary data object passed into
@@ -2052,92 +2014,7 @@ this.createjs = this.createjs||{};
20522014
ctx.stroke();
20532015
if (this.ignoreScale) { ctx.restore(); }
20542016
};
2055-
/**
2056-
* Creates a linear gradient style and assigns it to {{#crossLink "Stroke/style:property"}}{{/crossLink}}.
2057-
* See {{#crossLink "Graphics/beginLinearGradientStroke"}}{{/crossLink}} for more information.
2058-
* @method linearGradient
2059-
* @param {Array} colors
2060-
* @param {Array} ratios
2061-
* @param {Number} x0
2062-
* @param {Number} y0
2063-
* @param {Number} x1
2064-
* @param {Number} y1
2065-
* @return {Fill} Returns this Stroke object for chaining or assignment.
2066-
*/
2067-
p.linearGradient = G.Fill.prototype.linearGradient;
2068-
/**
2069-
* Creates a radial gradient style and assigns it to {{#crossLink "Stroke/style:property"}}{{/crossLink}}.
2070-
* See {{#crossLink "Graphics/beginRadialGradientStroke"}}{{/crossLink}} for more information.
2071-
* @method radialGradient
2072-
* @param {Array} colors
2073-
* @param {Array} ratios
2074-
* @param {Number} x0
2075-
* @param {Number} y0
2076-
* @param {Number} r0
2077-
* @param {Number} x1
2078-
* @param {Number} y1
2079-
* @param {Number} r1
2080-
* @return {Fill} Returns this Stroke object for chaining or assignment.
2081-
*/
2082-
p.radialGradient = G.Fill.prototype.radialGradient;
2083-
/**
2084-
* Creates a bitmap fill style and assigns it to {{#crossLink "Stroke/style:property"}}{{/crossLink}}.
2085-
* See {{#crossLink "Graphics/beginBitmapStroke"}}{{/crossLink}} for more information.
2086-
* @method bitmap
2087-
* @param {HTMLImageElement} image
2088-
* @param {String} [repetition] One of: repeat, repeat-x, repeat-y, or no-repeat.
2089-
* @return {Fill} Returns this Stroke object for chaining or assignment.
2090-
*/
2091-
p.bitmap = G.Fill.prototype.bitmap;
2092-
p.path = false;
20932017

2094-
/**
2095-
* Graphics command object. See {{#crossLink "Graphics/setStrokeStyle"}}{{/crossLink}} and {{#crossLink "Graphics/append"}}{{/crossLink}} for more information.
2096-
* @class StrokeStyle
2097-
* @constructor
2098-
* @param {Number} width
2099-
* @param {String} [caps=butt]
2100-
* @param {String} [joints=miter]
2101-
* @param {Number} [miterLimit=10]
2102-
* @param {Boolean} [ignoreScale=false]
2103-
**/
2104-
/**
2105-
* @property width
2106-
* @type Number
2107-
*/
2108-
/**
2109-
* One of: butt, round, square
2110-
* @property caps
2111-
* @type String
2112-
*/
2113-
/**
2114-
* One of: round, bevel, miter
2115-
* @property joints
2116-
* @type String
2117-
*/
2118-
/**
2119-
* @property miterLimit
2120-
* @type Number
2121-
*/
2122-
/**
2123-
* Execute the Graphics command in the provided Canvas context.
2124-
* @method exec
2125-
* @param {CanvasRenderingContext2D} ctx The canvas rendering context
2126-
*/
2127-
p = (G.StrokeStyle = function(width, caps, joints, miterLimit, ignoreScale) {
2128-
this.width = width;
2129-
this.caps = caps;
2130-
this.joints = joints;
2131-
this.miterLimit = miterLimit;
2132-
this.ignoreScale = ignoreScale;
2133-
}).prototype;
2134-
p.exec = function(ctx) {
2135-
ctx.lineWidth = (this.width == null ? "1" : this.width);
2136-
ctx.lineCap = (this.caps == null ? "butt" : (isNaN(this.caps) ? this.caps : Graphics.STROKE_CAPS_MAP[this.caps]));
2137-
ctx.lineJoin = (this.joints == null ? "miter" : (isNaN(this.joints) ? this.joints : Graphics.STROKE_JOINTS_MAP[this.joints]));
2138-
ctx.miterLimit = (this.miterLimit == null ? "10" : this.miterLimit);
2139-
ctx.ignoreScale = (this.ignoreScale == null ? false : this.ignoreScale);
2140-
};
21412018
p.path = false;
21422019

21432020
/**
@@ -2738,75 +2615,7 @@ this.createjs = this.createjs||{};
27382615
* @since 0.6.0
27392616
*/
27402617

2741-
2742-
// getter / setters:
2743-
/**
2744-
* Use the {{#crossLink "DisplayObject/stage:property"}}{{/crossLink}} property instead.
2745-
* @method _getStage
2746-
* @protected
2747-
* @return {Stage}
2748-
**/
2749-
p._getStage = function() {
2750-
// uses dynamic access to avoid circular dependencies;
2751-
var o = this, _Stage = createjs["Stage"];
2752-
while (o.parent) { o = o.parent; }
2753-
if (o instanceof _Stage) { return o; }
2754-
return null;
2755-
};
2756-
2757-
/**
2758-
* Returns the Stage instance that this display object will be rendered on, or null if it has not been added to one.
2759-
* @property stage
2760-
* @type {Stage}
2761-
* @readonly
2762-
**/
2763-
2764-
/**
2765-
* Returns an ID number that uniquely identifies the current cache for this display object. This can be used to
2766-
* determine if the cache has changed since a previous check.
2767-
* Moved to {{#crossLink "BitmapCache"}}{{/crossLink}}
2768-
* @property cacheID
2769-
* @deprecated
2770-
* @type {Number}
2771-
* @default 0
2772-
*/
2773-
2774-
/**
2775-
* Set both the {{#crossLink "DisplayObject/scaleX:property"}}{{/crossLink}} and the {{#crossLink "DisplayObject/scaleY"}}{{/crossLink}}
2776-
* property to the same value. Note that when you get the value, if the `scaleX` and `scaleY` are different values,
2777-
* it will return only the `scaleX`.
2778-
* @property scaleX
2779-
* @type {Number}
2780-
* @default 1
2781-
*/
2782-
try {
2783-
Object.defineProperties(p, {
2784-
stage: { get: p._getStage },
2785-
cacheID: {
2786-
get: function(){ return this.bitmapCache && this.bitmapCache.cacheID },
2787-
set: function(a){ this.bitmapCache && (this.bitmapCache.cacheID = a) }
2788-
},
2789-
scale: {
2790-
get: function() { return this.scaleX; },
2791-
set: function(scale) { this.scaleX = this.scaleY = scale; },
2792-
}
2793-
});
2794-
} catch (e) {}
2795-
2796-
27972618
// public methods:
2798-
/**
2799-
* Returns true or false indicating whether the display object would be visible if drawn to a canvas.
2800-
* This does not account for whether it would be visible within the boundaries of the stage.
2801-
*
2802-
* NOTE: This method is mainly for internal use, though it may be useful for advanced uses.
2803-
* @method isVisible
2804-
* @return {Boolean} Boolean indicating whether the display object would be visible if drawn to a canvas
2805-
**/
2806-
p.isVisible = function() {
2807-
return !!(this.visible && this.alpha > 0 && this.scaleX != 0 && this.scaleY != 0);
2808-
};
2809-
28102619
/**
28112620
* Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform.
28122621
* Returns <code>true</code> if the draw was handled (useful for overriding functionality).
@@ -3005,53 +2814,7 @@ this.createjs = this.createjs||{};
30052814
}
30062815
var p = createjs.extend(Container, createjs.DisplayObject);
30072816

3008-
3009-
// getter / setters:
3010-
/**
3011-
* Use the {{#crossLink "Container/numChildren:property"}}{{/crossLink}} property instead.
3012-
* @method _getNumChildren
3013-
* @protected
3014-
* @return {Number}
3015-
**/
3016-
p._getNumChildren = function() {
3017-
return this.children.length;
3018-
};
3019-
3020-
/**
3021-
* Returns the number of children in the container.
3022-
* @property numChildren
3023-
* @type {Number}
3024-
* @readonly
3025-
**/
3026-
try {
3027-
Object.defineProperties(p, {
3028-
numChildren: { get: p._getNumChildren }
3029-
});
3030-
} catch (e) {}
3031-
3032-
30332817
// public methods:
3034-
/**
3035-
* Constructor alias for backwards compatibility. This method will be removed in future versions.
3036-
* Subclasses should be updated to use {{#crossLink "Utility Methods/extends"}}{{/crossLink}}.
3037-
* @method initialize
3038-
* @deprecated in favour of `createjs.promote()`
3039-
**/
3040-
p.initialize = Container; // TODO: deprecated.
3041-
3042-
/**
3043-
* Returns true or false indicating whether the display object would be visible if drawn to a canvas.
3044-
* This does not account for whether it would be visible within the boundaries of the stage.
3045-
*
3046-
* NOTE: This method is mainly for internal use, though it may be useful for advanced uses.
3047-
* @method isVisible
3048-
* @return {Boolean} Boolean indicating whether the display object would be visible if drawn to a canvas
3049-
**/
3050-
p.isVisible = function() {
3051-
var hasContent = this.cacheCanvas || this.children.length;
3052-
return !!(this.visible && this.alpha > 0 && this.scaleX != 0 && this.scaleY != 0 && hasContent);
3053-
};
3054-
30552818
/**
30562819
* Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform.
30572820
* Returns true if the draw was handled (useful for overriding functionality).
@@ -4623,20 +4386,6 @@ this.createjs = this.createjs||{};
46234386
**/
46244387
MovieClipPlugin.step = function(tween, step, props) {};
46254388

4626-
/**
4627-
* @method change
4628-
* @param {Tween} tween
4629-
* @param {TweenStep} step
4630-
* @param {*} value
4631-
* @param {Number} ratio
4632-
* @param {Object} end
4633-
* @return {*}
4634-
* @static
4635-
*/
4636-
MovieClipPlugin.change = function(tween, step, prop, value, ratio, end) {
4637-
if (prop === "startPosition") { return (ratio === 1 ? step.props[prop] : step.prev.props[prop]); }
4638-
};
4639-
46404389
}());
46414390

46424391
//##############################################################################

src/assets/js/createjs/preloadjs.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3396,10 +3396,6 @@ this.createjs = this.createjs || {};
33963396
this.hasEventListener("filestart") && this.dispatchEvent(event);
33973397
};
33983398

3399-
p.toString = function () {
3400-
return "[PreloadJS LoadQueue]";
3401-
};
3402-
34033399
createjs.LoadQueue = createjs.promote(LoadQueue, "AbstractLoader");
34043400
}());
34053401

src/assets/js/createjs/tweenjs.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -218,17 +218,6 @@ this.createjs = this.createjs||{};
218218
Ticker._setupTick();
219219
};
220220

221-
/**
222-
* Use the {{#crossLink "Ticker/interval:property"}}{{/crossLink}} property instead.
223-
* @method _getInterval
224-
* @private
225-
* @static
226-
* @return {Number}
227-
**/
228-
Ticker._getInterval = function() {
229-
return Ticker._interval;
230-
};
231-
232221
/**
233222
* Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead.
234223
* @method _setFPS
@@ -240,17 +229,6 @@ this.createjs = this.createjs||{};
240229
Ticker._setInterval(1000/value);
241230
};
242231

243-
/**
244-
* Use the {{#crossLink "Ticker/framerate:property"}}{{/crossLink}} property instead.
245-
* @method _getFPS
246-
* @static
247-
* @private
248-
* @return {Number}
249-
**/
250-
Ticker._getFPS = function() {
251-
return 1000/Ticker._interval;
252-
};
253-
254232
/**
255233
* Indicates the target time (in milliseconds) between ticks. Default is 50 (20 FPS).
256234
* Note that actual time between ticks may be more than specified depending on CPU load.

0 commit comments

Comments
 (0)