html2canvas/dist/lib/css/property-descriptors/list-style-position.js
2021-04-23 19:08:34 -04:00

24 lines
928 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
var LIST_STYLE_POSITION;
(function (LIST_STYLE_POSITION) {
LIST_STYLE_POSITION[LIST_STYLE_POSITION["INSIDE"] = 0] = "INSIDE";
LIST_STYLE_POSITION[LIST_STYLE_POSITION["OUTSIDE"] = 1] = "OUTSIDE";
})(LIST_STYLE_POSITION = exports.LIST_STYLE_POSITION || (exports.LIST_STYLE_POSITION = {}));
exports.listStylePosition = {
name: 'list-style-position',
initialValue: 'outside',
prefix: false,
type: IPropertyDescriptor_1.PropertyDescriptorParsingType.IDENT_VALUE,
parse: function (position) {
switch (position) {
case 'inside':
return LIST_STYLE_POSITION.INSIDE;
case 'outside':
default:
return LIST_STYLE_POSITION.OUTSIDE;
}
}
};
//# sourceMappingURL=list-style-position.js.map