Skip to content

Commit

Permalink
typings and minify
Browse files Browse the repository at this point in the history
  • Loading branch information
tibotiber committed Oct 17, 2019
1 parent ead3a3b commit 564f286
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion dist/files/Types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export declare type IntersectContext = {
edge: Group;
other?: any;
};
export declare type UIHandler = (target: UI, pt: PtLike, type: string) => void;
export declare type UIHandler = (target: UI, pt: PtLike, type: string, evt: MouseEvent) => void;
export declare type WarningType = "error" | "warn" | "mute";
export declare type ITempoStartFn = (count: number) => void | boolean;
export declare type ITempoProgressFn = (count: number, t: number, ms: number, start: boolean) => void | boolean;
Expand Down
14 changes: 7 additions & 7 deletions dist/files/UI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export declare class UI {
protected static _counter: number;
protected _id: string;
protected _actions: {
[key: string]: UIHandler[];
[type: string]: UIHandler[];
};
protected _states: {
[key: string]: any;
Expand All @@ -45,18 +45,18 @@ export declare class UI {
group: Group;
shape: string;
state(key: string, value?: any): any;
on(key: string, fn: UIHandler): number;
off(key: string, which?: number): boolean;
listen(event: string, p: PtLike): boolean;
protected hold(event: string): number;
on(type: string, fn: UIHandler): number;
off(type: string, which?: number): boolean;
listen(type: string, evt: MouseEvent, p: PtLike): boolean;
protected hold(type: string): number;
protected unhold(key?: number): void;
static track(uis: UI[], key: string, p: PtLike): void;
static track(uis: UI[], type: string, evt: MouseEvent, p: PtLike): void;
render(fn: (group: Group, states: {
[key: string]: any;
}) => void): void;
toString(): string;
protected _within(p: PtLike): boolean;
protected static _trigger(fns: UIHandler[], target: UI, pt: PtLike, type: string): void;
protected static _trigger(fns: UIHandler[], target: UI, pt: PtLike, type: string, evt: MouseEvent): void;
protected static _addHandler(fns: UIHandler[], fn: UIHandler): number;
protected static _removeHandler(fns: UIHandler[], index: number): boolean;
}
Expand Down
54 changes: 27 additions & 27 deletions dist/files/UI.js

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

16 changes: 8 additions & 8 deletions dist/pts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1006,7 +1006,7 @@ export type IntersectContext = {
edge: Group;
other?: any;
};
export type UIHandler = (target: UI, pt: PtLike, type: string) => void;
export type UIHandler = (target: UI, pt: PtLike, type: string, evt: MouseEvent) => void;
export type WarningType = "error" | "warn" | "mute";
export type ITempoStartFn = (count: number) => void | boolean;
export type ITempoProgressFn = (count: number, t: number, ms: number, start: boolean) => void | boolean;
Expand Down Expand Up @@ -1065,7 +1065,7 @@ export class UI {
protected static _counter: number;
protected _id: string;
protected _actions: {
[key: string]: UIHandler[];
[type: string]: UIHandler[];
};
protected _states: {
[key: string]: any;
Expand All @@ -1082,18 +1082,18 @@ export class UI {
group: Group;
shape: string;
state(key: string, value?: any): any;
on(key: string, fn: UIHandler): number;
off(key: string, which?: number): boolean;
listen(event: string, p: PtLike): boolean;
protected hold(event: string): number;
on(type: string, fn: UIHandler): number;
off(type: string, which?: number): boolean;
listen(type: string, evt: MouseEvent, p: PtLike): boolean;
protected hold(type: string): number;
protected unhold(key?: number): void;
static track(uis: UI[], key: string, p: PtLike): void;
static track(uis: UI[], type: string, evt: MouseEvent, p: PtLike): void;
render(fn: (group: Group, states: {
[key: string]: any;
}) => void): void;
toString(): string;
protected _within(p: PtLike): boolean;
protected static _trigger(fns: UIHandler[], target: UI, pt: PtLike, type: string): void;
protected static _trigger(fns: UIHandler[], target: UI, pt: PtLike, type: string, evt: MouseEvent): void;
protected static _addHandler(fns: UIHandler[], fn: UIHandler): number;
protected static _removeHandler(fns: UIHandler[], index: number): boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/pts.min.js

Large diffs are not rendered by default.

0 comments on commit 564f286

Please sign in to comment.