@drincs/pixi-vn 1.4.0 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas.cjs +2 -2
- package/dist/canvas.d.cts +14 -1
- package/dist/canvas.d.ts +14 -1
- package/dist/canvas.mjs +1 -1
- package/dist/history.d.cts +1 -1
- package/dist/history.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.mjs +1 -1
- package/dist/narration.cjs +1 -1
- package/dist/narration.mjs +1 -1
- package/dist/pixi.js.cjs +135 -127
- package/dist/pixi.js.mjs +152 -144
- package/dist/vite-listener.cjs +1 -1
- package/dist/vite-listener.d.cts +1 -0
- package/dist/vite-listener.d.ts +1 -0
- package/dist/vite-listener.mjs +1 -1
- package/dist/vite.cjs +1 -1
- package/dist/vite.d.cts +1 -0
- package/dist/vite.d.ts +1 -0
- package/dist/vite.mjs +1 -1
- package/package.json +5 -5
package/dist/canvas.d.cts
CHANGED
|
@@ -527,6 +527,12 @@ interface CanvasManagerInterface {
|
|
|
527
527
|
init(element: HTMLElement, options: Partial<ApplicationOptions> & {
|
|
528
528
|
width: number;
|
|
529
529
|
height: number;
|
|
530
|
+
} & {
|
|
531
|
+
/**
|
|
532
|
+
* The id of the canvas element.
|
|
533
|
+
* @default "pixi-vn-canvas"
|
|
534
|
+
*/
|
|
535
|
+
id?: string;
|
|
530
536
|
}, devtoolsOptions?: Devtools): Promise<void>;
|
|
531
537
|
/**
|
|
532
538
|
* The children of the canvas.
|
|
@@ -1559,10 +1565,17 @@ declare class CanvasManagerStatic {
|
|
|
1559
1565
|
static canvasWidth: number;
|
|
1560
1566
|
static canvasHeight: number;
|
|
1561
1567
|
static _isInitialized: boolean;
|
|
1562
|
-
static init(element: HTMLElement, width: number, height: number, options?: Partial<ApplicationOptions
|
|
1568
|
+
static init(element: HTMLElement, width: number, height: number, options?: Partial<ApplicationOptions> & {
|
|
1569
|
+
/**
|
|
1570
|
+
* The id of the canvas element.
|
|
1571
|
+
* @default "pixi-vn-canvas"
|
|
1572
|
+
*/
|
|
1573
|
+
id?: string;
|
|
1574
|
+
}, devtoolsOptions?: Devtools): Promise<void>;
|
|
1563
1575
|
/**
|
|
1564
1576
|
* Add the canvas into a html element.
|
|
1565
1577
|
* @param element it is the html element where I will put the canvas. Example: document.body
|
|
1578
|
+
* @param id it is the id of the canvas element.
|
|
1566
1579
|
*/
|
|
1567
1580
|
private static addCanvasIntoHTMLElement;
|
|
1568
1581
|
static addHtmlLayer(id: string, element: HTMLElement, style?: Pick<CSSStyleDeclaration, "position" | "pointerEvents">): HTMLDivElement;
|
package/dist/canvas.d.ts
CHANGED
|
@@ -527,6 +527,12 @@ interface CanvasManagerInterface {
|
|
|
527
527
|
init(element: HTMLElement, options: Partial<ApplicationOptions> & {
|
|
528
528
|
width: number;
|
|
529
529
|
height: number;
|
|
530
|
+
} & {
|
|
531
|
+
/**
|
|
532
|
+
* The id of the canvas element.
|
|
533
|
+
* @default "pixi-vn-canvas"
|
|
534
|
+
*/
|
|
535
|
+
id?: string;
|
|
530
536
|
}, devtoolsOptions?: Devtools): Promise<void>;
|
|
531
537
|
/**
|
|
532
538
|
* The children of the canvas.
|
|
@@ -1559,10 +1565,17 @@ declare class CanvasManagerStatic {
|
|
|
1559
1565
|
static canvasWidth: number;
|
|
1560
1566
|
static canvasHeight: number;
|
|
1561
1567
|
static _isInitialized: boolean;
|
|
1562
|
-
static init(element: HTMLElement, width: number, height: number, options?: Partial<ApplicationOptions
|
|
1568
|
+
static init(element: HTMLElement, width: number, height: number, options?: Partial<ApplicationOptions> & {
|
|
1569
|
+
/**
|
|
1570
|
+
* The id of the canvas element.
|
|
1571
|
+
* @default "pixi-vn-canvas"
|
|
1572
|
+
*/
|
|
1573
|
+
id?: string;
|
|
1574
|
+
}, devtoolsOptions?: Devtools): Promise<void>;
|
|
1563
1575
|
/**
|
|
1564
1576
|
* Add the canvas into a html element.
|
|
1565
1577
|
* @param element it is the html element where I will put the canvas. Example: document.body
|
|
1578
|
+
* @param id it is the id of the canvas element.
|
|
1566
1579
|
*/
|
|
1567
1580
|
private static addCanvasIntoHTMLElement;
|
|
1568
1581
|
static addHtmlLayer(id: string, element: HTMLElement, style?: Pick<CSSStyleDeclaration, "position" | "pointerEvents">): HTMLDivElement;
|