1 line
1.4 KiB
JavaScript
1 line
1.4 KiB
JavaScript
|
|
"use strict";var e=function(){function e(e,r){for(var n in r){var t=r[n];t.configurable=!0,t.value&&(t.writable=!0)}Object.defineProperties(e,r)}return function(r,n,t){return n&&e(r.prototype,n),t&&e(r,t),r}}(),r=function u(e,r,n){var t=Object.getOwnPropertyDescriptor(e,r);if(void 0===t){var o=Object.getPrototypeOf(e);return null===o?void 0:u(o,r,n)}if("value"in t&&t.writable)return t.value;var i=t.get;if(void 0!==i)return i.call(n)},n=function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(e.__proto__=r)},t=function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")},o=require("../layer").DOFBaseLayer,i={layerType:"LED",properties:{Color:{type:"rgb",defaultValue:{r:255,g:255,b:255},blendOperation:"add"}},dofs:{lightring_redChannelBn_r:!0,lightring_greenChannelBn_r:!0,lightring_blueChannelBn_r:!0}},l=function(o){function l(){t(this,l),r(Object.getPrototypeOf(l.prototype),"constructor",this).call(this)}return n(l,o),e(l,null,{getInfo:{value:function(){return i}},generateDofs:{value:function(e){return{lightring_redChannelBn_r:e.Color.r/255,lightring_greenChannelBn_r:e.Color.g/255,lightring_blueChannelBn_r:e.Color.b/255}}}}),l}(o);module.exports=l;
|