mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
28 lines
936 B
JavaScript
28 lines
936 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
|
|
var TEXT_ALIGN;
|
|
(function (TEXT_ALIGN) {
|
|
TEXT_ALIGN[TEXT_ALIGN["LEFT"] = 0] = "LEFT";
|
|
TEXT_ALIGN[TEXT_ALIGN["CENTER"] = 1] = "CENTER";
|
|
TEXT_ALIGN[TEXT_ALIGN["RIGHT"] = 2] = "RIGHT";
|
|
})(TEXT_ALIGN = exports.TEXT_ALIGN || (exports.TEXT_ALIGN = {}));
|
|
exports.textAlign = {
|
|
name: 'text-align',
|
|
initialValue: 'left',
|
|
prefix: false,
|
|
type: IPropertyDescriptor_1.PropertyDescriptorParsingType.IDENT_VALUE,
|
|
parse: function (textAlign) {
|
|
switch (textAlign) {
|
|
case 'right':
|
|
return TEXT_ALIGN.RIGHT;
|
|
case 'center':
|
|
case 'justify':
|
|
return TEXT_ALIGN.CENTER;
|
|
case 'left':
|
|
default:
|
|
return TEXT_ALIGN.LEFT;
|
|
}
|
|
}
|
|
};
|
|
//# sourceMappingURL=text-align.js.map
|