diff --git a/DOCS.md b/DOCS.md index faa110e..62e6d0e 100644 --- a/DOCS.md +++ b/DOCS.md @@ -1581,7 +1581,6 @@ A combined color and distance event, emits when the sensor is activated. * [.getHubType()](#Hub+getHubType) ⇒ [HubType](#HubType) * [.getPortDeviceType(port)](#Hub+getPortDeviceType) ⇒ [DeviceType](#DeviceType) * ["color" (port, color)](#LPF2Hub+event_color) - * ["colorAndDistance" (port, color, distance)](#LPF2Hub+event_colorAndDistance) * ["speed" (port, speed)](#LPF2Hub+event_speed) @@ -1867,19 +1866,6 @@ Emits when a color sensor is activated. | port | string | | color | [Color](#Color) | - - -### "colorAndDistance" (port, color, distance) -A combined color and distance event, emits when the sensor is activated. - -**Kind**: event emitted by [DuploTrainBase](#DuploTrainBase) - -| Param | Type | Description | -| --- | --- | --- | -| port | string | | -| color | [Color](#Color) | | -| distance | number | Distance, in millimeters. | - ### "speed" (port, speed) diff --git a/README.md b/README.md index b452cee..99b8e98 100644 --- a/README.md +++ b/README.md @@ -1674,7 +1674,6 @@ A combined color and distance event, emits when the sensor is activated. * [.getHubType()](#Hub+getHubType) ⇒ [HubType](#HubType) * [.getPortDeviceType(port)](#Hub+getPortDeviceType) ⇒ [DeviceType](#DeviceType) * ["color" (port, color)](#LPF2Hub+event_color) - * ["colorAndDistance" (port, color, distance)](#LPF2Hub+event_colorAndDistance) * ["speed" (port, speed)](#LPF2Hub+event_speed) @@ -1960,19 +1959,6 @@ Emits when a color sensor is activated. | port | string | | color | [Color](#Color) | - - -### "colorAndDistance" (port, color, distance) -A combined color and distance event, emits when the sensor is activated. - -**Kind**: event emitted by [DuploTrainBase](#DuploTrainBase) - -| Param | Type | Description | -| --- | --- | --- | -| port | string | | -| color | [Color](#Color) | | -| distance | number | Distance, in millimeters. | - ### "speed" (port, speed) diff --git a/package-lock.json b/package-lock.json index f116237..22fc8ee 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "node-poweredup", - "version": "1.4.8", + "version": "1.5.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/duplotrainbase.ts b/src/duplotrainbase.ts index c125456..26c319e 100644 --- a/src/duplotrainbase.ts +++ b/src/duplotrainbase.ts @@ -25,6 +25,11 @@ export class DuploTrainBase extends LPF2Hub { * @ignore */ + /** + * @event DuploTrainBase#colorAndDistance + * @ignore + */ + /** * @event DuploTrainBase#tilt * @ignore