Commit be9ea4f9 authored by 任建锋's avatar 任建锋

--

parent 551e93a9
......@@ -14692,10 +14692,8 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Loader.prototype.cache = function (name, data) {
if (this.caches[name]) ;
this.caches[name] = data;
console.log(this.caches);
};
Loader.prototype.get = function (name) {
console.log(this.caches);
return this.caches[name];
};
return Loader;
......@@ -15309,6 +15307,14 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return w;
}
};
TextField.prototype._calculateBounds = function () {
var _a = this._localBoundsSelf, width = _a.width, height = _a.height;
var matrix = this.transform.worldMatrix;
this._bounds.x = matrix.tx;
this._bounds.y = matrix.ty;
this._bounds.width = width;
this._bounds.height = height;
};
TextField.prototype.updateTexture = function () {
var canvas = this.canvas;
var texture = this._texture;
......@@ -18972,7 +18978,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
if (url.indexOf(assetScheme) === 0) {
url = url.replace(assetScheme, '');
if (exports.editorMode) {
console.log("assetResolver(url)", exports.assetResolver(url));
url = exports.assetResolver(url);
}
}
......
This diff is collapsed.
......@@ -117,11 +117,9 @@ export class Loader extends EventDispatcher {
//console.log("覆盖原先数据:" + name);
}
this.caches[name] = data;
console.log(this.caches)
}
get(name: string) {
console.log(this.caches)
return this.caches[name];
}
}
......
......@@ -48,7 +48,6 @@ export class Image extends Sprite implements IUIComponent {
}*/
if (editorMode) {
console.log("assetResolver(url)",assetResolver(url))
url = assetResolver(url);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment