initial commit
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
shadow$provide.module$node_modules$pixi_DOT_js$lib$scene$text_split$SplitText = function(global, require, module, exports) {
|
||||
var TextStyle = require("module$node_modules$pixi_DOT_js$lib$scene$text$TextStyle"), canvasTextSplit = require("module$node_modules$pixi_DOT_js$lib$scene$text$utils$canvasTextSplit");
|
||||
global = require("module$node_modules$pixi_DOT_js$lib$scene$text_split$AbstractSplitText");
|
||||
"use strict";
|
||||
const node_modules$pixi_DOT_js$lib$scene$text_split$SplitText$classdecl$var55 = class extends global.AbstractSplitText {
|
||||
constructor(config) {
|
||||
super({...node_modules$pixi_DOT_js$lib$scene$text_split$SplitText$classdecl$var55.defaultOptions, ...config});
|
||||
}
|
||||
static from(text, options) {
|
||||
options = {...node_modules$pixi_DOT_js$lib$scene$text_split$SplitText$classdecl$var55.defaultOptions, ...options, text:text.text, style:new TextStyle.TextStyle(text.style)};
|
||||
options = new node_modules$pixi_DOT_js$lib$scene$text_split$SplitText$classdecl$var55({...options});
|
||||
text = text.anchor;
|
||||
0 === text.x && 0 === text.y || options.pivot.set(options.width * text.x, options.height * text.y);
|
||||
return options;
|
||||
}
|
||||
splitFn() {
|
||||
return canvasTextSplit.canvasTextSplit({text:this._originalText, style:this._style, chars:this._canReuseChars ? this.chars : []});
|
||||
}
|
||||
};
|
||||
global = node_modules$pixi_DOT_js$lib$scene$text_split$SplitText$classdecl$var55;
|
||||
global.defaultOptions = {autoSplit:!0, lineAnchor:0, wordAnchor:0, charAnchor:0};
|
||||
exports.SplitText = global;
|
||||
};
|
||||
|
||||
//# sourceMappingURL=module$node_modules$pixi_DOT_js$lib$scene$text_split$SplitText.js.map
|
||||
Reference in New Issue
Block a user