Skip to content

Commit

Permalink
Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
happycodelucky committed Jun 5, 2021
1 parent 3b5e3a9 commit 296f2df
Show file tree
Hide file tree
Showing 31 changed files with 38 additions and 38 deletions.
4 changes: 2 additions & 2 deletions docs/api/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/api/classes/devicediscoverymanager.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / DeviceDiscoveryManager
[Rocket Nuimo - v1.2.1](../README.md) / DeviceDiscoveryManager

# Class: DeviceDiscoveryManager

Expand Down
2 changes: 1 addition & 1 deletion docs/api/classes/devicediscoverysession.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / DeviceDiscoverySession
[Rocket Nuimo - v1.2.1](../README.md) / DeviceDiscoverySession

# Class: DeviceDiscoverySession

Expand Down
2 changes: 1 addition & 1 deletion docs/api/classes/glyph.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / Glyph
[Rocket Nuimo - v1.2.1](../README.md) / Glyph

# Class: Glyph

Expand Down
2 changes: 1 addition & 1 deletion docs/api/classes/nuimocontroldevice.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / NuimoControlDevice
[Rocket Nuimo - v1.2.1](../README.md) / NuimoControlDevice

# Class: NuimoControlDevice

Expand Down
2 changes: 1 addition & 1 deletion docs/api/classes/nuimodevicecommunicationerror.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / NuimoDeviceCommunicationError
[Rocket Nuimo - v1.2.1](../README.md) / NuimoDeviceCommunicationError

# Class: NuimoDeviceCommunicationError

Expand Down
2 changes: 1 addition & 1 deletion docs/api/classes/nuimoerror.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / NuimoError
[Rocket Nuimo - v1.2.1](../README.md) / NuimoError

# Class: NuimoError

Expand Down
2 changes: 1 addition & 1 deletion docs/api/enums/deviceconnectedstatus.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / DeviceConnectedStatus
[Rocket Nuimo - v1.2.1](../README.md) / DeviceConnectedStatus

# Enumeration: DeviceConnectedStatus

Expand Down
2 changes: 1 addition & 1 deletion docs/api/enums/devicediscoverystate.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / DeviceDiscoveryState
[Rocket Nuimo - v1.2.1](../README.md) / DeviceDiscoveryState

# Enumeration: DeviceDiscoveryState

Expand Down
2 changes: 1 addition & 1 deletion docs/api/enums/displaycomposition.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / DisplayComposition
[Rocket Nuimo - v1.2.1](../README.md) / DisplayComposition

# Enumeration: DisplayComposition

Expand Down
2 changes: 1 addition & 1 deletion docs/api/enums/displaytransition.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / DisplayTransition
[Rocket Nuimo - v1.2.1](../README.md) / DisplayTransition

# Enumeration: DisplayTransition

Expand Down
2 changes: 1 addition & 1 deletion docs/api/enums/glyphalignment.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / GlyphAlignment
[Rocket Nuimo - v1.2.1](../README.md) / GlyphAlignment

# Enumeration: GlyphAlignment

Expand Down
2 changes: 1 addition & 1 deletion docs/api/enums/nuimodevicecommunicationerrorcode.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / NuimoDeviceCommunicationErrorCode
[Rocket Nuimo - v1.2.1](../README.md) / NuimoDeviceCommunicationErrorCode

# Enumeration: NuimoDeviceCommunicationErrorCode

Expand Down
10 changes: 5 additions & 5 deletions docs/api/enums/rotationmode.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / RotationMode
[Rocket Nuimo - v1.2.1](../README.md) / RotationMode

# Enumeration: RotationMode

Expand All @@ -9,7 +9,7 @@ Modes for rotation support
### Enumeration members

- [Clamped](rotationmode.md#clamped)
- [Continous](rotationmode.md#continous)
- [Continuous](rotationmode.md#continuous)

## Enumeration members

Expand All @@ -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
2 changes: 1 addition & 1 deletion docs/api/enums/swipegesturedirection.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / SwipeGestureDirection
[Rocket Nuimo - v1.2.1](../README.md) / SwipeGestureDirection

# Enumeration: SwipeGestureDirection

Expand Down
2 changes: 1 addition & 1 deletion docs/api/enums/touchgesturearea.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / TouchGestureArea
[Rocket Nuimo - v1.2.1](../README.md) / TouchGestureArea

# Enumeration: TouchGestureArea

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/devicediscoverysessionoptions.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / DeviceDiscoverySessionOptions
[Rocket Nuimo - v1.2.1](../README.md) / DeviceDiscoverySessionOptions

# Interface: DeviceDiscoverySessionOptions

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/displayglyphoptions.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / DisplayGlyphOptions
[Rocket Nuimo - v1.2.1](../README.md) / DisplayGlyphOptions

# Interface: DisplayGlyphOptions

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/onbatterylevecallback.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / OnBatteryLeveCallback
[Rocket Nuimo - v1.2.1](../README.md) / OnBatteryLeveCallback

# Interface: OnBatteryLeveCallback

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/ondevicediscoveredcallback.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / OnDeviceDiscoveredCallback
[Rocket Nuimo - v1.2.1](../README.md) / OnDeviceDiscoveredCallback

# Interface: OnDeviceDiscoveredCallback

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/ondirectionalswipegesturecallback.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / OnDirectionalSwipeGestureCallback
[Rocket Nuimo - v1.2.1](../README.md) / OnDirectionalSwipeGestureCallback

# Interface: OnDirectionalSwipeGestureCallback

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/ondiscoverydonecallback.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / OnDiscoveryDoneCallback
[Rocket Nuimo - v1.2.1](../README.md) / OnDiscoveryDoneCallback

# Interface: OnDiscoveryDoneCallback

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/onerrorcallback.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / OnErrorCallback
[Rocket Nuimo - v1.2.1](../README.md) / OnErrorCallback

# Interface: OnErrorCallback

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/oneventcallback.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / OnEventCallback
[Rocket Nuimo - v1.2.1](../README.md) / OnEventCallback

# Interface: OnEventCallback

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/onhovercallback.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / OnHoverCallback
[Rocket Nuimo - v1.2.1](../README.md) / OnHoverCallback

# Interface: OnHoverCallback

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/onrotatecallback.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / OnRotateCallback
[Rocket Nuimo - v1.2.1](../README.md) / OnRotateCallback

# Interface: OnRotateCallback

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/onrssicallback.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / OnRssiCallback
[Rocket Nuimo - v1.2.1](../README.md) / OnRssiCallback

# Interface: OnRssiCallback

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/onswipegesturecallback.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / OnSwipeGestureCallback
[Rocket Nuimo - v1.2.1](../README.md) / OnSwipeGestureCallback

# Interface: OnSwipeGestureCallback

Expand Down
2 changes: 1 addition & 1 deletion docs/api/interfaces/ontouchgesturecallback.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[Rocket Nuimo - v1.2.0](../README.md) / OnTouchGestureCallback
[Rocket Nuimo - v1.2.1](../README.md) / OnTouchGestureCallback

# Interface: OnTouchGestureCallback

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
6 changes: 3 additions & 3 deletions src/model/nuimo-control-device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 296f2df

Please sign in to comment.