12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826 |
- 'use strict';
- // autogenerated - 7/15/2019
- /*
- *
- * https://www.w3.org/Style/CSS/all-properties.en.html
- */
- var external_dependency_parsers_0 = require("./parsers.js");
- var external_dependency_constants_1 = require("./constants.js");
- var azimuth_export_definition;
- azimuth_export_definition = {
- set: function (v) {
- var valueType = external_dependency_parsers_0.valueType(v);
- if (valueType === external_dependency_parsers_0.TYPES.ANGLE) {
- return this._setProperty('azimuth', external_dependency_parsers_0.parseAngle(v));
- }
- if (valueType === external_dependency_parsers_0.TYPES.KEYWORD) {
- var keywords = v.toLowerCase().trim().split(/\s+/);
- var hasBehind = false;
- if (keywords.length > 2) {
- return;
- }
- var behindIndex = keywords.indexOf('behind');
- hasBehind = behindIndex !== -1;
- if (keywords.length === 2) {
- if (!hasBehind) {
- return;
- }
- keywords.splice(behindIndex, 1);
- }
- if (keywords[0] === 'leftwards' || keywords[0] === 'rightwards') {
- if (hasBehind) {
- return;
- }
- return this._setProperty('azimuth', keywords[0]);
- }
- if (keywords[0] === 'behind') {
- return this._setProperty('azimuth', '180deg');
- }
- switch (keywords[0]) {
- case 'left-side':
- return this._setProperty('azimuth', '270deg');
- case 'far-left':
- return this._setProperty('azimuth', (hasBehind ? 240 : 300) + 'deg');
- case 'left':
- return this._setProperty('azimuth', (hasBehind ? 220 : 320) + 'deg');
- case 'center-left':
- return this._setProperty('azimuth', (hasBehind ? 200 : 340) + 'deg');
- case 'center':
- return this._setProperty('azimuth', (hasBehind ? 180 : 0) + 'deg');
- case 'center-right':
- return this._setProperty('azimuth', (hasBehind ? 160 : 20) + 'deg');
- case 'right':
- return this._setProperty('azimuth', (hasBehind ? 140 : 40) + 'deg');
- case 'far-right':
- return this._setProperty('azimuth', (hasBehind ? 120 : 60) + 'deg');
- case 'right-side':
- return this._setProperty('azimuth', '90deg');
- default:
- return;
- }
- }
- },
- get: function () {
- return this.getPropertyValue('azimuth');
- },
- enumerable: true,
- configurable: true
- };
- var backgroundColor_export_isValid, backgroundColor_export_definition;
- var backgroundColor_local_var_parse = function parse(v) {
- var parsed = external_dependency_parsers_0.parseColor(v);
- if (parsed !== undefined) {
- return parsed;
- }
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'transparent' || v.toLowerCase() === 'inherit')) {
- return v;
- }
- return undefined;
- };
- backgroundColor_export_isValid = function isValid(v) {
- return backgroundColor_local_var_parse(v) !== undefined;
- };
- backgroundColor_export_definition = {
- set: function (v) {
- var parsed = backgroundColor_local_var_parse(v);
- if (parsed === undefined) {
- return;
- }
- this._setProperty('background-color', parsed);
- },
- get: function () {
- return this.getPropertyValue('background-color');
- },
- enumerable: true,
- configurable: true
- };
- var backgroundImage_export_isValid, backgroundImage_export_definition;
- var backgroundImage_local_var_parse = function parse(v) {
- var parsed = external_dependency_parsers_0.parseUrl(v);
- if (parsed !== undefined) {
- return parsed;
- }
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'none' || v.toLowerCase() === 'inherit')) {
- return v;
- }
- return undefined;
- };
- backgroundImage_export_isValid = function isValid(v) {
- return backgroundImage_local_var_parse(v) !== undefined;
- };
- backgroundImage_export_definition = {
- set: function (v) {
- this._setProperty('background-image', backgroundImage_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('background-image');
- },
- enumerable: true,
- configurable: true
- };
- var backgroundRepeat_export_isValid, backgroundRepeat_export_definition;
- var backgroundRepeat_local_var_parse = function parse(v) {
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'repeat' || v.toLowerCase() === 'repeat-x' || v.toLowerCase() === 'repeat-y' || v.toLowerCase() === 'no-repeat' || v.toLowerCase() === 'inherit')) {
- return v;
- }
- return undefined;
- };
- backgroundRepeat_export_isValid = function isValid(v) {
- return backgroundRepeat_local_var_parse(v) !== undefined;
- };
- backgroundRepeat_export_definition = {
- set: function (v) {
- this._setProperty('background-repeat', backgroundRepeat_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('background-repeat');
- },
- enumerable: true,
- configurable: true
- };
- var backgroundAttachment_export_isValid, backgroundAttachment_export_definition;
- var backgroundAttachment_local_var_isValid = backgroundAttachment_export_isValid = function isValid(v) {
- return external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'scroll' || v.toLowerCase() === 'fixed' || v.toLowerCase() === 'inherit');
- };
- backgroundAttachment_export_definition = {
- set: function (v) {
- if (!backgroundAttachment_local_var_isValid(v)) {
- return;
- }
- this._setProperty('background-attachment', v);
- },
- get: function () {
- return this.getPropertyValue('background-attachment');
- },
- enumerable: true,
- configurable: true
- };
- var backgroundPosition_export_isValid, backgroundPosition_export_definition;
- var backgroundPosition_local_var_valid_keywords = ['top', 'center', 'bottom', 'left', 'right'];
- var backgroundPosition_local_var_parse = function parse(v) {
- if (v === '' || v === null) {
- return undefined;
- }
- var parts = v.split(/\s+/);
- if (parts.length > 2 || parts.length < 1) {
- return undefined;
- }
- var types = [];
- parts.forEach(function (part, index) {
- types[index] = external_dependency_parsers_0.valueType(part);
- });
- if (parts.length === 1) {
- if (types[0] === external_dependency_parsers_0.TYPES.LENGTH || types[0] === external_dependency_parsers_0.TYPES.PERCENT) {
- return v;
- }
- if (types[0] === external_dependency_parsers_0.TYPES.KEYWORD) {
- if (backgroundPosition_local_var_valid_keywords.indexOf(v.toLowerCase()) !== -1 || v.toLowerCase() === 'inherit') {
- return v;
- }
- }
- return undefined;
- }
- if ((types[0] === external_dependency_parsers_0.TYPES.LENGTH || types[0] === external_dependency_parsers_0.TYPES.PERCENT) && (types[1] === external_dependency_parsers_0.TYPES.LENGTH || types[1] === external_dependency_parsers_0.TYPES.PERCENT)) {
- return v;
- }
- if (types[0] !== external_dependency_parsers_0.TYPES.KEYWORD || types[1] !== external_dependency_parsers_0.TYPES.KEYWORD) {
- return undefined;
- }
- if (backgroundPosition_local_var_valid_keywords.indexOf(parts[0]) !== -1 && backgroundPosition_local_var_valid_keywords.indexOf(parts[1]) !== -1) {
- return v;
- }
- return undefined;
- };
- backgroundPosition_export_isValid = function isValid(v) {
- return backgroundPosition_local_var_parse(v) !== undefined;
- };
- backgroundPosition_export_definition = {
- set: function (v) {
- this._setProperty('background-position', backgroundPosition_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('background-position');
- },
- enumerable: true,
- configurable: true
- };
- var background_export_definition;
- var background_local_var_shorthand_for = {
- 'background-color': {
- isValid: backgroundColor_export_isValid,
- definition: backgroundColor_export_definition
- },
- 'background-image': {
- isValid: backgroundImage_export_isValid,
- definition: backgroundImage_export_definition
- },
- 'background-repeat': {
- isValid: backgroundRepeat_export_isValid,
- definition: backgroundRepeat_export_definition
- },
- 'background-attachment': {
- isValid: backgroundAttachment_export_isValid,
- definition: backgroundAttachment_export_definition
- },
- 'background-position': {
- isValid: backgroundPosition_export_isValid,
- definition: backgroundPosition_export_definition
- }
- };
- background_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('background', background_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('background', background_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var borderWidth_export_isValid, borderWidth_export_definition;
- // the valid border-widths:
- var borderWidth_local_var_widths = ['thin', 'medium', 'thick'];
- borderWidth_export_isValid = function parse(v) {
- var length = external_dependency_parsers_0.parseLength(v);
- if (length !== undefined) {
- return true;
- }
- if (typeof v !== 'string') {
- return false;
- }
- if (v === '') {
- return true;
- }
- v = v.toLowerCase();
- if (borderWidth_local_var_widths.indexOf(v) === -1) {
- return false;
- }
- return true;
- };
- var borderWidth_local_var_isValid = borderWidth_export_isValid;
- var borderWidth_local_var_parser = function (v) {
- var length = external_dependency_parsers_0.parseLength(v);
- if (length !== undefined) {
- return length;
- }
- if (borderWidth_local_var_isValid(v)) {
- return v.toLowerCase();
- }
- return undefined;
- };
- borderWidth_export_definition = {
- set: external_dependency_parsers_0.implicitSetter('border', 'width', borderWidth_local_var_isValid, borderWidth_local_var_parser),
- get: function () {
- return this.getPropertyValue('border-width');
- },
- enumerable: true,
- configurable: true
- };
- var borderStyle_export_isValid, borderStyle_export_definition;
- // the valid border-styles:
- var borderStyle_local_var_styles = ['none', 'hidden', 'dotted', 'dashed', 'solid', 'double', 'groove', 'ridge', 'inset', 'outset'];
- borderStyle_export_isValid = function parse(v) {
- return typeof v === 'string' && (v === '' || borderStyle_local_var_styles.indexOf(v) !== -1);
- };
- var borderStyle_local_var_isValid = borderStyle_export_isValid;
- var borderStyle_local_var_parser = function (v) {
- if (borderStyle_local_var_isValid(v)) {
- return v.toLowerCase();
- }
- return undefined;
- };
- borderStyle_export_definition = {
- set: external_dependency_parsers_0.implicitSetter('border', 'style', borderStyle_local_var_isValid, borderStyle_local_var_parser),
- get: function () {
- return this.getPropertyValue('border-style');
- },
- enumerable: true,
- configurable: true
- };
- var borderColor_export_isValid, borderColor_export_definition;
- borderColor_export_isValid = function parse(v) {
- if (typeof v !== 'string') {
- return false;
- }
- return v === '' || v.toLowerCase() === 'transparent' || external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.COLOR;
- };
- var borderColor_local_var_isValid = borderColor_export_isValid;
- var borderColor_local_var_parser = function (v) {
- if (borderColor_local_var_isValid(v)) {
- return v.toLowerCase();
- }
- return undefined;
- };
- borderColor_export_definition = {
- set: external_dependency_parsers_0.implicitSetter('border', 'color', borderColor_local_var_isValid, borderColor_local_var_parser),
- get: function () {
- return this.getPropertyValue('border-color');
- },
- enumerable: true,
- configurable: true
- };
- var border_export_definition;
- var border_local_var_shorthand_for = {
- 'border-width': {
- isValid: borderWidth_export_isValid,
- definition: borderWidth_export_definition
- },
- 'border-style': {
- isValid: borderStyle_export_isValid,
- definition: borderStyle_export_definition
- },
- 'border-color': {
- isValid: borderColor_export_isValid,
- definition: borderColor_export_definition
- }
- };
- var border_local_var_myShorthandSetter = external_dependency_parsers_0.shorthandSetter('border', border_local_var_shorthand_for);
- var border_local_var_myShorthandGetter = external_dependency_parsers_0.shorthandGetter('border', border_local_var_shorthand_for);
- border_export_definition = {
- set: function (v) {
- if (v.toString().toLowerCase() === 'none') {
- v = '';
- }
- border_local_var_myShorthandSetter.call(this, v);
- this.removeProperty('border-top');
- this.removeProperty('border-left');
- this.removeProperty('border-right');
- this.removeProperty('border-bottom');
- this._values['border-top'] = this._values.border;
- this._values['border-left'] = this._values.border;
- this._values['border-right'] = this._values.border;
- this._values['border-bottom'] = this._values.border;
- },
- get: border_local_var_myShorthandGetter,
- enumerable: true,
- configurable: true
- };
- var borderBottomWidth_export_isValid, borderBottomWidth_export_definition;
- var borderBottomWidth_local_var_isValid = borderBottomWidth_export_isValid = borderWidth_export_isValid;
- borderBottomWidth_export_definition = {
- set: function (v) {
- if (borderBottomWidth_local_var_isValid(v)) {
- this._setProperty('border-bottom-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-bottom-width');
- },
- enumerable: true,
- configurable: true
- };
- var borderBottomStyle_export_isValid, borderBottomStyle_export_definition;
- borderBottomStyle_export_isValid = borderStyle_export_isValid;
- borderBottomStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-bottom-width');
- }
- this._setProperty('border-bottom-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-bottom-style');
- },
- enumerable: true,
- configurable: true
- };
- var borderBottomColor_export_isValid, borderBottomColor_export_definition;
- var borderBottomColor_local_var_isValid = borderBottomColor_export_isValid = borderColor_export_isValid;
- borderBottomColor_export_definition = {
- set: function (v) {
- if (borderBottomColor_local_var_isValid(v)) {
- this._setProperty('border-bottom-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-bottom-color');
- },
- enumerable: true,
- configurable: true
- };
- var borderBottom_export_definition;
- var borderBottom_local_var_shorthand_for = {
- 'border-bottom-width': {
- isValid: borderBottomWidth_export_isValid,
- definition: borderBottomWidth_export_definition
- },
- 'border-bottom-style': {
- isValid: borderBottomStyle_export_isValid,
- definition: borderBottomStyle_export_definition
- },
- 'border-bottom-color': {
- isValid: borderBottomColor_export_isValid,
- definition: borderBottomColor_export_definition
- }
- };
- borderBottom_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-bottom', borderBottom_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-bottom', borderBottom_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var borderCollapse_export_definition;
- var borderCollapse_local_var_parse = function parse(v) {
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && (v.toLowerCase() === 'collapse' || v.toLowerCase() === 'separate' || v.toLowerCase() === 'inherit')) {
- return v;
- }
- return undefined;
- };
- borderCollapse_export_definition = {
- set: function (v) {
- this._setProperty('border-collapse', borderCollapse_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('border-collapse');
- },
- enumerable: true,
- configurable: true
- };
- var borderLeftWidth_export_isValid, borderLeftWidth_export_definition;
- var borderLeftWidth_local_var_isValid = borderLeftWidth_export_isValid = borderWidth_export_isValid;
- borderLeftWidth_export_definition = {
- set: function (v) {
- if (borderLeftWidth_local_var_isValid(v)) {
- this._setProperty('border-left-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-left-width');
- },
- enumerable: true,
- configurable: true
- };
- var borderLeftStyle_export_isValid, borderLeftStyle_export_definition;
- borderLeftStyle_export_isValid = borderStyle_export_isValid;
- borderLeftStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-left-width');
- }
- this._setProperty('border-left-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-left-style');
- },
- enumerable: true,
- configurable: true
- };
- var borderLeftColor_export_isValid, borderLeftColor_export_definition;
- var borderLeftColor_local_var_isValid = borderLeftColor_export_isValid = borderColor_export_isValid;
- borderLeftColor_export_definition = {
- set: function (v) {
- if (borderLeftColor_local_var_isValid(v)) {
- this._setProperty('border-left-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-left-color');
- },
- enumerable: true,
- configurable: true
- };
- var borderLeft_export_definition;
- var borderLeft_local_var_shorthand_for = {
- 'border-left-width': {
- isValid: borderLeftWidth_export_isValid,
- definition: borderLeftWidth_export_definition
- },
- 'border-left-style': {
- isValid: borderLeftStyle_export_isValid,
- definition: borderLeftStyle_export_definition
- },
- 'border-left-color': {
- isValid: borderLeftColor_export_isValid,
- definition: borderLeftColor_export_definition
- }
- };
- borderLeft_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-left', borderLeft_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-left', borderLeft_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var borderRightWidth_export_isValid, borderRightWidth_export_definition;
- var borderRightWidth_local_var_isValid = borderRightWidth_export_isValid = borderWidth_export_isValid;
- borderRightWidth_export_definition = {
- set: function (v) {
- if (borderRightWidth_local_var_isValid(v)) {
- this._setProperty('border-right-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-right-width');
- },
- enumerable: true,
- configurable: true
- };
- var borderRightStyle_export_isValid, borderRightStyle_export_definition;
- borderRightStyle_export_isValid = borderStyle_export_isValid;
- borderRightStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-right-width');
- }
- this._setProperty('border-right-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-right-style');
- },
- enumerable: true,
- configurable: true
- };
- var borderRightColor_export_isValid, borderRightColor_export_definition;
- var borderRightColor_local_var_isValid = borderRightColor_export_isValid = borderColor_export_isValid;
- borderRightColor_export_definition = {
- set: function (v) {
- if (borderRightColor_local_var_isValid(v)) {
- this._setProperty('border-right-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-right-color');
- },
- enumerable: true,
- configurable: true
- };
- var borderRight_export_definition;
- var borderRight_local_var_shorthand_for = {
- 'border-right-width': {
- isValid: borderRightWidth_export_isValid,
- definition: borderRightWidth_export_definition
- },
- 'border-right-style': {
- isValid: borderRightStyle_export_isValid,
- definition: borderRightStyle_export_definition
- },
- 'border-right-color': {
- isValid: borderRightColor_export_isValid,
- definition: borderRightColor_export_definition
- }
- };
- borderRight_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-right', borderRight_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-right', borderRight_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var borderSpacing_export_definition;
- // <length> <length>? | inherit
- // if one, it applies to both horizontal and verical spacing
- // if two, the first applies to the horizontal and the second applies to vertical spacing
- var borderSpacing_local_var_parse = function parse(v) {
- if (v === '' || v === null) {
- return undefined;
- }
- if (v === 0) {
- return '0px';
- }
- if (v.toLowerCase() === 'inherit') {
- return v;
- }
- var parts = v.split(/\s+/);
- if (parts.length !== 1 && parts.length !== 2) {
- return undefined;
- }
- parts.forEach(function (part) {
- if (external_dependency_parsers_0.valueType(part) !== external_dependency_parsers_0.TYPES.LENGTH) {
- return undefined;
- }
- });
- return v;
- };
- borderSpacing_export_definition = {
- set: function (v) {
- this._setProperty('border-spacing', borderSpacing_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('border-spacing');
- },
- enumerable: true,
- configurable: true
- };
- var borderTopWidth_export_isValid, borderTopWidth_export_definition;
- borderTopWidth_export_isValid = borderWidth_export_isValid;
- borderTopWidth_export_definition = {
- set: function (v) {
- if (borderWidth_export_isValid(v)) {
- this._setProperty('border-top-width', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-top-width');
- },
- enumerable: true,
- configurable: true
- };
- var borderTopStyle_export_isValid, borderTopStyle_export_definition;
- borderTopStyle_export_isValid = borderStyle_export_isValid;
- borderTopStyle_export_definition = {
- set: function (v) {
- if (borderStyle_export_isValid(v)) {
- if (v.toLowerCase() === 'none') {
- v = '';
- this.removeProperty('border-top-width');
- }
- this._setProperty('border-top-style', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-top-style');
- },
- enumerable: true,
- configurable: true
- };
- var borderTopColor_export_isValid, borderTopColor_export_definition;
- var borderTopColor_local_var_isValid = borderTopColor_export_isValid = borderColor_export_isValid;
- borderTopColor_export_definition = {
- set: function (v) {
- if (borderTopColor_local_var_isValid(v)) {
- this._setProperty('border-top-color', v);
- }
- },
- get: function () {
- return this.getPropertyValue('border-top-color');
- },
- enumerable: true,
- configurable: true
- };
- var borderTop_export_definition;
- var borderTop_local_var_shorthand_for = {
- 'border-top-width': {
- isValid: borderTopWidth_export_isValid,
- definition: borderTopWidth_export_definition
- },
- 'border-top-style': {
- isValid: borderTopStyle_export_isValid,
- definition: borderTopStyle_export_definition
- },
- 'border-top-color': {
- isValid: borderTopColor_export_isValid,
- definition: borderTopColor_export_definition
- }
- };
- borderTop_export_definition = {
- set: external_dependency_parsers_0.shorthandSetter('border-top', borderTop_local_var_shorthand_for),
- get: external_dependency_parsers_0.shorthandGetter('border-top', borderTop_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var bottom_export_definition;
- bottom_export_definition = {
- set: function (v) {
- this._setProperty('bottom', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('bottom');
- },
- enumerable: true,
- configurable: true
- };
- var clear_export_definition;
- var clear_local_var_clear_keywords = ['none', 'left', 'right', 'both', 'inherit'];
- clear_export_definition = {
- set: function (v) {
- this._setProperty('clear', external_dependency_parsers_0.parseKeyword(v, clear_local_var_clear_keywords));
- },
- get: function () {
- return this.getPropertyValue('clear');
- },
- enumerable: true,
- configurable: true
- };
- var clip_export_definition;
- var clip_local_var_shape_regex = /^rect\((.*)\)$/i;
- var clip_local_var_parse = function (val) {
- if (val === '' || val === null) {
- return val;
- }
- if (typeof val !== 'string') {
- return undefined;
- }
- val = val.toLowerCase();
- if (val === 'auto' || val === 'inherit') {
- return val;
- }
- var matches = val.match(clip_local_var_shape_regex);
- if (!matches) {
- return undefined;
- }
- var parts = matches[1].split(/\s*,\s*/);
- if (parts.length !== 4) {
- return undefined;
- }
- var valid = parts.every(function (part, index) {
- var measurement = external_dependency_parsers_0.parseMeasurement(part);
- parts[index] = measurement;
- return measurement !== undefined;
- });
- if (!valid) {
- return undefined;
- }
- parts = parts.join(', ');
- return val.replace(matches[1], parts);
- };
- clip_export_definition = {
- set: function (v) {
- this._setProperty('clip', clip_local_var_parse(v));
- },
- get: function () {
- return this.getPropertyValue('clip');
- },
- enumerable: true,
- configurable: true
- };
- var color_export_definition;
- color_export_definition = {
- set: function (v) {
- this._setProperty('color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('color');
- },
- enumerable: true,
- configurable: true
- };
- var cssFloat_export_definition;
- cssFloat_export_definition = {
- set: function (v) {
- this._setProperty('float', v);
- },
- get: function () {
- return this.getPropertyValue('float');
- },
- enumerable: true,
- configurable: true
- };
- var flexGrow_export_isValid, flexGrow_export_definition;
- flexGrow_export_isValid = function isValid(v, positionAtFlexShorthand) {
- return external_dependency_parsers_0.parseNumber(v) !== undefined && positionAtFlexShorthand === external_dependency_constants_1.POSITION_AT_SHORTHAND.first;
- };
- flexGrow_export_definition = {
- set: function (v) {
- this._setProperty('flex-grow', external_dependency_parsers_0.parseNumber(v));
- },
- get: function () {
- return this.getPropertyValue('flex-grow');
- },
- enumerable: true,
- configurable: true
- };
- var flexShrink_export_isValid, flexShrink_export_definition;
- flexShrink_export_isValid = function isValid(v, positionAtFlexShorthand) {
- return external_dependency_parsers_0.parseNumber(v) !== undefined && positionAtFlexShorthand === external_dependency_constants_1.POSITION_AT_SHORTHAND.second;
- };
- flexShrink_export_definition = {
- set: function (v) {
- this._setProperty('flex-shrink', external_dependency_parsers_0.parseNumber(v));
- },
- get: function () {
- return this.getPropertyValue('flex-shrink');
- },
- enumerable: true,
- configurable: true
- };
- var flexBasis_export_isValid, flexBasis_export_definition;
- function flexBasis_local_fn_parse(v) {
- if (String(v).toLowerCase() === 'auto') {
- return 'auto';
- }
- if (String(v).toLowerCase() === 'inherit') {
- return 'inherit';
- }
- return external_dependency_parsers_0.parseMeasurement(v);
- }
- flexBasis_export_isValid = function isValid(v) {
- return flexBasis_local_fn_parse(v) !== undefined;
- };
- flexBasis_export_definition = {
- set: function (v) {
- this._setProperty('flex-basis', flexBasis_local_fn_parse(v));
- },
- get: function () {
- return this.getPropertyValue('flex-basis');
- },
- enumerable: true,
- configurable: true
- };
- var flex_export_isValid, flex_export_definition;
- var flex_local_var_shorthand_for = {
- 'flex-grow': {
- isValid: flexGrow_export_isValid,
- definition: flexGrow_export_definition
- },
- 'flex-shrink': {
- isValid: flexShrink_export_isValid,
- definition: flexShrink_export_definition
- },
- 'flex-basis': {
- isValid: flexBasis_export_isValid,
- definition: flexBasis_export_definition
- }
- };
- var flex_local_var_myShorthandSetter = external_dependency_parsers_0.shorthandSetter('flex', flex_local_var_shorthand_for);
- flex_export_isValid = function isValid(v) {
- return external_dependency_parsers_0.shorthandParser(v, flex_local_var_shorthand_for) !== undefined;
- };
- flex_export_definition = {
- set: function (v) {
- var normalizedValue = String(v).trim().toLowerCase();
- if (normalizedValue === 'none') {
- flex_local_var_myShorthandSetter.call(this, '0 0 auto');
- return;
- }
- if (normalizedValue === 'initial') {
- flex_local_var_myShorthandSetter.call(this, '0 1 auto');
- return;
- }
- if (normalizedValue === 'auto') {
- this.removeProperty('flex-grow');
- this.removeProperty('flex-shrink');
- this.setProperty('flex-basis', normalizedValue);
- return;
- }
- flex_local_var_myShorthandSetter.call(this, v);
- },
- get: external_dependency_parsers_0.shorthandGetter('flex', flex_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var float_export_definition;
- float_export_definition = {
- set: function (v) {
- this._setProperty('float', v);
- },
- get: function () {
- return this.getPropertyValue('float');
- },
- enumerable: true,
- configurable: true
- };
- var floodColor_export_definition;
- floodColor_export_definition = {
- set: function (v) {
- this._setProperty('flood-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('flood-color');
- },
- enumerable: true,
- configurable: true
- };
- var fontFamily_export_isValid, fontFamily_export_definition;
- var fontFamily_local_var_partsRegEx = /\s*,\s*/;
- fontFamily_export_isValid = function isValid(v) {
- if (v === '' || v === null) {
- return true;
- }
- var parts = v.split(fontFamily_local_var_partsRegEx);
- var len = parts.length;
- var i;
- var type;
- for (i = 0; i < len; i++) {
- type = external_dependency_parsers_0.valueType(parts[i]);
- if (type === external_dependency_parsers_0.TYPES.STRING || type === external_dependency_parsers_0.TYPES.KEYWORD) {
- return true;
- }
- }
- return false;
- };
- fontFamily_export_definition = {
- set: function (v) {
- this._setProperty('font-family', v);
- },
- get: function () {
- return this.getPropertyValue('font-family');
- },
- enumerable: true,
- configurable: true
- };
- var fontSize_export_isValid, fontSize_export_definition;
- var fontSize_local_var_absoluteSizes = ['xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large'];
- var fontSize_local_var_relativeSizes = ['larger', 'smaller'];
- fontSize_export_isValid = function (v) {
- var type = external_dependency_parsers_0.valueType(v.toLowerCase());
- return type === external_dependency_parsers_0.TYPES.LENGTH || type === external_dependency_parsers_0.TYPES.PERCENT || type === external_dependency_parsers_0.TYPES.KEYWORD && fontSize_local_var_absoluteSizes.indexOf(v.toLowerCase()) !== -1 || type === external_dependency_parsers_0.TYPES.KEYWORD && fontSize_local_var_relativeSizes.indexOf(v.toLowerCase()) !== -1;
- };
- fontSize_export_definition = {
- set: function (v) {
- this._setProperty('font-size', v);
- },
- get: function () {
- return this.getPropertyValue('font-size');
- },
- enumerable: true,
- configurable: true
- };
- var fontStyle_export_isValid, fontStyle_export_definition;
- var fontStyle_local_var_valid_styles = ['normal', 'italic', 'oblique', 'inherit'];
- fontStyle_export_isValid = function (v) {
- return fontStyle_local_var_valid_styles.indexOf(v.toLowerCase()) !== -1;
- };
- fontStyle_export_definition = {
- set: function (v) {
- this._setProperty('font-style', v);
- },
- get: function () {
- return this.getPropertyValue('font-style');
- },
- enumerable: true,
- configurable: true
- };
- var fontVariant_export_isValid, fontVariant_export_definition;
- var fontVariant_local_var_valid_variants = ['normal', 'small-caps', 'inherit'];
- fontVariant_export_isValid = function isValid(v) {
- return fontVariant_local_var_valid_variants.indexOf(v.toLowerCase()) !== -1;
- };
- fontVariant_export_definition = {
- set: function (v) {
- this._setProperty('font-variant', v);
- },
- get: function () {
- return this.getPropertyValue('font-variant');
- },
- enumerable: true,
- configurable: true
- };
- var fontWeight_export_isValid, fontWeight_export_definition;
- var fontWeight_local_var_valid_weights = ['normal', 'bold', 'bolder', 'lighter', '100', '200', '300', '400', '500', '600', '700', '800', '900', 'inherit'];
- fontWeight_export_isValid = function isValid(v) {
- return fontWeight_local_var_valid_weights.indexOf(v.toLowerCase()) !== -1;
- };
- fontWeight_export_definition = {
- set: function (v) {
- this._setProperty('font-weight', v);
- },
- get: function () {
- return this.getPropertyValue('font-weight');
- },
- enumerable: true,
- configurable: true
- };
- var lineHeight_export_isValid, lineHeight_export_definition;
- lineHeight_export_isValid = function isValid(v) {
- var type = external_dependency_parsers_0.valueType(v);
- return type === external_dependency_parsers_0.TYPES.KEYWORD && v.toLowerCase() === 'normal' || v.toLowerCase() === 'inherit' || type === external_dependency_parsers_0.TYPES.NUMBER || type === external_dependency_parsers_0.TYPES.LENGTH || type === external_dependency_parsers_0.TYPES.PERCENT;
- };
- lineHeight_export_definition = {
- set: function (v) {
- this._setProperty('line-height', v);
- },
- get: function () {
- return this.getPropertyValue('line-height');
- },
- enumerable: true,
- configurable: true
- };
- var font_export_definition;
- var font_local_var_shorthand_for = {
- 'font-family': {
- isValid: fontFamily_export_isValid,
- definition: fontFamily_export_definition
- },
- 'font-size': {
- isValid: fontSize_export_isValid,
- definition: fontSize_export_definition
- },
- 'font-style': {
- isValid: fontStyle_export_isValid,
- definition: fontStyle_export_definition
- },
- 'font-variant': {
- isValid: fontVariant_export_isValid,
- definition: fontVariant_export_definition
- },
- 'font-weight': {
- isValid: fontWeight_export_isValid,
- definition: fontWeight_export_definition
- },
- 'line-height': {
- isValid: lineHeight_export_isValid,
- definition: lineHeight_export_definition
- }
- };
- var font_local_var_static_fonts = ['caption', 'icon', 'menu', 'message-box', 'small-caption', 'status-bar', 'inherit'];
- var font_local_var_setter = external_dependency_parsers_0.shorthandSetter('font', font_local_var_shorthand_for);
- font_export_definition = {
- set: function (v) {
- var short = external_dependency_parsers_0.shorthandParser(v, font_local_var_shorthand_for);
- if (short !== undefined) {
- return font_local_var_setter.call(this, v);
- }
- if (external_dependency_parsers_0.valueType(v) === external_dependency_parsers_0.TYPES.KEYWORD && font_local_var_static_fonts.indexOf(v.toLowerCase()) !== -1) {
- this._setProperty('font', v);
- }
- },
- get: external_dependency_parsers_0.shorthandGetter('font', font_local_var_shorthand_for),
- enumerable: true,
- configurable: true
- };
- var height_export_definition;
- function height_local_fn_parse(v) {
- if (String(v).toLowerCase() === 'auto') {
- return 'auto';
- }
- if (String(v).toLowerCase() === 'inherit') {
- return 'inherit';
- }
- return external_dependency_parsers_0.parseMeasurement(v);
- }
- height_export_definition = {
- set: function (v) {
- this._setProperty('height', height_local_fn_parse(v));
- },
- get: function () {
- return this.getPropertyValue('height');
- },
- enumerable: true,
- configurable: true
- };
- var left_export_definition;
- left_export_definition = {
- set: function (v) {
- this._setProperty('left', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('left');
- },
- enumerable: true,
- configurable: true
- };
- var lightingColor_export_definition;
- lightingColor_export_definition = {
- set: function (v) {
- this._setProperty('lighting-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('lighting-color');
- },
- enumerable: true,
- configurable: true
- };
- var margin_export_definition, margin_export_isValid, margin_export_parser;
- var margin_local_var_TYPES = external_dependency_parsers_0.TYPES;
- var margin_local_var_isValid = function (v) {
- if (v.toLowerCase() === 'auto') {
- return true;
- }
- var type = external_dependency_parsers_0.valueType(v);
- return type === margin_local_var_TYPES.LENGTH || type === margin_local_var_TYPES.PERCENT || type === margin_local_var_TYPES.INTEGER && (v === '0' || v === 0);
- };
- var margin_local_var_parser = function (v) {
- var V = v.toLowerCase();
- if (V === 'auto') {
- return V;
- }
- return external_dependency_parsers_0.parseMeasurement(v);
- };
- var margin_local_var_mySetter = external_dependency_parsers_0.implicitSetter('margin', '', margin_local_var_isValid, margin_local_var_parser);
- var margin_local_var_myGlobal = external_dependency_parsers_0.implicitSetter('margin', '', function () {
- return true;
- }, function (v) {
- return v;
- });
- margin_export_definition = {
- set: function (v) {
- if (typeof v === 'number') {
- v = String(v);
- }
- if (typeof v !== 'string') {
- return;
- }
- var V = v.toLowerCase();
- switch (V) {
- case 'inherit':
- case 'initial':
- case 'unset':
- case '':
- margin_local_var_myGlobal.call(this, V);
- break;
- default:
- margin_local_var_mySetter.call(this, v);
- break;
- }
- },
- get: function () {
- return this.getPropertyValue('margin');
- },
- enumerable: true,
- configurable: true
- };
- margin_export_isValid = margin_local_var_isValid;
- margin_export_parser = margin_local_var_parser;
- var marginBottom_export_definition;
- marginBottom_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'bottom', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-bottom');
- },
- enumerable: true,
- configurable: true
- };
- var marginLeft_export_definition;
- marginLeft_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'left', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-left');
- },
- enumerable: true,
- configurable: true
- };
- var marginRight_export_definition;
- marginRight_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'right', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-right');
- },
- enumerable: true,
- configurable: true
- };
- var marginTop_export_definition;
- marginTop_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('margin', 'top', {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.isValid, {
- definition: margin_export_definition,
- isValid: margin_export_isValid,
- parser: margin_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('margin-top');
- },
- enumerable: true,
- configurable: true
- };
- var opacity_export_definition;
- opacity_export_definition = {
- set: function (v) {
- this._setProperty('opacity', external_dependency_parsers_0.parseNumber(v));
- },
- get: function () {
- return this.getPropertyValue('opacity');
- },
- enumerable: true,
- configurable: true
- };
- var outlineColor_export_definition;
- outlineColor_export_definition = {
- set: function (v) {
- this._setProperty('outline-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('outline-color');
- },
- enumerable: true,
- configurable: true
- };
- var padding_export_definition, padding_export_isValid, padding_export_parser;
- var padding_local_var_TYPES = external_dependency_parsers_0.TYPES;
- var padding_local_var_isValid = function (v) {
- var type = external_dependency_parsers_0.valueType(v);
- return type === padding_local_var_TYPES.LENGTH || type === padding_local_var_TYPES.PERCENT || type === padding_local_var_TYPES.INTEGER && (v === '0' || v === 0);
- };
- var padding_local_var_parser = function (v) {
- return external_dependency_parsers_0.parseMeasurement(v);
- };
- var padding_local_var_mySetter = external_dependency_parsers_0.implicitSetter('padding', '', padding_local_var_isValid, padding_local_var_parser);
- var padding_local_var_myGlobal = external_dependency_parsers_0.implicitSetter('padding', '', function () {
- return true;
- }, function (v) {
- return v;
- });
- padding_export_definition = {
- set: function (v) {
- if (typeof v === 'number') {
- v = String(v);
- }
- if (typeof v !== 'string') {
- return;
- }
- var V = v.toLowerCase();
- switch (V) {
- case 'inherit':
- case 'initial':
- case 'unset':
- case '':
- padding_local_var_myGlobal.call(this, V);
- break;
- default:
- padding_local_var_mySetter.call(this, v);
- break;
- }
- },
- get: function () {
- return this.getPropertyValue('padding');
- },
- enumerable: true,
- configurable: true
- };
- padding_export_isValid = padding_local_var_isValid;
- padding_export_parser = padding_local_var_parser;
- var paddingBottom_export_definition;
- paddingBottom_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'bottom', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-bottom');
- },
- enumerable: true,
- configurable: true
- };
- var paddingLeft_export_definition;
- paddingLeft_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'left', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-left');
- },
- enumerable: true,
- configurable: true
- };
- var paddingRight_export_definition;
- paddingRight_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'right', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-right');
- },
- enumerable: true,
- configurable: true
- };
- var paddingTop_export_definition;
- paddingTop_export_definition = {
- set: external_dependency_parsers_0.subImplicitSetter('padding', 'top', {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.isValid, {
- definition: padding_export_definition,
- isValid: padding_export_isValid,
- parser: padding_export_parser
- }.parser),
- get: function () {
- return this.getPropertyValue('padding-top');
- },
- enumerable: true,
- configurable: true
- };
- var right_export_definition;
- right_export_definition = {
- set: function (v) {
- this._setProperty('right', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('right');
- },
- enumerable: true,
- configurable: true
- };
- var stopColor_export_definition;
- stopColor_export_definition = {
- set: function (v) {
- this._setProperty('stop-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('stop-color');
- },
- enumerable: true,
- configurable: true
- };
- var textLineThroughColor_export_definition;
- textLineThroughColor_export_definition = {
- set: function (v) {
- this._setProperty('text-line-through-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('text-line-through-color');
- },
- enumerable: true,
- configurable: true
- };
- var textOverlineColor_export_definition;
- textOverlineColor_export_definition = {
- set: function (v) {
- this._setProperty('text-overline-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('text-overline-color');
- },
- enumerable: true,
- configurable: true
- };
- var textUnderlineColor_export_definition;
- textUnderlineColor_export_definition = {
- set: function (v) {
- this._setProperty('text-underline-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('text-underline-color');
- },
- enumerable: true,
- configurable: true
- };
- var top_export_definition;
- top_export_definition = {
- set: function (v) {
- this._setProperty('top', external_dependency_parsers_0.parseMeasurement(v));
- },
- get: function () {
- return this.getPropertyValue('top');
- },
- enumerable: true,
- configurable: true
- };
- var webkitBorderAfterColor_export_definition;
- webkitBorderAfterColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-after-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-after-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitBorderBeforeColor_export_definition;
- webkitBorderBeforeColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-before-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-before-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitBorderEndColor_export_definition;
- webkitBorderEndColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-end-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-end-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitBorderStartColor_export_definition;
- webkitBorderStartColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-border-start-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-border-start-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitColumnRuleColor_export_definition;
- webkitColumnRuleColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-column-rule-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-column-rule-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitMatchNearestMailBlockquoteColor_export_definition;
- webkitMatchNearestMailBlockquoteColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-match-nearest-mail-blockquote-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-match-nearest-mail-blockquote-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitTapHighlightColor_export_definition;
- webkitTapHighlightColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-tap-highlight-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-tap-highlight-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitTextEmphasisColor_export_definition;
- webkitTextEmphasisColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-text-emphasis-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-text-emphasis-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitTextFillColor_export_definition;
- webkitTextFillColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-text-fill-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-text-fill-color');
- },
- enumerable: true,
- configurable: true
- };
- var webkitTextStrokeColor_export_definition;
- webkitTextStrokeColor_export_definition = {
- set: function (v) {
- this._setProperty('-webkit-text-stroke-color', external_dependency_parsers_0.parseColor(v));
- },
- get: function () {
- return this.getPropertyValue('-webkit-text-stroke-color');
- },
- enumerable: true,
- configurable: true
- };
- var width_export_definition;
- function width_local_fn_parse(v) {
- if (String(v).toLowerCase() === 'auto') {
- return 'auto';
- }
- if (String(v).toLowerCase() === 'inherit') {
- return 'inherit';
- }
- return external_dependency_parsers_0.parseMeasurement(v);
- }
- width_export_definition = {
- set: function (v) {
- this._setProperty('width', width_local_fn_parse(v));
- },
- get: function () {
- return this.getPropertyValue('width');
- },
- enumerable: true,
- configurable: true
- };
- module.exports = function (prototype) {
- Object.defineProperties(prototype, {
- azimuth: azimuth_export_definition,
- backgroundColor: backgroundColor_export_definition,
- "background-color": backgroundColor_export_definition,
- backgroundImage: backgroundImage_export_definition,
- "background-image": backgroundImage_export_definition,
- backgroundRepeat: backgroundRepeat_export_definition,
- "background-repeat": backgroundRepeat_export_definition,
- backgroundAttachment: backgroundAttachment_export_definition,
- "background-attachment": backgroundAttachment_export_definition,
- backgroundPosition: backgroundPosition_export_definition,
- "background-position": backgroundPosition_export_definition,
- background: background_export_definition,
- borderWidth: borderWidth_export_definition,
- "border-width": borderWidth_export_definition,
- borderStyle: borderStyle_export_definition,
- "border-style": borderStyle_export_definition,
- borderColor: borderColor_export_definition,
- "border-color": borderColor_export_definition,
- border: border_export_definition,
- borderBottomWidth: borderBottomWidth_export_definition,
- "border-bottom-width": borderBottomWidth_export_definition,
- borderBottomStyle: borderBottomStyle_export_definition,
- "border-bottom-style": borderBottomStyle_export_definition,
- borderBottomColor: borderBottomColor_export_definition,
- "border-bottom-color": borderBottomColor_export_definition,
- borderBottom: borderBottom_export_definition,
- "border-bottom": borderBottom_export_definition,
- borderCollapse: borderCollapse_export_definition,
- "border-collapse": borderCollapse_export_definition,
- borderLeftWidth: borderLeftWidth_export_definition,
- "border-left-width": borderLeftWidth_export_definition,
- borderLeftStyle: borderLeftStyle_export_definition,
- "border-left-style": borderLeftStyle_export_definition,
- borderLeftColor: borderLeftColor_export_definition,
- "border-left-color": borderLeftColor_export_definition,
- borderLeft: borderLeft_export_definition,
- "border-left": borderLeft_export_definition,
- borderRightWidth: borderRightWidth_export_definition,
- "border-right-width": borderRightWidth_export_definition,
- borderRightStyle: borderRightStyle_export_definition,
- "border-right-style": borderRightStyle_export_definition,
- borderRightColor: borderRightColor_export_definition,
- "border-right-color": borderRightColor_export_definition,
- borderRight: borderRight_export_definition,
- "border-right": borderRight_export_definition,
- borderSpacing: borderSpacing_export_definition,
- "border-spacing": borderSpacing_export_definition,
- borderTopWidth: borderTopWidth_export_definition,
- "border-top-width": borderTopWidth_export_definition,
- borderTopStyle: borderTopStyle_export_definition,
- "border-top-style": borderTopStyle_export_definition,
- borderTopColor: borderTopColor_export_definition,
- "border-top-color": borderTopColor_export_definition,
- borderTop: borderTop_export_definition,
- "border-top": borderTop_export_definition,
- bottom: bottom_export_definition,
- clear: clear_export_definition,
- clip: clip_export_definition,
- color: color_export_definition,
- cssFloat: cssFloat_export_definition,
- "css-float": cssFloat_export_definition,
- flexGrow: flexGrow_export_definition,
- "flex-grow": flexGrow_export_definition,
- flexShrink: flexShrink_export_definition,
- "flex-shrink": flexShrink_export_definition,
- flexBasis: flexBasis_export_definition,
- "flex-basis": flexBasis_export_definition,
- flex: flex_export_definition,
- float: float_export_definition,
- floodColor: floodColor_export_definition,
- "flood-color": floodColor_export_definition,
- fontFamily: fontFamily_export_definition,
- "font-family": fontFamily_export_definition,
- fontSize: fontSize_export_definition,
- "font-size": fontSize_export_definition,
- fontStyle: fontStyle_export_definition,
- "font-style": fontStyle_export_definition,
- fontVariant: fontVariant_export_definition,
- "font-variant": fontVariant_export_definition,
- fontWeight: fontWeight_export_definition,
- "font-weight": fontWeight_export_definition,
- lineHeight: lineHeight_export_definition,
- "line-height": lineHeight_export_definition,
- font: font_export_definition,
- height: height_export_definition,
- left: left_export_definition,
- lightingColor: lightingColor_export_definition,
- "lighting-color": lightingColor_export_definition,
- margin: margin_export_definition,
- marginBottom: marginBottom_export_definition,
- "margin-bottom": marginBottom_export_definition,
- marginLeft: marginLeft_export_definition,
- "margin-left": marginLeft_export_definition,
- marginRight: marginRight_export_definition,
- "margin-right": marginRight_export_definition,
- marginTop: marginTop_export_definition,
- "margin-top": marginTop_export_definition,
- opacity: opacity_export_definition,
- outlineColor: outlineColor_export_definition,
- "outline-color": outlineColor_export_definition,
- padding: padding_export_definition,
- paddingBottom: paddingBottom_export_definition,
- "padding-bottom": paddingBottom_export_definition,
- paddingLeft: paddingLeft_export_definition,
- "padding-left": paddingLeft_export_definition,
- paddingRight: paddingRight_export_definition,
- "padding-right": paddingRight_export_definition,
- paddingTop: paddingTop_export_definition,
- "padding-top": paddingTop_export_definition,
- right: right_export_definition,
- stopColor: stopColor_export_definition,
- "stop-color": stopColor_export_definition,
- textLineThroughColor: textLineThroughColor_export_definition,
- "text-line-through-color": textLineThroughColor_export_definition,
- textOverlineColor: textOverlineColor_export_definition,
- "text-overline-color": textOverlineColor_export_definition,
- textUnderlineColor: textUnderlineColor_export_definition,
- "text-underline-color": textUnderlineColor_export_definition,
- top: top_export_definition,
- webkitBorderAfterColor: webkitBorderAfterColor_export_definition,
- "webkit-border-after-color": webkitBorderAfterColor_export_definition,
- webkitBorderBeforeColor: webkitBorderBeforeColor_export_definition,
- "webkit-border-before-color": webkitBorderBeforeColor_export_definition,
- webkitBorderEndColor: webkitBorderEndColor_export_definition,
- "webkit-border-end-color": webkitBorderEndColor_export_definition,
- webkitBorderStartColor: webkitBorderStartColor_export_definition,
- "webkit-border-start-color": webkitBorderStartColor_export_definition,
- webkitColumnRuleColor: webkitColumnRuleColor_export_definition,
- "webkit-column-rule-color": webkitColumnRuleColor_export_definition,
- webkitMatchNearestMailBlockquoteColor: webkitMatchNearestMailBlockquoteColor_export_definition,
- "webkit-match-nearest-mail-blockquote-color": webkitMatchNearestMailBlockquoteColor_export_definition,
- webkitTapHighlightColor: webkitTapHighlightColor_export_definition,
- "webkit-tap-highlight-color": webkitTapHighlightColor_export_definition,
- webkitTextEmphasisColor: webkitTextEmphasisColor_export_definition,
- "webkit-text-emphasis-color": webkitTextEmphasisColor_export_definition,
- webkitTextFillColor: webkitTextFillColor_export_definition,
- "webkit-text-fill-color": webkitTextFillColor_export_definition,
- webkitTextStrokeColor: webkitTextStrokeColor_export_definition,
- "webkit-text-stroke-color": webkitTextStrokeColor_export_definition,
- width: width_export_definition
- });
- };
|