mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
31 lines
1.0 KiB
JavaScript
31 lines
1.0 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
var IPropertyDescriptor_1 = require("../IPropertyDescriptor");
|
|
var POSITION;
|
|
(function (POSITION) {
|
|
POSITION[POSITION["STATIC"] = 0] = "STATIC";
|
|
POSITION[POSITION["RELATIVE"] = 1] = "RELATIVE";
|
|
POSITION[POSITION["ABSOLUTE"] = 2] = "ABSOLUTE";
|
|
POSITION[POSITION["FIXED"] = 3] = "FIXED";
|
|
POSITION[POSITION["STICKY"] = 4] = "STICKY";
|
|
})(POSITION = exports.POSITION || (exports.POSITION = {}));
|
|
exports.position = {
|
|
name: 'position',
|
|
initialValue: 'static',
|
|
prefix: false,
|
|
type: IPropertyDescriptor_1.PropertyDescriptorParsingType.IDENT_VALUE,
|
|
parse: function (position) {
|
|
switch (position) {
|
|
case 'relative':
|
|
return POSITION.RELATIVE;
|
|
case 'absolute':
|
|
return POSITION.ABSOLUTE;
|
|
case 'fixed':
|
|
return POSITION.FIXED;
|
|
case 'sticky':
|
|
return POSITION.STICKY;
|
|
}
|
|
return POSITION.STATIC;
|
|
}
|
|
};
|
|
//# sourceMappingURL=position.js.map
|