From eddeaa3ad5fd21277ee90f1738b83b150589ad36 Mon Sep 17 00:00:00 2001 From: Patrick Griffin Date: Tue, 15 Jan 2019 19:48:54 -0500 Subject: [PATCH] remove colorAndDistance event from DuploTrainBase --- DOCS.md | 14 -------------- README.md | 14 -------------- package-lock.json | 2 +- src/duplotrainbase.ts | 5 +++++ 4 files changed, 6 insertions(+), 29 deletions(-) diff --git a/DOCS.md b/DOCS.md index 1978866..08aa004 100644 --- a/DOCS.md +++ b/DOCS.md @@ -1492,7 +1492,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) @@ -1755,19 +1754,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 27542a8..19b4a30 100644 --- a/README.md +++ b/README.md @@ -1585,7 +1585,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) @@ -1848,19 +1847,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