Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/right click #92

Merged
merged 16 commits into from
Oct 23, 2019
Prev Previous commit
Next Next commit
Revert "typings and minify"
This reverts commit 564f286.
  • Loading branch information
tibotiber committed Oct 22, 2019
commit 2e2269d89a574ff82fd2edc97d7f276667ec547b
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, evt: MouseEvent) => void;
export declare type UIHandler = (target: UI, pt: PtLike, type: string) => 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: {
[type: string]: UIHandler[];
[key: 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(type: string, fn: UIHandler): number;
off(type: string, which?: number): boolean;
listen(type: string, evt: MouseEvent, p: PtLike): boolean;
protected hold(type: string): number;
on(key: string, fn: UIHandler): number;
off(key: string, which?: number): boolean;
listen(event: string, p: PtLike): boolean;
protected hold(event: string): number;
protected unhold(key?: number): void;
static track(uis: UI[], type: string, evt: MouseEvent, p: PtLike): void;
static track(uis: UI[], key: string, 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, evt: MouseEvent): void;
protected static _trigger(fns: UIHandler[], target: UI, pt: PtLike, type: string): 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, evt: MouseEvent) => void;
export type UIHandler = (target: UI, pt: PtLike, type: string) => 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: {
[type: string]: UIHandler[];
[key: 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(type: string, fn: UIHandler): number;
off(type: string, which?: number): boolean;
listen(type: string, evt: MouseEvent, p: PtLike): boolean;
protected hold(type: string): number;
on(key: string, fn: UIHandler): number;
off(key: string, which?: number): boolean;
listen(event: string, p: PtLike): boolean;
protected hold(event: string): number;
protected unhold(key?: number): void;
static track(uis: UI[], type: string, evt: MouseEvent, p: PtLike): void;
static track(uis: UI[], key: string, 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, evt: MouseEvent): void;
protected static _trigger(fns: UIHandler[], target: UI, pt: PtLike, type: string): 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.