diff --git a/docs/api/README.md b/docs/api/README.md index f6bb3ae..4b98b5d 100644 --- a/docs/api/README.md +++ b/docs/api/README.md @@ -1,6 +1,6 @@ -Rocket Nuimo - v1.2.0 +Rocket Nuimo - v1.2.1 -# Rocket Nuimo - v1.2.0 +# Rocket Nuimo - v1.2.1 ## Table of contents diff --git a/docs/api/classes/devicediscoverymanager.md b/docs/api/classes/devicediscoverymanager.md index bf39b46..d5f74f4 100644 --- a/docs/api/classes/devicediscoverymanager.md +++ b/docs/api/classes/devicediscoverymanager.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / DeviceDiscoveryManager +[Rocket Nuimo - v1.2.1](../README.md) / DeviceDiscoveryManager # Class: DeviceDiscoveryManager diff --git a/docs/api/classes/devicediscoverysession.md b/docs/api/classes/devicediscoverysession.md index 82064c9..dddaabd 100644 --- a/docs/api/classes/devicediscoverysession.md +++ b/docs/api/classes/devicediscoverysession.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / DeviceDiscoverySession +[Rocket Nuimo - v1.2.1](../README.md) / DeviceDiscoverySession # Class: DeviceDiscoverySession diff --git a/docs/api/classes/glyph.md b/docs/api/classes/glyph.md index 0be4f88..ddff033 100644 --- a/docs/api/classes/glyph.md +++ b/docs/api/classes/glyph.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / Glyph +[Rocket Nuimo - v1.2.1](../README.md) / Glyph # Class: Glyph diff --git a/docs/api/classes/nuimocontroldevice.md b/docs/api/classes/nuimocontroldevice.md index 9fa29e5..5ecce6e 100644 --- a/docs/api/classes/nuimocontroldevice.md +++ b/docs/api/classes/nuimocontroldevice.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / NuimoControlDevice +[Rocket Nuimo - v1.2.1](../README.md) / NuimoControlDevice # Class: NuimoControlDevice diff --git a/docs/api/classes/nuimodevicecommunicationerror.md b/docs/api/classes/nuimodevicecommunicationerror.md index 263eb3e..4b793c0 100644 --- a/docs/api/classes/nuimodevicecommunicationerror.md +++ b/docs/api/classes/nuimodevicecommunicationerror.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / NuimoDeviceCommunicationError +[Rocket Nuimo - v1.2.1](../README.md) / NuimoDeviceCommunicationError # Class: NuimoDeviceCommunicationError diff --git a/docs/api/classes/nuimoerror.md b/docs/api/classes/nuimoerror.md index aa23256..c1af1d4 100644 --- a/docs/api/classes/nuimoerror.md +++ b/docs/api/classes/nuimoerror.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / NuimoError +[Rocket Nuimo - v1.2.1](../README.md) / NuimoError # Class: NuimoError diff --git a/docs/api/enums/deviceconnectedstatus.md b/docs/api/enums/deviceconnectedstatus.md index 725e207..a9818f2 100644 --- a/docs/api/enums/deviceconnectedstatus.md +++ b/docs/api/enums/deviceconnectedstatus.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / DeviceConnectedStatus +[Rocket Nuimo - v1.2.1](../README.md) / DeviceConnectedStatus # Enumeration: DeviceConnectedStatus diff --git a/docs/api/enums/devicediscoverystate.md b/docs/api/enums/devicediscoverystate.md index 4104565..df3d239 100644 --- a/docs/api/enums/devicediscoverystate.md +++ b/docs/api/enums/devicediscoverystate.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / DeviceDiscoveryState +[Rocket Nuimo - v1.2.1](../README.md) / DeviceDiscoveryState # Enumeration: DeviceDiscoveryState diff --git a/docs/api/enums/displaycomposition.md b/docs/api/enums/displaycomposition.md index 3b1c7b4..6817c75 100644 --- a/docs/api/enums/displaycomposition.md +++ b/docs/api/enums/displaycomposition.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / DisplayComposition +[Rocket Nuimo - v1.2.1](../README.md) / DisplayComposition # Enumeration: DisplayComposition diff --git a/docs/api/enums/displaytransition.md b/docs/api/enums/displaytransition.md index 6f0eebd..8557ea1 100644 --- a/docs/api/enums/displaytransition.md +++ b/docs/api/enums/displaytransition.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / DisplayTransition +[Rocket Nuimo - v1.2.1](../README.md) / DisplayTransition # Enumeration: DisplayTransition diff --git a/docs/api/enums/glyphalignment.md b/docs/api/enums/glyphalignment.md index 101a1aa..3fcaddf 100644 --- a/docs/api/enums/glyphalignment.md +++ b/docs/api/enums/glyphalignment.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / GlyphAlignment +[Rocket Nuimo - v1.2.1](../README.md) / GlyphAlignment # Enumeration: GlyphAlignment diff --git a/docs/api/enums/nuimodevicecommunicationerrorcode.md b/docs/api/enums/nuimodevicecommunicationerrorcode.md index bda2506..4a8d6bb 100644 --- a/docs/api/enums/nuimodevicecommunicationerrorcode.md +++ b/docs/api/enums/nuimodevicecommunicationerrorcode.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / NuimoDeviceCommunicationErrorCode +[Rocket Nuimo - v1.2.1](../README.md) / NuimoDeviceCommunicationErrorCode # Enumeration: NuimoDeviceCommunicationErrorCode diff --git a/docs/api/enums/rotationmode.md b/docs/api/enums/rotationmode.md index 898e53f..3a04174 100644 --- a/docs/api/enums/rotationmode.md +++ b/docs/api/enums/rotationmode.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / RotationMode +[Rocket Nuimo - v1.2.1](../README.md) / RotationMode # Enumeration: RotationMode @@ -9,7 +9,7 @@ Modes for rotation support ### Enumeration members - [Clamped](rotationmode.md#clamped) -- [Continous](rotationmode.md#continous) +- [Continuous](rotationmode.md#continuous) ## Enumeration members @@ -23,9 +23,9 @@ No events will be fired when at the ends of a set rotation range ___ -### Continous +### Continuous -• **Continous** = 1 +• **Continuous** = 1 -Causes rotation to be continous. When in this mode there will be no +Causes rotation to be continuous. When in this mode there will be no rotation value returned or evented. You must rely on the delta rotation only diff --git a/docs/api/enums/swipegesturedirection.md b/docs/api/enums/swipegesturedirection.md index cf380bf..9a28b63 100644 --- a/docs/api/enums/swipegesturedirection.md +++ b/docs/api/enums/swipegesturedirection.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / SwipeGestureDirection +[Rocket Nuimo - v1.2.1](../README.md) / SwipeGestureDirection # Enumeration: SwipeGestureDirection diff --git a/docs/api/enums/touchgesturearea.md b/docs/api/enums/touchgesturearea.md index 727c89f..a3c3ce6 100644 --- a/docs/api/enums/touchgesturearea.md +++ b/docs/api/enums/touchgesturearea.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / TouchGestureArea +[Rocket Nuimo - v1.2.1](../README.md) / TouchGestureArea # Enumeration: TouchGestureArea diff --git a/docs/api/interfaces/devicediscoverysessionoptions.md b/docs/api/interfaces/devicediscoverysessionoptions.md index 7c75ee2..26899fc 100644 --- a/docs/api/interfaces/devicediscoverysessionoptions.md +++ b/docs/api/interfaces/devicediscoverysessionoptions.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / DeviceDiscoverySessionOptions +[Rocket Nuimo - v1.2.1](../README.md) / DeviceDiscoverySessionOptions # Interface: DeviceDiscoverySessionOptions diff --git a/docs/api/interfaces/displayglyphoptions.md b/docs/api/interfaces/displayglyphoptions.md index d8990ac..16598e4 100644 --- a/docs/api/interfaces/displayglyphoptions.md +++ b/docs/api/interfaces/displayglyphoptions.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / DisplayGlyphOptions +[Rocket Nuimo - v1.2.1](../README.md) / DisplayGlyphOptions # Interface: DisplayGlyphOptions diff --git a/docs/api/interfaces/onbatterylevecallback.md b/docs/api/interfaces/onbatterylevecallback.md index 9473c4c..448240c 100644 --- a/docs/api/interfaces/onbatterylevecallback.md +++ b/docs/api/interfaces/onbatterylevecallback.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / OnBatteryLeveCallback +[Rocket Nuimo - v1.2.1](../README.md) / OnBatteryLeveCallback # Interface: OnBatteryLeveCallback diff --git a/docs/api/interfaces/ondevicediscoveredcallback.md b/docs/api/interfaces/ondevicediscoveredcallback.md index e061e9e..36fc964 100644 --- a/docs/api/interfaces/ondevicediscoveredcallback.md +++ b/docs/api/interfaces/ondevicediscoveredcallback.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / OnDeviceDiscoveredCallback +[Rocket Nuimo - v1.2.1](../README.md) / OnDeviceDiscoveredCallback # Interface: OnDeviceDiscoveredCallback diff --git a/docs/api/interfaces/ondirectionalswipegesturecallback.md b/docs/api/interfaces/ondirectionalswipegesturecallback.md index abe4a56..50234bb 100644 --- a/docs/api/interfaces/ondirectionalswipegesturecallback.md +++ b/docs/api/interfaces/ondirectionalswipegesturecallback.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / OnDirectionalSwipeGestureCallback +[Rocket Nuimo - v1.2.1](../README.md) / OnDirectionalSwipeGestureCallback # Interface: OnDirectionalSwipeGestureCallback diff --git a/docs/api/interfaces/ondiscoverydonecallback.md b/docs/api/interfaces/ondiscoverydonecallback.md index e08be67..6717431 100644 --- a/docs/api/interfaces/ondiscoverydonecallback.md +++ b/docs/api/interfaces/ondiscoverydonecallback.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / OnDiscoveryDoneCallback +[Rocket Nuimo - v1.2.1](../README.md) / OnDiscoveryDoneCallback # Interface: OnDiscoveryDoneCallback diff --git a/docs/api/interfaces/onerrorcallback.md b/docs/api/interfaces/onerrorcallback.md index f9dc19f..a53c0d6 100644 --- a/docs/api/interfaces/onerrorcallback.md +++ b/docs/api/interfaces/onerrorcallback.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / OnErrorCallback +[Rocket Nuimo - v1.2.1](../README.md) / OnErrorCallback # Interface: OnErrorCallback diff --git a/docs/api/interfaces/oneventcallback.md b/docs/api/interfaces/oneventcallback.md index fd5613c..b17adb9 100644 --- a/docs/api/interfaces/oneventcallback.md +++ b/docs/api/interfaces/oneventcallback.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / OnEventCallback +[Rocket Nuimo - v1.2.1](../README.md) / OnEventCallback # Interface: OnEventCallback diff --git a/docs/api/interfaces/onhovercallback.md b/docs/api/interfaces/onhovercallback.md index a43149b..d2e0527 100644 --- a/docs/api/interfaces/onhovercallback.md +++ b/docs/api/interfaces/onhovercallback.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / OnHoverCallback +[Rocket Nuimo - v1.2.1](../README.md) / OnHoverCallback # Interface: OnHoverCallback diff --git a/docs/api/interfaces/onrotatecallback.md b/docs/api/interfaces/onrotatecallback.md index 4824e28..5d0d5e9 100644 --- a/docs/api/interfaces/onrotatecallback.md +++ b/docs/api/interfaces/onrotatecallback.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / OnRotateCallback +[Rocket Nuimo - v1.2.1](../README.md) / OnRotateCallback # Interface: OnRotateCallback diff --git a/docs/api/interfaces/onrssicallback.md b/docs/api/interfaces/onrssicallback.md index f27e190..dac3210 100644 --- a/docs/api/interfaces/onrssicallback.md +++ b/docs/api/interfaces/onrssicallback.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / OnRssiCallback +[Rocket Nuimo - v1.2.1](../README.md) / OnRssiCallback # Interface: OnRssiCallback diff --git a/docs/api/interfaces/onswipegesturecallback.md b/docs/api/interfaces/onswipegesturecallback.md index 8d777b4..b9ba523 100644 --- a/docs/api/interfaces/onswipegesturecallback.md +++ b/docs/api/interfaces/onswipegesturecallback.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / OnSwipeGestureCallback +[Rocket Nuimo - v1.2.1](../README.md) / OnSwipeGestureCallback # Interface: OnSwipeGestureCallback diff --git a/docs/api/interfaces/ontouchgesturecallback.md b/docs/api/interfaces/ontouchgesturecallback.md index 0670d56..b4d1bdc 100644 --- a/docs/api/interfaces/ontouchgesturecallback.md +++ b/docs/api/interfaces/ontouchgesturecallback.md @@ -1,4 +1,4 @@ -[Rocket Nuimo - v1.2.0](../README.md) / OnTouchGestureCallback +[Rocket Nuimo - v1.2.1](../README.md) / OnTouchGestureCallback # Interface: OnTouchGestureCallback diff --git a/package.json b/package.json index 66115a4..2db675f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rocket-nuimo", - "version": "1.2.0", + "version": "1.2.1", "description": "🚀 Client package for connecting to Nuimo Control by Senic", "license": "MIT", "private": true, diff --git a/src/model/nuimo-control-device.ts b/src/model/nuimo-control-device.ts index 28699d1..13624f4 100644 --- a/src/model/nuimo-control-device.ts +++ b/src/model/nuimo-control-device.ts @@ -104,10 +104,10 @@ export enum RotationMode { Clamped, /** - * Causes rotation to be continous. When in this mode there will be no + * Causes rotation to be continuous. When in this mode there will be no * rotation value returned or evented. You must rely on the delta rotation only */ - Continous, + Continuous, } type HoverEvents = 'hover' @@ -455,7 +455,7 @@ export class NuimoControlDevice extends EventEmitter { /** @internal */ private onRotate(delta: number) { - if (this.rotationMode === RotationMode.Continous) { + if (this.rotationMode === RotationMode.Continuous) { if (delta > 0) { this.emit('rotateLeft', delta, DEFAULT_ROTATION) this.emit('rotate', delta, DEFAULT_ROTATION)