UNPKG

@pilotlab/lux-tools

Version:

A luxurious user experience framework, developed by your friends at Pilot.

21 lines 1.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const attributes_1 = require("@pilotlab/attributes"); const styleElement_1 = require("./styleElement"); class StyleShadow extends styleElement_1.default { constructor(data) { super(data); this.p_offset = this.children.get('offset', new attributes_1.Point(0, 0), attributes_1.DataType.POINT, null, attributes_1.AttributeChangeOptions.zero); this.p_opacity = this.children.get('opacity', 0, attributes_1.DataType.NUMBER_DOUBLE, null, attributes_1.AttributeChangeOptions.zero); this.p_blur = this.children.get('blur', 0, attributes_1.DataType.NUMBER_DOUBLE, null, attributes_1.AttributeChangeOptions.zero); } get opacity() { return this.p_opacity.value; } set opacity(value) { this.p_opacity.set(value, attributes_1.AttributeChangeOptions.save.durationZero); } get blur() { return this.p_blur.value; } set blur(value) { this.p_blur.set(value, attributes_1.AttributeChangeOptions.save.durationZero); } get offset() { return this.p_offset; } set offset(value) { this.p_offset.set(value, attributes_1.AttributeChangeOptions.save.durationZero); } } exports.StyleShadow = StyleShadow; exports.default = StyleShadow; //# sourceMappingURL=styleShadow.js.map