{"version":3,"file":"DOMContainer.mjs","sources":["../../src/dom/DOMContainer.ts"],"sourcesContent":["import { Point } from '../maths/point/Point';\nimport { ViewContainer, type ViewContainerOptions } from '../scene/view/ViewContainer';\n\nimport type { PointData } from '../maths/point/PointData';\n\n/**\n * Options for configuring a {@link DOMContainer}.\n * Controls how DOM elements are integrated into the PixiJS scene graph.\n * @example\n * ```ts\n * // Create with a custom element\n * const domContainer = new DOMContainer({\n * element: document.createElement('input'),\n * anchor: { x: 0.5, y: 0.5 } // or anchor: 0.5 to center both x and y\n * });\n * ```\n * @category scene\n * @standard\n * @noInheritDoc\n */\nexport interface DOMContainerOptions extends ViewContainerOptions\n{\n /**\n * The DOM element to use for the container.\n * Can be any HTML element like div, input, textarea, etc.\n *\n * If not provided, creates a new div element.\n * @default document.createElement('div')\n */\n element?: HTMLElement;\n\n /**\n * The anchor point of the container.\n * - Can be a single number to set both x and y\n * - Can be a point-like object with x,y coordinates\n * - (0,0) is top-left\n * - (1,1) is bottom-right\n * - (0.5,0.5) is center\n * @default 0\n */\n anchor?: PointData | number;\n}\n\n/**\n * The DOMContainer object is used to render DOM elements within the PixiJS scene graph.\n * It allows you to integrate HTML elements into your PixiJS application while maintaining\n * proper transform hierarchy and visibility.\n *\n * DOMContainer is especially useful for rendering standard DOM elements\n * that handle user input, such as `` or `