UNPKG

@nodert-win11/windows.devices.lights.effects

Version:

Use the Windows.Devices.Lights.Effects UWP API directly from Node.js

338 lines (263 loc) 9.72 kB
Size = (function () { var cls = function Size() { }; return cls; }) (); exports.Size = Size; Color = (function () { var cls = function Color() { }; return cls; }) (); exports.Color = Color; _LampArrayEffectCompletionBehavior = function () { this.clearState = 0; this.keepState = 1; } exports.LampArrayEffectCompletionBehavior = new _LampArrayEffectCompletionBehavior(); _LampArrayEffectStartMode = function () { this.sequential = 0; this.simultaneous = 1; } exports.LampArrayEffectStartMode = new _LampArrayEffectStartMode(); _LampArrayRepetitionMode = function () { this.occurrences = 0; this.forever = 1; } exports.LampArrayRepetitionMode = new _LampArrayRepetitionMode(); ILampArrayEffect = (function () { var cls = function ILampArrayEffect() { this.zIndex = new Number(); }; return cls; }) (); exports.ILampArrayEffect = ILampArrayEffect; LampArrayBitmapEffect = (function () { var cls = function LampArrayBitmapEffect() { this.updateInterval = new Number(); this.startDelay = new Number(); this.duration = new Number(); this.suggestedBitmapSize = new Object(); this.zIndex = new Number(); }; var cls = function LampArrayBitmapEffect(lampArray, lampIndexes) { this.updateInterval = new Number(); this.startDelay = new Number(); this.duration = new Number(); this.suggestedBitmapSize = new Object(); this.zIndex = new Number(); }; cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.LampArrayBitmapEffect = LampArrayBitmapEffect; LampArrayBitmapRequestedEventArgs = (function () { var cls = function LampArrayBitmapRequestedEventArgs() { this.sinceStarted = new Number(); }; cls.prototype.updateBitmap = function updateBitmap(bitmap) { /// <signature> /// <summary>Function summary.</summary> /// <param name="bitmap" type="Object">A param.</param> /// </signature> } return cls; }) (); exports.LampArrayBitmapRequestedEventArgs = LampArrayBitmapRequestedEventArgs; LampArrayBlinkEffect = (function () { var cls = function LampArrayBlinkEffect() { this.sustainDuration = new Number(); this.startDelay = new Number(); this.repetitionMode = new LampArrayRepetitionMode(); this.repetitionDelay = new Number(); this.occurrences = new Number(); this.decayDuration = new Number(); this.color = new Object(); this.attackDuration = new Number(); this.zIndex = new Number(); }; var cls = function LampArrayBlinkEffect(lampArray, lampIndexes) { this.sustainDuration = new Number(); this.startDelay = new Number(); this.repetitionMode = new LampArrayRepetitionMode(); this.repetitionDelay = new Number(); this.occurrences = new Number(); this.decayDuration = new Number(); this.color = new Object(); this.attackDuration = new Number(); this.zIndex = new Number(); }; return cls; }) (); exports.LampArrayBlinkEffect = LampArrayBlinkEffect; LampArrayColorRampEffect = (function () { var cls = function LampArrayColorRampEffect() { this.startDelay = new Number(); this.rampDuration = new Number(); this.completionBehavior = new LampArrayEffectCompletionBehavior(); this.color = new Object(); this.zIndex = new Number(); }; var cls = function LampArrayColorRampEffect(lampArray, lampIndexes) { this.startDelay = new Number(); this.rampDuration = new Number(); this.completionBehavior = new LampArrayEffectCompletionBehavior(); this.color = new Object(); this.zIndex = new Number(); }; return cls; }) (); exports.LampArrayColorRampEffect = LampArrayColorRampEffect; LampArrayCustomEffect = (function () { var cls = function LampArrayCustomEffect() { this.updateInterval = new Number(); this.duration = new Number(); this.zIndex = new Number(); }; var cls = function LampArrayCustomEffect(lampArray, lampIndexes) { this.updateInterval = new Number(); this.duration = new Number(); this.zIndex = new Number(); }; cls.prototype.addListener = function addListener(eventName, callback){} cls.prototype.removeListener = function removeListener(eventName, callback){} cls.prototype.on = function on(eventName, callback){} cls.prototype.off = function off(eventName, callback){} return cls; }) (); exports.LampArrayCustomEffect = LampArrayCustomEffect; LampArrayEffectPlaylist = (function () { var cls = function LampArrayEffectPlaylist() { this.repetitionMode = new LampArrayRepetitionMode(); this.occurrences = new Number(); this.effectStartMode = new LampArrayEffectStartMode(); }; cls.prototype.append = function append(effect) { /// <signature> /// <summary>Function summary.</summary> /// <param name="effect" type="ILampArrayEffect">A param.</param> /// </signature> } cls.prototype.overrideZIndex = function overrideZIndex(zIndex) { /// <signature> /// <summary>Function summary.</summary> /// <param name="zIndex" type="Number">A param.</param> /// </signature> } cls.prototype.start = function start() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.stop = function stop() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.pause = function pause() { /// <signature> /// <summary>Function summary.</summary> /// </signature> } cls.prototype.getAt = function getAt(index) { /// <signature> /// <summary>Function summary.</summary> /// <param name="index" type="Number">A param.</param> /// <returns type="ILampArrayEffect" /> /// </signature> return new ILampArrayEffect(); } cls.prototype.indexOf = function indexOf(value, index) { /// <signature> /// <summary>Function summary.</summary> /// <param name="value" type="ILampArrayEffect">A param.</param> /// <param name="index" type="Number">A param.</param> /// <returns type="Boolean" /> /// </signature> return new Boolean(); } cls.prototype.getMany = function () { } cls.prototype.first = function first() { /// <signature> /// <summary>Function summary.</summary> /// <returns type="Object" /> /// </signature> return new Object(); } cls.startAll = function startAll(value) { /// <signature> /// <summary>Function summary.</summary> /// <param name="value" type="Object">A param.</param> /// </signature> } cls.stopAll = function stopAll(value) { /// <signature> /// <summary>Function summary.</summary> /// <param name="value" type="Object">A param.</param> /// </signature> } cls.pauseAll = function pauseAll(value) { /// <signature> /// <summary>Function summary.</summary> /// <param name="value" type="Object">A param.</param> /// </signature> } return cls; }) (); exports.LampArrayEffectPlaylist = LampArrayEffectPlaylist; LampArraySolidEffect = (function () { var cls = function LampArraySolidEffect() { this.zIndex = new Number(); this.startDelay = new Number(); this.duration = new Number(); this.completionBehavior = new LampArrayEffectCompletionBehavior(); this.color = new Object(); }; var cls = function LampArraySolidEffect(lampArray, lampIndexes) { this.zIndex = new Number(); this.startDelay = new Number(); this.duration = new Number(); this.completionBehavior = new LampArrayEffectCompletionBehavior(); this.color = new Object(); }; return cls; }) (); exports.LampArraySolidEffect = LampArraySolidEffect; LampArrayUpdateRequestedEventArgs = (function () { var cls = function LampArrayUpdateRequestedEventArgs() { this.sinceStarted = new Number(); }; cls.prototype.setColor = function setColor(desiredColor) { /// <signature> /// <summary>Function summary.</summary> /// <param name="desiredColor" type="Object">A param.</param> /// </signature> } cls.prototype.setColorForIndex = function setColorForIndex(lampIndex, desiredColor) { /// <signature> /// <summary>Function summary.</summary> /// <param name="lampIndex" type="Number">A param.</param> /// <param name="desiredColor" type="Object">A param.</param> /// </signature> } cls.prototype.setSingleColorForIndices = function setSingleColorForIndices(desiredColor, lampIndexes) { /// <signature> /// <summary>Function summary.</summary> /// <param name="desiredColor" type="Object">A param.</param> /// <param name="lampIndexes" type="Array<Number>">A param.</param> /// </signature> } cls.prototype.setColorsForIndices = function setColorsForIndices(desiredColors, lampIndexes) { /// <signature> /// <summary>Function summary.</summary> /// <param name="desiredColors" type="Array<Object>">A param.</param> /// <param name="lampIndexes" type="Array<Number>">A param.</param> /// </signature> } return cls; }) (); exports.LampArrayUpdateRequestedEventArgs = LampArrayUpdateRequestedEventArgs;