mirror of
https://github.com/photonstorm/phaser
synced 2024-12-24 20:13:35 +00:00
32 lines
1.1 KiB
JavaScript
32 lines
1.1 KiB
JavaScript
|
var TextStyle = {
|
||
|
|
||
|
font: '20px Arial',
|
||
|
backgroundColor: null,
|
||
|
fill: 'black',
|
||
|
stroke: 'black',
|
||
|
strokeThickness: 0,
|
||
|
align: 'left',
|
||
|
|
||
|
|
||
|
// style.font = style.font || 'bold 20pt Arial';
|
||
|
// style.backgroundColor = style.backgroundColor || null;
|
||
|
// style.fill = style.fill || 'black';
|
||
|
// style.align = style.align || 'left';
|
||
|
// style.boundsAlignH = style.boundsAlignH || 'left';
|
||
|
// style.boundsAlignV = style.boundsAlignV || 'top';
|
||
|
// style.stroke = style.stroke || 'black'; //provide a default, see: https://github.com/GoodBoyDigital/pixi.js/issues/136
|
||
|
// style.strokeThickness = style.strokeThickness || 0;
|
||
|
// style.wordWrap = style.wordWrap || false;
|
||
|
// style.wordWrapWidth = style.wordWrapWidth || 100;
|
||
|
// style.maxLines = style.maxLines || 0;
|
||
|
// style.shadowOffsetX = style.shadowOffsetX || 0;
|
||
|
// style.shadowOffsetY = style.shadowOffsetY || 0;
|
||
|
// style.shadowColor = style.shadowColor || 'rgba(0,0,0,0)';
|
||
|
// style.shadowBlur = style.shadowBlur || 0;
|
||
|
// style.tabs = style.tabs || 0;
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
module.exports = TextStyle;
|