Skip to content

Commit

Permalink
fix: Tweak sources to ensure compatibility with Angular 6
Browse files Browse the repository at this point in the history
Signed-off-by: Gordon Smith <gordonjsmith@gmail.com>
  • Loading branch information
GordonSmith committed Jun 20, 2019
1 parent b13a6f5 commit 6b21f2e
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 37 deletions.
41 changes: 11 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/chart/src/Column.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ export class Column extends XYAxis {
_palette;
fillColor: (row, column, value) => string;
textColor: (row, column, value) => string;
click: (row, column, selected) => void;
dblclick: (row, column, selected) => void;

// ITooltip ---
Expand Down
1 change: 0 additions & 1 deletion packages/chart/src/Scatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ export class Scatter extends XYAxis {
fillColor: (row, column, value) => string;
strokeColor: (row, column, value) => string;
textColor: (row, column, value) => string;
click: (row, column, selected) => void;
dblclick: (row, column, selected) => void;

// ITooltip
Expand Down
2 changes: 1 addition & 1 deletion packages/chart/src/XYAxis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ export class XYAxis extends SVGWidget {
}

// Events ---
click(row: object[], column, selected) {
click(row, column, selected) {
console.log("Click: " + JSON.stringify(row) + ", " + column + ", " + selected);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/comms/src/espConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export interface Exceptions {
}

export class ESPExceptions extends Error implements Exceptions {
readonly isESPExceptions = true;
isESPExceptions = true;
action: string;
request: string;
Source: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/map/src/CanvasPins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export class CanvasPins extends CanvasWidget {
this.draw(this._drawData);
}

applyClustering(_data: Readonly<CanvasPinRow[]>) {
applyClustering(_data: Readonly<CanvasPinRow[]>): Readonly<CanvasPinRow[]> {
const context = this;
this._overlap_count = 0;
const arrow_height = 8;
Expand Down
4 changes: 2 additions & 2 deletions packages/util/src/debounce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export function debounce<TParam, R extends Promise<any>>(fn: (...params: TParam[
};
}

export function promiseTimeout<T>(ms: number, promise: Promise<T>) {
export function promiseTimeout<T>(ms: number, promise: Promise<T>): Promise<T> {
let id: number;
const timeout = new Promise((resolve, reject) => {
id = setTimeout(() => {
Expand All @@ -44,7 +44,7 @@ export function promiseTimeout<T>(ms: number, promise: Promise<T>) {
return Promise.race([
promise,
timeout
]).then(response => {
]).then((response: T) => {
clearTimeout(id);
return response;
}).catch(e => {
Expand Down

0 comments on commit 6b21f2e

Please sign in to comment.