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

--

parent 551e93a9
...@@ -14692,10 +14692,8 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -14692,10 +14692,8 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
Loader.prototype.cache = function (name, data) { Loader.prototype.cache = function (name, data) {
if (this.caches[name]) ; if (this.caches[name]) ;
this.caches[name] = data; this.caches[name] = data;
console.log(this.caches);
}; };
Loader.prototype.get = function (name) { Loader.prototype.get = function (name) {
console.log(this.caches);
return this.caches[name]; return this.caches[name];
}; };
return Loader; return Loader;
...@@ -15309,6 +15307,14 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -15309,6 +15307,14 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
return w; 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 () { TextField.prototype.updateTexture = function () {
var canvas = this.canvas; var canvas = this.canvas;
var texture = this._texture; var texture = this._texture;
...@@ -18972,7 +18978,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate: ...@@ -18972,7 +18978,6 @@ var tslib = {__extends: __extends,__assign: __assign,__rest: __rest,__decorate:
if (url.indexOf(assetScheme) === 0) { if (url.indexOf(assetScheme) === 0) {
url = url.replace(assetScheme, ''); url = url.replace(assetScheme, '');
if (exports.editorMode) { if (exports.editorMode) {
console.log("assetResolver(url)", exports.assetResolver(url));
url = exports.assetResolver(url); url = exports.assetResolver(url);
} }
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -117,11 +117,9 @@ export class Loader extends EventDispatcher { ...@@ -117,11 +117,9 @@ export class Loader extends EventDispatcher {
//console.log("覆盖原先数据:" + name); //console.log("覆盖原先数据:" + name);
} }
this.caches[name] = data; this.caches[name] = data;
console.log(this.caches)
} }
get(name: string) { get(name: string) {
console.log(this.caches)
return this.caches[name]; return this.caches[name];
} }
} }
......
...@@ -48,7 +48,6 @@ export class Image extends Sprite implements IUIComponent { ...@@ -48,7 +48,6 @@ export class Image extends Sprite implements IUIComponent {
}*/ }*/
if (editorMode) { if (editorMode) {
console.log("assetResolver(url)",assetResolver(url))
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