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AAC;IACxC,SAAgB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;IACzC,SAAgB,UAAU,EAAE,IAAI,CAAC;IACjC,oEAAoE;IACpE,SAAgB,OAAO,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;IAC5C,SAAgB,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;IAChD,SAAgB,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC;IACtC,SAAgB,UAAU,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;IAClD,SAAgB,MAAM,EAAE,YAAY,CAAC;;IAwB9B,KAAK,IAAI,IAAI;CAkBpB","file":"styles.d.ts","sourcesContent":["/**\n *\tMIT License\n *\n *\tCopyright (c) 2019 - 2021 Toreda, Inc.\n *\n *\tPermission is hereby granted, free of charge, to any person obtaining a copy\n *\tof this software and associated documentation files (the \"Software\"), to deal\n *\tin the Software without restriction, including without limitation the rights\n *\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n *\tcopies of the Software, and to permit persons to whom the Software is\n *\tfurnished to do so, subject to the following conditions:\n\n * \tThe above copyright notice and this permission notice shall be included in all\n * \tcopies or substantial portions of the Software.\n *\n * \tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n *\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n *\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * \tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n *\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n *\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * \tSOFTWARE.\n *\n */\n\nimport {CSSBoxShadow} from './css/box/shadow';\nimport {CSSClip} from './css/clip';\nimport {CSSDisplay} from './css/display';\nimport {CSSFont} from './css/font';\nimport {CSSText} from './css/text';\nimport {CSSUnits} from './css/units';\nimport {CSSUserSelect} from './css/user/select';\nimport type {Float} from './float';\nimport type {Int} from './int';\nimport type {Strong} from './strong';\nimport {StrongMap} from './map';\nimport {StrongTypeId} from '.';\nimport type {Text} from './text';\nimport {floatMake} from './float/make';\nimport {intMake} from './int/make';\nimport {strongMake} from './strong/make';\nimport {textMake} from './text/make';\n\n/**\n * @category Styles\n */\nexport class Styles extends StrongMap {\n\tpublic readonly zIndex: Int;\n\t/** Element opacity from 0 -> 1 */\n\tpublic readonly opacity: Float;\n\tpublic readonly width: Float;\n\tpublic readonly height: Float;\n\tpublic readonly font: CSSFont;\n\tpublic readonly text: CSSText;\n\tpublic readonly lineHeight: Text;\n\tpublic readonly top: Strong<CSSUnits>;\n\tpublic readonly left: Strong<CSSUnits>;\n\tpublic readonly right: Strong<CSSUnits>;\n\tpublic readonly bottom: Strong<CSSUnits>;\n\tpublic readonly background: Text;\n\t/** Specifies element's type of rendering box & display behavior. */\n\tpublic readonly display: Strong<CSSDisplay>;\n\tpublic readonly boxShadow: Strong<CSSBoxShadow>;\n\tpublic readonly clip: Strong<CSSClip>;\n\tpublic readonly userSelect: Strong<CSSUserSelect>;\n\tpublic readonly typeId: StrongTypeId;\n\n\tconstructor() {\n\t\tsuper();\n\n\t\tthis.background = textMake('');\n\t\tthis.bottom = strongMake<CSSUnits>('');\n\t\tthis.boxShadow = strongMake<CSSBoxShadow>('');\n\t\tthis.clip = strongMake<CSSClip>('');\n\t\tthis.display = strongMake<CSSDisplay>('');\n\t\tthis.font = new CSSFont();\n\t\tthis.height = floatMake(1);\n\t\tthis.left = strongMake<CSSUnits>('');\n\t\tthis.lineHeight = textMake('');\n\t\tthis.opacity = floatMake(1);\n\t\tthis.right = strongMake<CSSUnits>('');\n\t\tthis.text = new CSSText();\n\t\tthis.top = strongMake<CSSUnits>('');\n\t\tthis.userSelect = strongMake<CSSUserSelect>('');\n\t\tthis.width = floatMake(1);\n\t\tthis.zIndex = intMake(0);\n\t\tthis.typeId = 'Styles';\n\t}\n\n\tpublic reset(): void {\n\t\tthis.background.reset();\n\t\tthis.bottom.reset();\n\t\tthis.boxShadow.reset();\n\t\tthis.clip.reset();\n\t\tthis.display.reset();\n\t\tthis.font.reset();\n\t\tthis.height.reset();\n\t\tthis.left.reset();\n\t\tthis.lineHeight.reset();\n\t\tthis.opacity.reset();\n\t\tthis.right.reset();\n\t\tthis.text.reset();\n\t\tthis.top.reset();\n\t\tthis.userSelect.reset();\n\t\tthis.width.reset();\n\t\tthis.zIndex.reset();\n\t}\n}\n"]}