@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.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>, devtoolsOptions?: Devtools): Promise<void>;
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>, devtoolsOptions?: Devtools): Promise<void>;
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;