refactoring
This commit is contained in:
@@ -12,8 +12,8 @@ class TextObject {
|
||||
txt.maxWidth = obj.width;
|
||||
txt.textAlign = 'center';
|
||||
txt.font = obj.fontPath;
|
||||
txt.anchorX = 'center';
|
||||
txt.anchorY = 'bottom';
|
||||
txt.anchorX = obj.anchorX || 'center';
|
||||
txt.anchorY = obj.anchorY || 'bottom';
|
||||
txt.curveRadius = 0;
|
||||
txt.outlineColor = 0xffffff;
|
||||
txt.outlineWidth = '15%';
|
||||
|
||||
Reference in New Issue
Block a user