UNPKG

@pilotlab/lux-tools

Version:

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

14 lines 707 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const attributes_1 = require("@pilotlab/attributes"); class StyleElement extends attributes_1.Attribute { constructor(data) { super('styleElement', data, attributes_1.DataType.COLLECTION); this.p_color = this.children.get('color', new attributes_1.Color(), attributes_1.DataType.COLOR, null, attributes_1.AttributeChangeOptions.zero); } get color() { return this.p_color.value; } set color(value) { this.p_color.value.set(value, attributes_1.AttributeChangeOptions.save.durationZero); } } exports.StyleElement = StyleElement; exports.default = StyleElement; //# sourceMappingURL=styleElement.js.map