Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
williamngan committed Mar 9, 2021
1 parent d38f8cc commit 2f3bbfa
Show file tree
Hide file tree
Showing 13 changed files with 263 additions and 135 deletions.
37 changes: 17 additions & 20 deletions dist/es2015/Canvas.js

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

4 changes: 2 additions & 2 deletions dist/es2015/Color.js

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

32 changes: 29 additions & 3 deletions dist/es2015/Image.js

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

78 changes: 55 additions & 23 deletions dist/es5.js

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

3 changes: 1 addition & 2 deletions dist/files/Canvas.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export declare class CanvasForm extends VisualForm {
protected _ctx: CanvasRenderingContext2D;
protected _estimateTextWidth: (string: any) => number;
protected _style: DefaultFormStyle;
constructor(space: CanvasSpace);
constructor(space: CanvasSpace | CanvasRenderingContext2D);
get space(): CanvasSpace;
get ctx(): PtsCanvasRenderingContext2D;
useOffscreen(off?: boolean, clear?: boolean | string): this;
Expand All @@ -68,7 +68,6 @@ export declare class CanvasForm extends VisualForm {
protected _textAlign(box: PtLikeIterable, vertical: string, offset?: PtLike, center?: Pt): Pt;
reset(): this;
protected _paint(): void;
static paint(ctx: CanvasRenderingContext2D, fn: (ctx: any) => {}, fill?: string, stroke?: string, strokeWidth?: number): void;
static point(ctx: CanvasRenderingContext2D, p: PtLike, radius?: number, shape?: string): void;
point(p: PtLike, radius?: number, shape?: string): this;
static circle(ctx: CanvasRenderingContext2D, pt: PtLike, radius?: number): void;
Expand Down
37 changes: 17 additions & 20 deletions dist/files/Canvas.js

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

4 changes: 2 additions & 2 deletions dist/files/Color.js

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

7 changes: 5 additions & 2 deletions dist/files/Image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export declare class Img {
protected _scale: number;
protected _loaded: boolean;
protected _editable: boolean;
constructor(editable?: boolean, pixelScale?: number);
constructor(editable?: boolean, pixelScale?: number, crossOrigin?: boolean);
static load(src: string, editable?: boolean, pixelScale?: number, ready?: (img: any) => {}): Img;
load(src: string): Promise<Img>;
protected _drawToScale(canvasScale: number | PtLike, img: CanvasImageSource): void;
Expand All @@ -19,8 +19,11 @@ export declare class Img {
resize(sizeOrScale: PtLike, asScale?: boolean): this;
crop(box: Bound): ImageData;
filter(css: string): this;
static fromBlob(blob: Blob, editable?: boolean): Promise<Img>;
cleanup(): void;
static fromBlob(blob: Blob, editable?: boolean, pixelScale?: number): Promise<Img>;
static imageDataToBlob(data: ImageData): Promise<Blob>;
toBase64(): string;
toBlob(): Promise<Blob>;
get current(): CanvasImageSource;
get image(): HTMLImageElement;
get canvas(): HTMLCanvasElement;
Expand Down
Loading

0 comments on commit 2f3bbfa

Please sign in to comment.