mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-11 04:47:26 +08:00
style: linebreaks
This commit is contained in:
@@ -225,6 +225,7 @@ export class DDS {
|
|||||||
this.urlCache[path] = url;
|
this.urlCache[path] = url;
|
||||||
return url
|
return url
|
||||||
};
|
};
|
||||||
|
|
||||||
async getFileFromSheet(path: string, x: number, y: number, w: number, h: number, s?: number): Promise<string> {
|
async getFileFromSheet(path: string, x: number, y: number, w: number, h: number, s?: number): Promise<string> {
|
||||||
if (!await this.loadFile(path))
|
if (!await this.loadFile(path))
|
||||||
return "";
|
return "";
|
||||||
@@ -234,6 +235,7 @@ export class DDS {
|
|||||||
|
|
||||||
return URL.createObjectURL(await this.get2DBlob("image/png") ?? new Blob([]));
|
return URL.createObjectURL(await this.get2DBlob("image/png") ?? new Blob([]));
|
||||||
};
|
};
|
||||||
|
|
||||||
async getFileScaled(path: string, s: number, fallback?: string): Promise<string> {
|
async getFileScaled(path: string, s: number, fallback?: string): Promise<string> {
|
||||||
if (this.urlCache[path])
|
if (this.urlCache[path])
|
||||||
return this.urlCache[path]
|
return this.urlCache[path]
|
||||||
|
|||||||
Reference in New Issue
Block a user