lido-player 0.0.2-1 → 0.0.2-alpha-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.
Files changed (84) hide show
  1. package/dist/cjs/app-col_12.cjs.entry.js +22 -12
  2. package/dist/cjs/app-col_12.cjs.entry.js.map +1 -1
  3. package/dist/cjs/index.cjs.js +1 -1
  4. package/dist/cjs/lido-player.cjs.js +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/{utils-8ac0e3b7.js → utils-5eeb6512.js} +18 -3
  7. package/dist/cjs/utils-5eeb6512.js.map +1 -0
  8. package/dist/collection/components/container/AppContainer.js +20 -1
  9. package/dist/collection/components/container/AppContainer.js.map +1 -1
  10. package/dist/collection/components/home/AppHome.js +20 -1
  11. package/dist/collection/components/home/AppHome.js.map +1 -1
  12. package/dist/collection/components/image/AppImage.js +2 -2
  13. package/dist/collection/components/image/AppImage.js.map +1 -1
  14. package/dist/collection/components/root/AppRoot.js +70 -8
  15. package/dist/collection/components/root/AppRoot.js.map +1 -1
  16. package/dist/collection/components/root/assets/xmlData.xml +169 -117
  17. package/dist/collection/utils/utils.js +16 -2
  18. package/dist/collection/utils/utils.js.map +1 -1
  19. package/dist/components/app-col.js +1 -1
  20. package/dist/components/app-container.js +1 -1
  21. package/dist/components/app-home.js +1 -1
  22. package/dist/components/app-image.js +1 -1
  23. package/dist/components/app-pos.js +1 -1
  24. package/dist/components/app-root.js +29 -18
  25. package/dist/components/app-root.js.map +1 -1
  26. package/dist/components/app-row.js +1 -1
  27. package/dist/components/app-shape.js +1 -1
  28. package/dist/components/app-text.js +1 -1
  29. package/dist/components/app-trace.js +1 -1
  30. package/dist/components/app-wrap.js +1 -1
  31. package/dist/components/index.js +1 -1
  32. package/dist/components/{p-aa381e73.js → p-0b0798f2.js} +2 -2
  33. package/dist/components/{p-aa381e73.js.map → p-0b0798f2.js.map} +1 -1
  34. package/dist/components/{p-8bc122ff.js → p-31575e90.js} +2 -2
  35. package/dist/components/{p-8bc122ff.js.map → p-31575e90.js.map} +1 -1
  36. package/dist/{esm/utils-cbfaa4d8.js → components/p-3bb09d53.js} +18 -4
  37. package/dist/components/p-3bb09d53.js.map +1 -0
  38. package/dist/components/{p-350205d5.js → p-3bf2f3d8.js} +2 -2
  39. package/dist/components/{p-350205d5.js.map → p-3bf2f3d8.js.map} +1 -1
  40. package/dist/components/{p-c9a89df3.js → p-590cd7cc.js} +2 -2
  41. package/dist/components/{p-c9a89df3.js.map → p-590cd7cc.js.map} +1 -1
  42. package/dist/components/{p-bb0a3ffa.js → p-7c78da26.js} +2 -2
  43. package/dist/components/{p-bb0a3ffa.js.map → p-7c78da26.js.map} +1 -1
  44. package/dist/components/{p-c0c3e960.js → p-af356ca3.js} +6 -4
  45. package/dist/components/p-af356ca3.js.map +1 -0
  46. package/dist/components/{p-639f58cb.js → p-d1055dc6.js} +2 -2
  47. package/dist/components/{p-639f58cb.js.map → p-d1055dc6.js.map} +1 -1
  48. package/dist/components/{p-34c825bf.js → p-d8783e81.js} +3 -3
  49. package/dist/components/p-d8783e81.js.map +1 -0
  50. package/dist/components/{p-e509500a.js → p-e939882f.js} +2 -2
  51. package/dist/components/{p-e509500a.js.map → p-e939882f.js.map} +1 -1
  52. package/dist/components/{p-dee011ef.js → p-f3062e1a.js} +14 -12
  53. package/dist/components/p-f3062e1a.js.map +1 -0
  54. package/dist/esm/app-col_12.entry.js +22 -12
  55. package/dist/esm/app-col_12.entry.js.map +1 -1
  56. package/dist/esm/index.js +1 -1
  57. package/dist/esm/lido-player.js +1 -1
  58. package/dist/esm/loader.js +1 -1
  59. package/dist/{components/p-4db699ee.js → esm/utils-5df13f57.js} +18 -4
  60. package/dist/esm/utils-5df13f57.js.map +1 -0
  61. package/dist/lido-player/assets/xmlData.xml +169 -117
  62. package/dist/lido-player/index.esm.js +1 -1
  63. package/dist/lido-player/lido-player.esm.js +1 -1
  64. package/dist/lido-player/lido-player.esm.js.map +1 -1
  65. package/dist/lido-player/p-3bb09d53.js +2 -0
  66. package/dist/lido-player/p-3bb09d53.js.map +1 -0
  67. package/dist/lido-player/p-fc201574.entry.js +2 -0
  68. package/dist/lido-player/p-fc201574.entry.js.map +1 -0
  69. package/dist/types/components/container/AppContainer.d.ts +4 -0
  70. package/dist/types/components/home/AppHome.d.ts +4 -0
  71. package/dist/types/components/root/AppRoot.d.ts +12 -0
  72. package/dist/types/components.d.ts +40 -0
  73. package/dist/types/utils/utils.d.ts +1 -0
  74. package/package.json +1 -1
  75. package/dist/cjs/utils-8ac0e3b7.js.map +0 -1
  76. package/dist/components/p-34c825bf.js.map +0 -1
  77. package/dist/components/p-4db699ee.js.map +0 -1
  78. package/dist/components/p-c0c3e960.js.map +0 -1
  79. package/dist/components/p-dee011ef.js.map +0 -1
  80. package/dist/esm/utils-cbfaa4d8.js.map +0 -1
  81. package/dist/lido-player/p-4db699ee.js +0 -2
  82. package/dist/lido-player/p-4db699ee.js.map +0 -1
  83. package/dist/lido-player/p-c87e2f20.entry.js +0 -2
  84. package/dist/lido-player/p-c87e2f20.entry.js.map +0 -1
@@ -1 +1 @@
1
- {"file":"app-col.app-container.app-home.app-image.app-pos.app-random.app-root.app-row.app-shape.app-text.app-trace.app-wrap.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,gQAAgQ,CAAC;AACnR,qBAAe,SAAS;;MCgBX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6GjB,gBAAgB;QACdA,0BAAoB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;KAC1C;IAED,MAAM;;QAEJ,MAAM,KAAK,GAAG;YACZ,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,eAAe,EAAE,IAAI,CAAC,OAAO;YAC7B,GAAG,EAAE,IAAI,CAAC,CAAC;YACX,IAAI,EAAE,IAAI,CAAC,CAAC;YACZ,OAAO,E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C,KAAK,EACjB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,KAAK,gBACA,IAAI,CAAC,SAAS,iBACb,IAAI,CAAC,UAAU,EAC5B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,OAAO,EAAE,IAAI,CAAC,OAAO,IAGrBD,oEAAQ,CACH,EACP;KACH;;;;;;;;;;;;;;;;;;","names":["initEventsForElement","h","Host","SelectedValuesKey","DragSelectedMapKey","index","getAssetPath","TraceMode","triggerNextContainer"],"sources":["src/components/column/app-col.css?tag=app-col","src/components/column/AppCol.tsx","src/components/container/app-container.css?tag=app-container","src/components/container/AppContainer.tsx","src/index.css?tag=app-home","src/utils/css/animation.css?tag=app-home","src/components/home/app-home.css?tag=app-home","src/components/home/AppHome.tsx","src/components/image/app-image.css?tag=app-image","src/components/image/AppImage.tsx","src/components/position/app-pos.css?tag=app-pos","src/components/position/AppPos.tsx","src/components/random/app-random.css?tag=app-random","src/components/random/AppRandom.tsx","src/components/root/AppRoot.tsx","src/components/row/app-row.css?tag=app-row","src/components/row/AppRow.tsx","src/components/shape/app-shape.css?tag=app-shape","src/components/shape/AppShape.tsx","src/components/text/app-text.css?tag=app-text","src/components/text/AppText.tsx","src/components/trace/app-trace.css?tag=app-trace","src/components/trace/app-trace.tsx","src/components/wrap/app-wrap.css?tag=app-wrap","src/components/wrap/AppWrap.tsx"],"sourcesContent":[".col {\n /* position: absolute; */\n top: var(--y, 0);\n left: var(--x, 0);\n height: var(--height, 100%);\n width: var(--width, 100%);\n background-color: var(--bgColor, #eeeeee);\n /* position: relative; */\n padding: 15px;\n border-radius: 10px;\n display: flex;\n justify-content: space-around;\n flex-direction: column;\n align-items: center;\n}\n\n.col > * {\n /* position: relative; */\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppCol\n *\n * The `AppCol` component is a dynamic column-like UI element that can be\n * customized via various properties such as dimensions, position, visibility,\n * background color, and event handlers. It is designed to work within\n * containers (`app-container`) and can include child components like\n * `app-text`, `app-row`, etc.\n */\n@Component({\n tag: 'app-col',\n styleUrl: 'app-col.css',\n shadow: false,\n})\nexport class AppCol {\n /**\n * The unique identifier for the column component.\n */\n @Prop() id: string;\n\n /**\n * The value associated with the column component. Typically used for internal logic.\n */\n @Prop() value: string;\n\n /**\n * The height of the column component (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the column component (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * The x-coordinate (left position) of the column within its container (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * The y-coordinate (top position) of the column within its container (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * The z-index of the column to control stacking order.\n */\n @Prop() z: string;\n\n /**\n * The background color of the column (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the column, which can be used for styling or specific logic handling.\n */\n @Prop() type: string;\n\n /**\n * The tab index value, used to set the tab order of the column for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * A boolean that controls whether the column is visible (`true`) or hidden (`false`).\n */\n @Prop() visible: boolean;\n\n /**\n * Audio file URL or identifier for sound that will be associated with the column.\n */\n @Prop() audio: string;\n\n /**\n * Event handler for a touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler for a matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler for when the column is entered, which can be used to initiate specific behaviors on entry.\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element that represents this component.\n */\n @Element() el: HTMLElement;\n\n /**\n * This lifecycle hook is called after the component is rendered in the DOM.\n * It initializes events for the column based on the provided type.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles applied to the column, mainly for positioning and background.\n const style = {\n height: this.height,\n width: this.width,\n backgroundColor: this.bgColor,\n top: this.y,\n left: this.x,\n display: this.visible ? 'flex' : 'none',\n zIndex: this.z,\n };\n\n return (\n <Host\n id={this.id}\n class=\"col\"\n type={this.type}\n tabindex={this.tabIndex}\n value={this.value}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n <slot />\n </Host>\n );\n }\n}\n",".container {\n position: relative;\n height: 100%;\n width: 100%;\n background-color: var(--bgColor, #ffffff);\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppContainer\n *\n * The `AppContainer` component acts as a container for other elements. It scales responsively\n * based on the window size, adjusts background color, and provides various configurable properties\n * such as dimensions, positioning, visibility, and custom event handlers.\n */\n@Component({\n tag: 'app-container',\n styleUrl: 'app-container.css',\n shadow: false,\n})\nexport class AppContainer {\n /**\n * Unique identifier for the container.\n */\n @Prop() id: string;\n\n /**\n * Objective or purpose of the container. Can be used for internal logic or tracking.\n */\n @Prop() objective: string;\n\n /**\n * Value assigned to the container. This can be used for logic related to this component.\n */\n @Prop() value: string;\n\n /**\n * The height of the container (CSS value).\n */\n @Prop() height: string;\n\n /**\n * The width of the container (CSS value).\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the container.\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the container.\n */\n @Prop() y: string;\n\n /**\n * Z-index to control the stacking order of the container.\n */\n @Prop() z: string;\n\n /**\n * Background color of the container (CSS color value).\n */\n @Prop() bgColor: string;\n\n /**\n * Type of the container, which can be used for conditional logic or styling purposes.\n */\n @Prop() type: string;\n\n /**\n * TabIndex for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Visibility flag for the container. If `true`, the container is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier of an audio file associated with the container.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the container is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a specific match condition is met within the container.\n */\n @Prop() onMatch: string;\n @Prop() onWrong: string;\n @Prop() onIncorrectTouch: string;\n\n /**\n * Event handler triggered when the container is entered, useful for triggering animations or logic.\n */\n @Prop() onEntry: string;\n\n /**\n * Boolean that controls the playability of the game.\n */\n @Prop() canplay: boolean = true;\n\n /**\n * Reference to the HTML element that represents this container component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Scales the container based on the window or screen size, maintaining the aspect ratio.\n * The container scales according to the minimum dimension of the screen.\n *\n * @param container The container element to be scaled.\n */\n scaleContainer(container: HTMLElement) {\n const widths = [window.innerWidth];\n const heights = [window.innerHeight];\n\n if (window.screen?.width) {\n widths.push(window.screen.width);\n heights.push(window.screen.height);\n }\n\n const width = Math.min(...widths);\n const height = document.documentElement.clientHeight;\n\n const scaleX = width / 1600; // Scale based on a reference width of 1600px\n const scaleY = height / 900; // Scale based on a reference height of 900px\n const scale = Math.min(scaleX, scaleY);\n\n // Center the container and apply scaling\n container.style.transform = `translate(-50%, -50%) scale(${scale})`;\n }\n\n /**\n * Lifecycle hook that runs after the component is loaded.\n * - It scales the container.\n * - It sets the background color of the body.\n * - Adds event listeners for `resize` and `load` to rescale the container on window size changes.\n */\n componentDidLoad() {\n this.scaleContainer(this.el);\n document.body.style.backgroundColor = this.bgColor;\n\n // Re-scale the container on window resize or load events\n window.addEventListener('resize', () => this.scaleContainer(this.el));\n window.addEventListener('load', () => this.scaleContainer(this.el));\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Define the styles for the container element\n const style = {\n backgroundColor: this.bgColor,\n width: '1600px', // Fixed width of the container\n height: '900px', // Fixed height of the container\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)', // Centering the container\n };\n console.log('🚀 ~ AppContainer ~ canplay:', this.canplay);\n\n return (\n <Host\n id=\"container\"\n tabindex={0}\n class=\"container\"\n objective={this.objective}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onIncorrectTouch={this.onIncorrectTouch}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onEntry={this.onEntry}\n >\n <slot />\n </Host>\n );\n }\n}\n","@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');\n\nbody {\n overflow: hidden;\n}\n\n","/* animations */\n\n@keyframes rightToPlace {\n from {\n transform: translateX(2000px);\n }\n to {\n left: 0;\n }\n}\n\n@keyframes placeToLeft {\n from {\n }\n to {\n transform: translateX(-2000px);\n }\n}\n\n@keyframes shake {\n 0% {\n transform: translateX(0);\n color: red;\n outline: 4px solid red;\n }\n 10% {\n transform: translateX(-5px);\n color: red;\n outline: 4px solid red;\n }\n 20% {\n transform: translateX(5px);\n color: red;\n outline: 4px solid red;\n }\n 30% {\n transform: translateX(-5px);\n color: red;\n outline: 4px solid red;\n }\n 40% {\n transform: translateX(5px);\n color: red;\n outline: 4px solid red;\n }\n 50% {\n transform: translateX(-5px);\n color: red;\n outline: 4px solid red;\n }\n 60% {\n transform: translateX(5px);\n color: red;\n outline: 4px solid red;\n }\n 70% {\n transform: translateX(-5px);\n color: red;\n outline: 4px solid red;\n }\n 80% {\n transform: translateX(5px);\n color: red;\n outline: 4px solid red;\n }\n 90% {\n transform: translateX(-5px);\n color: red;\n outline: 4px solid red;\n }\n 100% {\n transform: translateX(0);\n color: red;\n outline: 4px solid red;\n }\n}\n\n@keyframes fallAndBounce {\n 0% {\n transform: translateY(-1000px);\n }\n 25%{\n transform: translateY(0px);\n }\n 50% {\n transform: translateY(-200px);\n }\n 75% {\n transform: translateY(0);\n }\n 90% {\n transform: translateY(-100px);\n }\n 100% {\n transform: translateY(0);\n }\n}\n",".snackbar {\n visibility: visible;\n min-width: 250px;\n background-color: #333;\n color: #fff;\n text-align: center;\n border-radius: 2px;\n padding: 16px;\n position: fixed;\n z-index: 1;\n bottom: 30px;\n left: 50%;\n transform: translateX(-50%);\n font-size: 17px;\n}\n\n.dot-container {\n text-align: center;\n position: fixed;\n z-index: 1;\n width: fit-content;\n top: 1%;\n left: 50%;\n transform: translate(-50%);\n}\n\n.dot {\n height: 15px;\n width: 15px;\n margin: 0 4px;\n background-color: #bbb;\n border-radius: 50%;\n display: inline-block;\n transition: background-color 0.3s;\n cursor: pointer;\n}\n\n.dot.completed {\n background-color: grey;\n}\n\n.dot.current {\n background-color: green;\n}\n\n.dot:not(.completed):not(.current) {\n background-color: #bbb;\n}\n","import { Component, Prop, h, State } from '@stencil/core';\nimport { DragSelectedMapKey, SelectedValuesKey } from '../../utils/constants';\n\n/**\n * @component AppHome\n *\n * The `AppHome` component renders a series of containers parsed from the provided XML data.\n * It handles navigation between containers, resets the state on page reloads or container transitions,\n * and displays progress indicators (dots) for each container.\n */\n@Component({\n tag: 'app-home',\n shadow: false,\n styleUrls: ['./../../index.css', '../../utils/css/animation.css', './app-home.css'],\n})\nexport class AppHome {\n /**\n * XML data passed to the component, which is parsed and used to render various containers.\n */\n @Prop() xmlData: string;\n\n /**\n * Initial index of the container being displayed.\n */\n @Prop() initialIndex: number = 0;\n\n /**\n * Boolean that controls the playability of the game.\n */\n @Prop() canplay: boolean = true;\n\n /**\n * Current index of the container being displayed.\n */\n @State() currentContainerIndex: number = this.initialIndex;\n\n /**\n * Boolean that controls the display of the completion message after all containers have been viewed.\n */\n @State() showCompletionMessage: boolean = false;\n\n /**\n * Array that stores the parsed containers from the XML data.\n */\n @State() containers: any[] = [];\n\n /**\n * Event handler for transitioning to the next container in the sequence.\n * If the last container is reached, it shows a completion message.\n */\n nextContainer = (index?: number | undefined) => {\n if (index != undefined && index == this.currentContainerIndex) return;\n // Clear selected values from localStorage on container transition\n localStorage.removeItem(SelectedValuesKey);\n localStorage.removeItem(DragSelectedMapKey);\n\n if (index != undefined && index < this.containers.length) {\n // Move to the next container\n this.currentContainerIndex = index;\n window.dispatchEvent(new CustomEvent('activityChange', { detail: { index: this.currentContainerIndex } }));\n } else if (this.currentContainerIndex < this.containers.length - 1) {\n // Move to the next container\n this.currentContainerIndex++;\n window.dispatchEvent(new CustomEvent('activityChange', { detail: { index: this.currentContainerIndex } }));\n } else {\n // Show the completion message if all containers have been viewed\n this.showCompletionMessage = true;\n const event = new CustomEvent('gameCompleted');\n window.dispatchEvent(event);\n\n // Hide the completion message after 3 seconds\n setTimeout(() => {\n this.showCompletionMessage = false;\n }, 3000);\n }\n\n // Reset the containers array to trigger a re-render\n this.containers = [...this.containers];\n };\n\n /**\n * Lifecycle method that runs before the component is loaded. It sets up event listeners for transitioning\n * between containers and parses the XML data into containers.\n */\n componentWillLoad() {\n // Listen for 'nextContainer' event to transition between containers\n window.addEventListener('nextContainer', () => {\n this.nextContainer();\n });\n\n window.addEventListener('changeContainer', (e: any) => {\n this.nextContainer(e.detail.index);\n });\n\n // Parse the provided XML data\n this.parseXMLData(this.xmlData);\n\n // Remove stored values in localStorage when the page is about to be unloaded\n window.addEventListener('beforeunload', () => {\n localStorage.removeItem(SelectedValuesKey);\n localStorage.removeItem(DragSelectedMapKey);\n });\n }\n\n /**\n * Lifecycle method that cleans up event listeners when the component is removed from the DOM.\n */\n disconnectedCallback() {\n window.removeEventListener('nextContainer', () => {\n this.nextContainer();\n });\n window.removeEventListener('changeContainer', (e: any) => {\n this.nextContainer(e.detail.index);\n });\n }\n\n /**\n * Parses the provided XML string into an XML DOM object and extracts the containers from it.\n *\n * @param xmlData - The XML data as a string.\n */\n private parseXMLData(xmlData: string) {\n if (xmlData) {\n const parser = new DOMParser();\n const xmlDoc = parser.parseFromString(xmlData, 'text/xml');\n const rootElement = xmlDoc.documentElement;\n\n // Parse containers from the root XML element\n this.parseContainers(rootElement);\n }\n }\n\n /**\n * Recursively parses an XML element and its children, converting them into corresponding Stencil components.\n *\n * @param element - The XML element to parse.\n * @returns The corresponding Stencil component with parsed props and children.\n */\n private parseElement(element: Element): any {\n const tagName = element.nodeName.toLowerCase();\n const props: { [key: string]: any } = {};\n\n // Extract attributes from the element and map them to props\n Array.from(element.attributes).forEach(attr => {\n props[attr.name] = attr.value;\n });\n\n // Recursively parse child elements\n const children = Array.from(element.childNodes)\n .map(child => {\n if (child.nodeType === 1) {\n return this.parseElement(child as Element);\n } else if (child.nodeType === 3 && child.textContent.trim() !== '') {\n return child.textContent;\n }\n return null;\n })\n .filter(Boolean);\n\n // Map XML tags to Stencil components\n const componentMapping = {\n 'app-container': (\n <app-container {...props} canplay={this.canplay}>\n {children}\n </app-container>\n ),\n 'app-col': <app-col {...props}>{children}</app-col>,\n 'app-trace': <app-trace {...props}>{children}</app-trace>,\n 'app-image': <app-image {...props}>{children}</app-image>,\n 'app-row': <app-row {...props}>{children}</app-row>,\n 'app-text': <app-text {...props}>{children}</app-text>,\n 'app-pos': <app-pos {...props}>{children}</app-pos>,\n 'app-shape': <app-shape {...props}>{children}</app-shape>,\n 'app-wrap': <app-wrap {...props}>{children}</app-wrap>,\n 'app-random': <app-random {...props}>{children}</app-random>,\n };\n\n // If the tag is known, return the corresponding Stencil component, otherwise log a warning\n if (componentMapping[tagName]) {\n return componentMapping[tagName];\n } else {\n console.warn(`Unknown tag: ${tagName}`);\n return null;\n }\n }\n\n /**\n * Parses the `app-container` elements from the XML root element and stores them in the `containers` state.\n *\n * @param rootElement - The root element of the parsed XML document.\n */\n private parseContainers(rootElement: Element) {\n const containers = [];\n const containerElements = rootElement.querySelectorAll('app-container');\n\n // Parse each container and add it to the array\n containerElements.forEach(container => {\n const parsedElement = this.parseElement(container);\n if (parsedElement) {\n containers.push(parsedElement);\n }\n });\n\n this.containers = containers;\n }\n\n /**\n * Renders navigation dots for each container, indicating the progress of the user.\n * Clicking on a dot allows the user to jump to a specific container.\n */\n private renderDots() {\n return (\n <div id=\"dot-indicator\" class=\"dot-container\">\n {this.containers.map((_, index) => (\n <span\n class={`dot ${index < this.currentContainerIndex ? 'completed' : index === this.currentContainerIndex ? 'current' : ''}`}\n onClick={() => this.jumpToContainer(index)}\n ></span>\n ))}\n </div>\n );\n }\n\n /**\n * Jumps to a specific container based on the index of the dot clicked.\n *\n * @param index - The index of the container to jump to.\n */\n private jumpToContainer(index: number) {\n this.nextContainer(index);\n // this.currentContainerIndex = index;\n // this.containers = [...this.containers]; // Trigger re-render\n }\n\n render() {\n if (!this.xmlData) {\n // If no XML data is provided, prompt the user to provide it\n return <div>Please provide XML data.</div>;\n }\n\n return (\n <div>\n {/* Render the current container */}\n <div key={this.currentContainerIndex}>{this.containers[this.currentContainerIndex]}</div>\n\n {/* Render navigation dots below the container */}\n {this.renderDots()}\n\n {/* Show completion message if all containers have been displayed */}\n {this.showCompletionMessage && <div class=\"snackbar\">All containers have been displayed!</div>}\n </div>\n );\n }\n}\n",".image {\n user-select: none;\n -webkit-user-drag: none;\n object-fit: contain;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: 1 / 1; /* Ensures the image retains a 1:1 aspect ratio\n /* The image will scale to fit within its container, keeping the aspect ratio */\n}\n","import { Component, Prop, h, Element, Host, getAssetPath } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppImage\n *\n * The `AppImage` component displays an image element within a container. It is a versatile\n * component that allows dynamic sizing, positioning, visibility control, and event handling.\n * The component is designed to work in different types of environments, supporting custom\n * events such as touch, match, and entry events.\n */\n@Component({\n tag: 'app-image',\n styleUrl: 'app-image.css',\n shadow: false,\n})\nexport class AppImage {\n /**\n * The value associated with the image. Typically used for internal logic or identification.\n */\n @Prop() value: string;\n\n /**\n * The height of the image component (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the image component (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the image within its container (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the image within its container (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the image relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color for the container of the image (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the image component, which can be used for conditional logic or styling purposes.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Controls the visibility of the image component. If `true`, the image is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier of an audio file associated with the image.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the image is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs.\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the image is entered (useful for animations or logic on entry).\n */\n @Prop() onEntry: string;\n\n /**\n * The source URL of the image to be displayed.\n */\n @Prop() src: string;\n\n /**\n * Reference to the HTML element that represents this image component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle method that runs after the component has been loaded into the DOM.\n * It initializes custom events based on the `type` of the image component.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles for the image, including dimensions, positioning, and visibility\n const style = {\n height: this.height,\n width: this.width,\n backgroundColor: this.bgColor,\n top: this.y,\n left: this.x,\n zIndex: this.z,\n display: this.visible ? 'flex' : 'none',\n alignItems: 'center', // Vertically center the image\n justifyContent: 'center', // Horizontally center the image\n };\n\n return (\n <Host\n type={this.type}\n tabindex={this.tabIndex}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n value={this.value}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n <img class=\"image\" src={this.src} alt=\"\" style={style} />\n </Host>\n );\n }\n}\n",".pos {\n top: var(--y, 0);\n left: var(--x, 0);\n height: var(--height, 100%);\n width: var(--width, 100%);\n background-color: var(--bgColor, #eeeeee);\n display: flex;\n justify-content: space-around;\n flex-direction: column;\n position: fixed;\n \n}\n\n.pos > * {\n position: absolute;\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppPos\n *\n * The `AppPos` component is used to position a block-level element with dynamic styling and event handling.\n * It supports positioning with `x` and `y` coordinates, sizing with `height` and `width`, and custom\n * events for interaction such as touch, match, and entry events.\n */\n@Component({\n tag: 'app-pos',\n styleUrl: 'app-pos.css',\n shadow: false,\n})\nexport class AppPos {\n /**\n * Unique identifier for the positional element.\n */\n @Prop() id: string;\n\n /**\n * Value assigned to the component, often used for internal logic or data tracking.\n */\n @Prop() value: string;\n\n /**\n * The height of the component (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the component (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the component (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the component (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the element relative to others.\n */\n @Prop() z: string;\n\n /**\n * Background color of the component (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * The type of the component, used for conditional logic or specific styles.\n */\n @Prop() type: string;\n\n /**\n * Tab index to support keyboard navigation within the component.\n */\n @Prop() tabIndex: number;\n\n /**\n * Visibility flag to control whether the element is displayed (`true`) or hidden (`false`).\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier for an audio file associated with the component.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the component is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs (e.g., custom logic for interactions).\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the component is entered, often used to trigger animations or custom logic.\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element that represents this `app-pos` component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that is called after the component has been rendered in the DOM.\n * It initializes custom events based on the `type` of the component.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles to position and size the component\n const style = {\n height: this.height,\n width: this.width,\n backgroundColor: this.bgColor,\n top: this.y,\n left: this.x,\n zIndex: this.z,\n display: this.visible ? 'block' : 'none', // Toggle visibility\n };\n\n return (\n <Host\n id={this.id}\n class=\"pos\"\n type={this.type}\n tabindex={this.tabIndex}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n value={this.value}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n {/* Slot for child elements */}\n <slot />\n </Host>\n );\n }\n}\n",".random {\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute; /* Container is now relative */\n}\n\n.random > * {\n position: absolute;\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\n\n/**\n * @component AppRandom\n *\n * The `AppRandom` component randomly positions its child elements within its container.\n * This component can be used when a random layout of elements is required. It allows\n * full customization via props such as dimensions, positioning, visibility, and event handling.\n */\n@Component({\n tag: 'app-random',\n styleUrl: 'app-random.css',\n shadow: false,\n})\nexport class AppRandom {\n /**\n * Unique identifier for the random container.\n */\n @Prop() id: string;\n\n /**\n * Value associated with the component, often used for internal logic.\n */\n @Prop() value: string;\n\n /**\n * The height of the container (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the container (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the container (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the container (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the container relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color of the container (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * The type of the component, used for conditional logic or specific styling.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Controls the visibility of the container. If `true`, the container is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier for an audio file associated with the component.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the component is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs.\n */\n @Prop() onMatch: string;\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the component is entered (useful for animations or logic on entry).\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element representing this component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that runs after the component is rendered in the DOM.\n * It randomly positions all child elements within the container using CSS `top` and `left` percentages.\n */\n componentDidLoad() {\n // Select all direct child elements of the component\n const slotElements = this.el.querySelectorAll('.random > *');\n\n // Iterate over each child and apply random positions\n slotElements.forEach((child: HTMLElement) => {\n const randomTop = Math.random() * 100; // Random value between 0 and 100 for vertical position\n const randomLeft = Math.random() * 100; // Random value between 0 and 100 for horizontal position\n\n child.style.top = `${randomTop}%`;\n child.style.left = `${randomLeft}%`;\n });\n }\n\n render() {\n // Inline styles for the container, including dimensions, positioning, and visibility\n const style = {\n height: this.height,\n width: this.width,\n top: this.y,\n left: this.x,\n display: this.visible ? 'block' : 'none', // Toggle visibility\n zIndex: this.z,\n backgroundColor: this.bgColor,\n };\n\n return (\n <Host\n class=\"random\"\n type={this.type}\n tabindex={this.tabIndex}\n value={this.value}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n {/* Slot to render child elements that will be randomly positioned */}\n <slot />\n </Host>\n );\n }\n}\n","import { Component, h, State, Prop, getAssetPath } from '@stencil/core';\n\n/**\n * @component AppRoot\n *\n * The `AppRoot` component is the main application entry point. It loads an external XML data file\n * from a specified URL or asset path and passes it down to the `app-home` component for rendering.\n * The XML path can be configured via a prop.\n */\n@Component({\n tag: 'app-root',\n shadow: false,\n assetsDirs: ['assets'], // Specifies the directory for static assets\n})\nexport class AppRoot {\n /**\n * Prop to hold the XML file path or URL. This can be a relative path or an external URL.\n */\n @Prop() xmlPath: string;\n\n /**\n * State variable to hold the XML data fetched from the specified path or URL.\n */\n @State() xmlData: string;\n\n /**\n * Lifecycle method that runs before the component is loaded.\n * It fetches the XML data from the specified path or URL and sets it to the component's state.\n */\n async componentWillLoad() {\n // Validate the xmlPath prop\n if (!this.xmlPath) {\n console.error('XML path is not provided.');\n return;\n }\n\n // Fetch the XML data\n try {\n const resolvedPath = this.xmlPath.startsWith('http')\n ? this.xmlPath // Use the provided URL if it's an HTTP/HTTPS link\n : getAssetPath(this.xmlPath); // Otherwise, resolve it as an asset path\n\n const response = await fetch(resolvedPath);\n if (!response.ok) {\n throw new Error(`Failed to fetch XML data: ${response.statusText}`);\n }\n const data = await response.text();\n\n // Store the XML data in the component's state\n this.xmlData = data;\n } catch (error) {\n console.error('Error fetching XML data:', error);\n this.xmlData = null;\n }\n }\n\n render() {\n // Show a loading message until the XML data is fetched\n if (this.xmlData === undefined) {\n return <div>Loading...</div>;\n }\n\n // Show an error message if the XML data could not be fetched\n if (this.xmlData === null) {\n return <div>Error loading XML data. Please check the path or URL.</div>;\n }\n\n // Once the XML data is loaded, pass it to the `app-home` component\n return <app-home initialIndex={0} canplay={true} xmlData={this.xmlData}></app-home>;\n }\n}\n",".row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n /* position: absolute; */\n}\n\n.row > * {\n /* position: relative; */\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppRow\n *\n * The `AppRow` component is used to create a flexible row element that can contain other elements.\n * It supports dynamic positioning, sizing, visibility control, and custom events for interaction.\n */\n@Component({\n tag: 'app-row',\n styleUrl: 'app-row.css',\n shadow: false,\n})\nexport class AppRow {\n /**\n * Value associated with the row, typically used for internal logic or data.\n */\n @Prop() value: string;\n\n /**\n * The height of the row (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the row (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the row (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the row (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the row relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color of the row (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the row, used for conditional logic or specific styling.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Controls the visibility of the row. If `true`, the row is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier of an audio file associated with the row.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the row is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs within the row.\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the row is entered, often used for triggering animations or custom logic.\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element representing this `app-row` component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that runs after the component is loaded into the DOM.\n * It initializes custom events based on the `type` of the row component.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles to position and size the row component\n const style = {\n height: this.height,\n width: this.width,\n top: this.y,\n left: this.x,\n display: this.visible ? 'flex' : 'none', // Flexbox for row layout\n zIndex: this.z,\n backgroundColor: this.bgColor, // Apply background color if provided\n };\n\n return (\n <Host\n class=\"row\"\n type={this.type}\n tabindex={this.tabIndex}\n value={this.value}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n {/* Slot for child elements */}\n <slot />\n </Host>\n );\n }\n}\n",".shape {\n position: absolute;\n top: var(--y);\n left: var(--x);\n display: var(--display);\n z-index: var(--z);\n}\n\n.rectangle {\n border-radius: 0;\n}\n\n.circle {\n width: var(--width); /* Ensures width is always used for both dimensions */\n height: var(--width); /* Make height equal to width for a perfect circle */\n border-radius: 50%; /* 50% border-radius for a perfect circle */\n background-color: var(--bgColor);\n}\n\n.ellipse {\n width: var(--width);\n height: var(--height);\n border-radius: 50%; /* Create an ellipse shape */\n background-color: var(--bgColor);\n}\n\n/* other shapes */\n\n.triangle {\n width: var(--triangleWidth);\n height: var(--triangleHeight);\n background-color: var(--bgColor);\n clip-path: polygon(50% 0%, 100% 100%, 0% 100%);\n}\n\n.rightTriangle {\n width: var(--triangleWidth);\n height: var(--triangleHeight);\n background-color: var(--bgColor);\n clip-path: polygon(100% 0%, 100% 100%, 0% 100%);\n}\n\n.leftTriangle {\n width: var(--triangleWidth);\n height: var(--triangleHeight);\n background-color: var(--triangleBgColor);\n clip-path: polygon(0% 0%, 100% 100%, 0% 100%);\n}\n\n.parallelogram {\n width: var(--paralleWidth);\n height: var(--paralleHeight);\n transform: skew(20deg);\n}\n\n.star {\n width: var(--starWidth);\n height: var(--starHeight);\n background-color: var(--starBgColor);\n clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);\n}\n\n.pentagon {\n width: var(--pentagonWidth);\n height: var(--pentagonHeight);\n background-color: var(--pentagonBgColor);\n clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);\n}\n\n.heptagon {\n width: var(--heptagonWidth);\n height: var(--heptagonHeight);\n background-color: var(--heptagonBgColor);\n clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);\n}\n\n.octagon {\n width: var(--octagonWidth);\n height: var(--octagonHeight);\n background-color: var(--octagonBgColor);\n clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);\n}\n\n.rhombus {\n width: var(--rhombusWidth);\n height: var(--rhombusHeight);\n background-color: var(--rhombusBgColor);\n clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);\n}\n\n.heart {\n height: var(--heartHeight);\n width: var(--heartWidth);\n border-image: radial-gradient(var(--heartBgColor) 69%, #0000 70%) 84.5%/50%;\n clip-path: polygon(-41% 0, 50% 91%, 141% 0);\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppShape\n *\n * The `AppShape` component is used to display various types of shapes like rectangles, circles, or polygons.\n * The shape's appearance is dynamically controlled by props such as dimensions, position, visibility, and the type of shape.\n * Additionally, it supports custom events for interaction like touch, match, and entry.\n */\n@Component({\n tag: 'app-shape',\n styleUrl: 'app-shape.css',\n shadow: false,\n})\nexport class AppShape {\n /**\n * Unique identifier for the shape element.\n */\n @Prop() id: string;\n\n /**\n * Value associated with the shape, typically used for internal logic or tracking.\n */\n @Prop() value: string;\n\n /**\n * The height of the shape (CSS value, e.g., '100px', '50%').\n * This is ignored for polygons.\n */\n @Prop() height: string;\n\n /**\n * The width of the shape (CSS value, e.g., '100px', '50%').\n * This is ignored for polygons.\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the shape (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the shape (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the shape relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color of the shape (CSS color value, e.g., '#FFFFFF', 'blue').\n * This is ignored for polygons.\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the shape, which can be used for conditional logic or specific styling.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Type of shape to render (e.g., 'circle', 'rectangle', 'polygon').\n */\n @Prop() shapeType: string;\n\n /**\n * Controls the visibility of the shape. If `true`, the shape is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier for an audio file associated with the shape.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the shape is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs with the shape.\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the shape is entered (useful for animations or logic on entry).\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element representing this `app-shape` component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that runs after the component is loaded into the DOM.\n * It initializes custom events based on the `type` of the shape component.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles to position and size the shape component\n const style = {\n height: this.shapeType !== 'polygon' ? this.height : undefined, // Set height unless it's a polygon\n width: this.shapeType !== 'polygon' ? this.width : undefined, // Set width unless it's a polygon\n top: this.y,\n left: this.x,\n display: this.visible ? 'block' : 'none', // Toggle visibility\n zIndex: this.z,\n backgroundColor: this.shapeType !== 'polygon' ? this.bgColor : 'transparent', // Apply background only if not a polygon\n };\n\n return (\n <Host\n class={`shape ${this.shapeType}`} // Apply shape-specific class\n value={this.value}\n type={this.type}\n tabindex={this.tabIndex}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n {/* Slot for any child elements */}\n </Host>\n );\n }\n}\n",".text {\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n transition: background-color 0.3s ease;\n user-select: none;\n align-items: center;\n justify-content: center;\n text-align: center;\n border-radius: 8px;\n color: #333;\n cursor: pointer;\n}\n\n.text:hover {\n background-color: #f0f0f0;\n}\n","import { Component, Prop, h, Element, Host } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppText\n *\n * The `AppText` component is used to display text with customizable styling.\n * It allows you to set the font, size, color, and background color, along with\n * positioning and visibility control. The component supports custom events like touch, match, and entry.\n */\n@Component({\n tag: 'app-text',\n styleUrl: 'app-text.css',\n shadow: false,\n})\nexport class AppText {\n /**\n * Unique identifier for the text element.\n */\n @Prop() id: string;\n\n /**\n * Value associated with the text element, typically used for internal logic or tracking.\n */\n @Prop() value: string;\n\n /**\n * The string of text to be displayed in the component.\n */\n @Prop() string: string;\n\n /**\n * Font family for the text (CSS value, e.g., 'Arial', 'Times New Roman').\n */\n @Prop() font: string;\n\n /**\n * Font size for the text (CSS value, e.g., '16px', '1.5em').\n */\n @Prop() fontSize: string;\n\n /**\n * Font color for the text (CSS color value, e.g., '#000000', 'red').\n */\n @Prop() fontColor: string;\n\n /**\n * When set to `true`, the text will highlight while being spoken, typically used for accessibility.\n */\n @Prop() highlightWhileSpeaking: boolean;\n\n /**\n * Height of the text component (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * Width of the text component (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the text component (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the text component (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the text component relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color of the text component (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the component, which can be used for conditional logic or specific styling.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Controls the visibility of the text component. If `true`, the text is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier for an audio file associated with the text component.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the text component is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs with the text component.\n */\n @Prop() onMatch: string;\n \n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the text component is entered (useful for animations or logic on entry).\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element representing this `app-text` component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that runs after the component is rendered in the DOM.\n * It initializes custom events based on the `type` of the text component.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles to customize the appearance and positioning of the text component\n const style = {\n height: this.height,\n width: this.width,\n backgroundColor: this.bgColor,\n top: this.y,\n left: this.x,\n zIndex: this.z,\n fontSize: this.fontSize,\n fontFamily: this.font,\n color: this.fontColor,\n display: this.visible ? 'flex' : 'none', // Show or hide based on visibility prop\n };\n\n return (\n <Host\n class=\"text\"\n value={this.value}\n type={this.type}\n tabindex={this.tabIndex}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n id={this.id}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n >\n {this.string}\n </Host>\n );\n }\n}\n",":host {\n display: block;\n position: relative;\n}\n\n#svgContainer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 50px; /* Leave space for controls */\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n}\n\nsvg {\n width: 100%;\n height: 100%;\n max-height: calc(100vh - 50px);\n /* border: 1px solid black; */\n touch-action: none;\n}\n\n#draggableCircle {\n cursor: pointer;\n fill: red;\n transition: fill 0.2s, r 0.2s;\n}\n\n.blindTracing {\n stroke: none !important;\n}\n\n.blindFreeTrace {\n stroke: none !important;\n}\n\n.hovered {\n cursor: grab;\n fill: darkred;\n}\n\n#controls {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n justify-content: space-between;\n padding: 10px;\n background-color: #f0f0f0;\n border-top: 1px solid #ccc;\n}\n\nbutton {\n padding: 10px;\n font-size: 16px;\n}\n\n@media (max-width: 600px) {\n button {\n padding: 8px;\n font-size: 14px;\n }\n}\n.trace-path-green {\n stroke: green !important;\n}\n\n","import { Component, Prop, h, Host, State } from '@stencil/core';\nimport { triggerNextContainer } from '../../utils/utils';\nimport { TraceMode } from '../../utils/constants';\n\n// Enum for different tracing modes\n\n@Component({\n tag: 'app-trace',\n styleUrl: 'app-trace.css',\n shadow: false,\n assetsDirs: ['svg'],\n})\nexport class AppTrace {\n /**\n * Various configuration properties for `app-trace`\n */\n /**\n * Unique identifier for this `app-trace` component instance.\n */\n @Prop() id: string;\n\n /**\n * Source URL or path for the SVG file used in this component.\n */\n @Prop() svgSource: string;\n\n /**\n * A custom string value associated with the component for additional data or identification.\n */\n @Prop() value: string;\n\n /**\n * Specifies the height of the component container, accepts any valid CSS height value (e.g., `\"100px\"`, `\"50%\"`).\n */\n @Prop() height: string;\n\n /**\n * Specifies the width of the component container, accepts any valid CSS width value (e.g., `\"100px\"`, `\"50%\"`).\n */\n @Prop() width: string;\n\n /**\n * Defines the x-coordinate position (left offset) of the component container, using any valid CSS `left` value (e.g., `\"10px\"`, `\"5%\"`).\n */\n @Prop() x: string;\n\n /**\n * Defines the y-coordinate position (top offset) of the component container, using any valid CSS `top` value (e.g., `\"10px\"`, `\"5%\"`).\n */\n @Prop() y: string;\n\n /**\n * Sets the z-index of the component, controlling its stacking order on the page.\n */\n @Prop() z: string;\n\n /**\n * Accessible label for screen readers, providing a textual description of the component's purpose.\n */\n @Prop() ariaLabel: string;\n\n /**\n * Controls visibility for assistive technologies. If `\"true\"`, the component is hidden from screen readers.\n */\n @Prop() ariaHidden: string;\n\n /**\n * Sets the tab order of the component within the page, enabling keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Mode for the tracing interaction, defining how users interact with the SVG paths.\n * Options may include `\"noFlow\"`, `\"showFlow\"`, `\"freeTrace\"`, `\"blindTracing\"`, and `\"blindFreeTrace\"`.\n */\n @Prop() mode: string;\n\n // @Element() el!: HTMLElement;\n\n @State() fileIndex: number = -1;\n @State() isDragging: boolean = false;\n @State() activePointerId: number | null = null;\n\n // MODES = ['noFlow', 'showFlow', 'freeTrace', 'blindTracing', 'blindFreeTrace'];\n\n // Handle the pointermove event with optimizations\n // Update the path trace as the red circle moves\n async initializeSVG() {\n let state = {\n fileIndex: -1,\n currentPathIndex: 0,\n lastLength: 0,\n totalPathLength: 0,\n isDragging: false,\n circle: null as SVGCircleElement | null,\n paths: [] as SVGGeometryElement[],\n svg: null as SVGSVGElement | null,\n proximityThreshold: 100, // General proximity threshold\n freeTraceProximityThreshold: 50, // Reduced proximity threshold for free trace\n rafId: null as number | null,\n pointerMoveEvent: null as PointerEvent | null,\n activePointerId: null as number | null,\n mode: this.mode,\n flowMarkers: [] as SVGPolygonElement[],\n freeTraceLines: [] as SVGPathElement[],\n };\n\n await this.loadAnotherSVG(state, true); // Load the first SVG\n }\n\n componentWillLoad() {\n this.initializeSVG();\n }\n // Fetch the SVG file asynchronously\n async fetchSVG(url: string): Promise<string> {\n const response = await fetch(url);\n if (!response.ok) {\n throw new Error(`Failed to fetch SVG (${url}): ${response.statusText}`);\n }\n return await response.text();\n }\n\n // to calculate the bounding box of all paths\n calculateBoundingBox(paths: SVGGeometryElement[], padding = 22) {\n let minX = Infinity,\n minY = Infinity,\n maxX = -Infinity,\n maxY = -Infinity;\n paths.forEach(path => {\n const length = path.getTotalLength();\n const numPoints = 100; // Number of points to sample along the path\n for (let i = 0; i <= numPoints; i++) {\n const point = path.getPointAtLength((i / numPoints) * length);\n if (point.x < minX) minX = point.x;\n if (point.y < minY) minY = point.y;\n if (point.x > maxX) maxX = point.x;\n if (point.y > maxY) maxY = point.y;\n }\n });\n // Apply padding\n minX -= padding;\n minY -= padding;\n maxX += padding;\n maxY += padding;\n return { minX, minY, maxX, maxY };\n }\n\n // Insert the fetched SVG into the container and adjust viewBox\n insertSVG(svgText: string) {\n const svgContainer = document.getElementById('svgContainer') as HTMLElement;\n svgContainer.innerHTML = svgText;\n\n // After inserting, get the SVG element\n const svgElement = svgContainer.querySelector('svg') as SVGSVGElement;\n\n // Remove the width and height attributes from the SVG element\n svgElement.removeAttribute('width');\n svgElement.removeAttribute('height');\n\n // Get all paths\n const paths = svgElement.querySelectorAll('path, line') as NodeListOf<SVGGeometryElement>;\n\n // Calculate bounding box\n const bbox = this.calculateBoundingBox(Array.from(paths));\n\n // Set the viewBox to the bounding box\n const viewBoxWidth = bbox.maxX - bbox.minX;\n const viewBoxHeight = bbox.maxY - bbox.minY;\n svgElement.setAttribute('viewBox', `${bbox.minX} ${bbox.minY} ${viewBoxWidth} ${viewBoxHeight}`);\n }\n\n // Retrieve the SVG element from the container\n getSVGElement() {\n const svgContainer = document.getElementById('svgContainer') as HTMLElement;\n return svgContainer.querySelector('svg');\n }\n\n // Get all path and line elements from the SVG\n getPaths(svg: SVGSVGElement) {\n return Array.from(svg.querySelectorAll('path, line'));\n }\n\n // Create flow markers along the path to guide the user\n createFlowMarkersForPath(path: SVGGeometryElement, markerCount = 10) {\n const totalLength = path.getTotalLength();\n const interval = totalLength / (markerCount + 1); // Space markers evenly\n const markers: SVGPolygonElement[] = [];\n\n for (let i = 1; i <= markerCount; i++) {\n const point = path.getPointAtLength(i * interval);\n const nextPoint = path.getPointAtLength((i + 0.5) * interval); // Slightly ahead point for direction\n\n // Create an arrow marker\n const angle = Math.atan2(nextPoint.y - point.y, nextPoint.x - point.x);\n const arrowMarker = document.createElementNS('http://www.w3.org/2000/svg', 'polygon');\n arrowMarker.setAttribute('points', '-5,-5 0,0 -5,5');\n arrowMarker.setAttribute('fill', 'blue');\n arrowMarker.setAttribute('transform', `translate(${point.x},${point.y}) rotate(${(angle * 180) / Math.PI})`);\n arrowMarker.setAttribute('class', 'flow-indicator');\n markers.push(arrowMarker);\n path.parentNode?.appendChild(arrowMarker); // Append to the same SVG container\n }\n return markers;\n }\n\n // Show or hide flow indicators based on mode\n updateFlowIndicators(state: any) {\n const indicators = state.svg.querySelectorAll('.flow-indicator');\n indicators.forEach(indicator => {\n if (state.mode === TraceMode.NoFlow) {\n (indicator as HTMLElement).style.display = 'none';\n } else if (state.mode === TraceMode.ShowFlow) {\n (indicator as HTMLElement).style.display = 'block';\n }\n });\n }\n\n // Create a new path element for the drawing effect\n setupDrawingPath(state: any) {\n state.paths.forEach((path: any, index: number) => {\n const pathLength = path.getTotalLength();\n\n // Create green path for tracing effect\n const greenPath = path.cloneNode() as SVGPathElement;\n greenPath.setAttribute('stroke', 'green');\n greenPath.setAttribute('stroke-width', '13');\n greenPath.setAttribute('stroke-dasharray', pathLength.toString());\n greenPath.setAttribute('stroke-dashoffset', pathLength.toString()); // Hidden initially\n path.parentNode.appendChild(greenPath, path);\n\n path.setAttribute('class', 'trace-path'); // Add class for easier reference\n greenPath.setAttribute('class', 'trace-path-green'); // Add class for easier reference\n\n (path as any).greenPath = greenPath;\n path.classList.add(state.mode);\n\n // Conditionally hide or show the black path based on blind tracing mode\n if (state.mode === TraceMode.BlindTracing || state.mode === TraceMode.BlindFreeTrace) {\n // In blind tracing or blind free trace mode, hide the black path\n path.setAttribute('stroke', 'none');\n } else {\n // In other modes, show the black path\n path.setAttribute('stroke', '#000');\n path.setAttribute('stroke-width', '10');\n path.setAttribute('fill', 'none');\n path.setAttribute('stroke-dasharray', pathLength.toString());\n path.setAttribute('stroke-dashoffset', '0'); // Fully visible initially\n }\n\n // Only create flow markers for the current path in normal modes\n if (index === state.currentPathIndex && state.mode === TraceMode.ShowFlow) {\n state.flowMarkers = this.createFlowMarkersForPath(path);\n }\n });\n\n state.totalPathLength = state.paths[state.currentPathIndex].getTotalLength();\n }\n\n // Set up the draggable circle at the start of the first path\n setupDraggableCircle(state: any) {\n const firstPathStart = state.paths[0].getPointAtLength(0);\n const circle = document.createElementNS('http://www.w3.org/2000/svg', 'circle');\n circle.setAttribute('id', 'draggableCircle');\n circle.setAttribute('cx', firstPathStart.x.toString());\n circle.setAttribute('cy', firstPathStart.y.toString());\n circle.setAttribute('r', '20'); // Radius of the draggable circle\n circle.setAttribute('fill', 'red');\n state.svg?.appendChild(circle);\n state.circle = circle;\n }\n\n // Add necessary event listeners using Pointer Events\n addEventListeners(state: any) {\n // Ensure the circle exists before adding events\n if (!state.circle || !state.paths || state.paths.length === 0) return;\n\n // Handle pointerdown on the circle to start dragging\n state.circle.addEventListener('pointerdown', (evt: PointerEvent) => {\n evt.preventDefault(); // Prevent default actions like text selection\n const pointerPos = this.getPointerPosition(evt, state.svg!);\n const circlePos = {\n x: parseFloat(state.circle.getAttribute('cx')!),\n y: parseFloat(state.circle.getAttribute('cy')!),\n };\n const distance = this.getDistanceSquared(pointerPos, circlePos);\n if (distance <= state.proximityThreshold * state.proximityThreshold) {\n state.isDragging = true;\n state.activePointerId = evt.pointerId;\n // Capture the pointer to continue receiving events even if it leaves the element\n state.circle.setPointerCapture(evt.pointerId);\n }\n });\n\n // Handle pointermove on the SVG to update the circle position\n state.svg?.addEventListener('pointermove', (evt: PointerEvent) => {\n if (!state.isDragging || evt.pointerId !== state.activePointerId) return;\n\n state.pointerMoveEvent = evt;\n if (!state.rafId) {\n state.rafId = requestAnimationFrame(() => {\n this.handlePointerMove(state);\n state.rafId = null;\n });\n }\n });\n\n // Handle pointerup and pointercancel on the SVG to stop dragging\n state.svg?.addEventListener('pointerup', (evt: PointerEvent) => {\n if (evt.pointerId === state.activePointerId) {\n state.isDragging = false;\n state.activePointerId = null;\n }\n });\n\n state.svg?.addEventListener('pointercancel', (evt: PointerEvent) => {\n if (evt.pointerId === state.activePointerId) {\n state.isDragging = false;\n state.activePointerId = null;\n }\n });\n\n // Optional: Prevent context menu on long press\n state.svg?.addEventListener('contextmenu', (evt: MouseEvent) => {\n evt.preventDefault();\n });\n }\n\n // Modified handlePointerMove function\n handlePointerMove(state: any) {\n if (!state.isDragging) return;\n if (!state.circle || !state.paths || state.paths.length === 0) return;\n\n const evt = state.pointerMoveEvent as PointerEvent;\n const pointerPos = this.getPointerPosition(evt, state.svg!);\n const circlePos = {\n x: parseFloat(state.circle.getAttribute('cx')!),\n y: parseFloat(state.circle.getAttribute('cy')!),\n };\n\n const currentPath = state.paths[state.currentPathIndex];\n if (!currentPath) {\n console.error('No valid path found at the current index');\n return;\n }\n\n // Use a reduced proximity threshold for free trace mode\n let proximitySquared;\n if (state.mode === TraceMode.FreeTrace || state.mode === TraceMode.BlindFreeTrace) {\n proximitySquared = state.freeTraceProximityThreshold * state.freeTraceProximityThreshold;\n } else {\n proximitySquared = state.proximityThreshold * state.proximityThreshold;\n }\n\n // Calculate the distance between the pointer and the draggable circle\n const distanceSquared = this.getDistanceSquared(pointerPos, circlePos);\n\n // If the pointer is outside the proximity threshold, do not proceed with drawing or moving\n if (distanceSquared > proximitySquared) {\n return; // Skip any further actions\n }\n\n const closestPoint = this.getClosestPointOnPath(currentPath, pointerPos);\n\n // Ensure drawing happens only within proximity threshold\n const distanceToPathSquared = this.getDistanceSquared(pointerPos, closestPoint);\n if (distanceToPathSquared > proximitySquared) {\n return; // Skip drawing if too far from the path\n }\n\n // For free trace mode and blind free trace mode, allow free drawing only if within the reduced proximity threshold\n if (state.mode === TraceMode.FreeTrace || state.mode === TraceMode.BlindFreeTrace) {\n // Initialize the currentFreePath array if it's not created\n if (!state.currentFreePath) {\n state.currentFreePath = [];\n }\n\n // Create a new path element if it's the first trace for the current path index\n if (!state.currentFreePath[state.currentPathIndex]) {\n const newPath = document.createElementNS('http://www.w3.org/2000/svg', 'path');\n newPath.setAttribute('stroke', 'green');\n newPath.setAttribute('stroke-width', '8');\n newPath.setAttribute('fill', 'none');\n\n // Start the new path at the current pointer position\n newPath.setAttribute('d', `M${pointerPos.x},${pointerPos.y}`);\n state.svg?.appendChild(newPath);\n state.currentFreePath[state.currentPathIndex] = newPath;\n\n // Reset lastPointerPos for the new path\n state.lastPointerPos = pointerPos;\n }\n\n // Get the previous position to draw a smooth curve\n const previousPos = state.lastPointerPos || pointerPos;\n\n // Create a quadratic curve from the previous point to the current point\n const newPathData = state.currentFreePath[state.currentPathIndex].getAttribute('d');\n const midPointX = (previousPos.x + pointerPos.x) / 2;\n const midPointY = (previousPos.y + pointerPos.y) / 2;\n const updatedPathData = `${newPathData} Q ${previousPos.x},${previousPos.y} ${midPointX},${midPointY}`;\n\n // Update the path's 'd' attribute with the new curve\n state.currentFreePath[state.currentPathIndex].setAttribute('d', updatedPathData);\n\n // Move the draggable circle with the freehand trace\n state.circle.setAttribute('cx', pointerPos.x.toString());\n state.circle.setAttribute('cy', pointerPos.y.toString());\n\n // Make sure the red dot (circle) is always on top\n state.svg?.appendChild(state.circle); // This moves the circle to the last child, making it the topmost\n\n // Update the last pointer position\n state.lastPointerPos = pointerPos;\n\n const currentPathLength = currentPath.getTotalLength();\n const distanceToEnd = currentPathLength - closestPoint.length;\n\n // If close to the end of the path, move to the next path\n if (distanceToEnd < 5) {\n this.moveToNextPath(state);\n state.currentFreePath[state.currentPathIndex] = null; // Reset free path for next path\n }\n\n return; // Exit early since we're in free trace or blind free trace mode\n }\n\n // In normal modes, allow movement and drawing only within the general proximity threshold\n if (state.isDragging && closestPoint.length >= state.lastLength) {\n state.lastLength = closestPoint.length;\n state.circle.setAttribute('cx', closestPoint.x.toString());\n state.circle.setAttribute('cy', closestPoint.y.toString());\n\n // Make sure the red dot (circle) is always on top\n state.svg?.appendChild(state.circle); // This moves the circle to the last child, making it the topmost\n\n currentPath.greenPath?.setAttribute('stroke-dashoffset', (state.totalPathLength - state.lastLength).toString());\n }\n\n // Check if the current path is completed\n if (state.totalPathLength - 1 - state.lastLength < 5 && state.currentPathIndex < state.paths.length - 1) {\n this.moveToNextPath(state);\n } else if (state.totalPathLength - 1 - state.lastLength < 5 && state.currentPathIndex === state.paths.length - 1) {\n // this.loadAnotherSVG(state, true);\n triggerNextContainer();\n }\n }\n\n // Get the pointer position relative to the SVG\n getPointerPosition(evt: PointerEvent, svg: SVGSVGElement) {\n const svgPoint = svg.createSVGPoint();\n svgPoint.x = evt.clientX;\n svgPoint.y = evt.clientY;\n const ctm = svg.getScreenCTM()?.inverse();\n return ctm ? svgPoint.matrixTransform(ctm) : { x: evt.clientX, y: evt.clientY };\n }\n\n // Calculate the squared Euclidean distance between two points\n getDistanceSquared(p1: { x: number; y: number }, p2: { x: number; y: number }) {\n const dx = p1.x - p2.x;\n const dy = p1.y - p2.y;\n return dx * dx + dy * dy;\n }\n\n // Find the closest point on the given path to the specified point using two-pass sampling\n getClosestPointOnPath(pathNode: SVGGeometryElement, point: { x: number; y: number }) {\n const pathLength = pathNode.getTotalLength();\n let closestPoint = { x: 0, y: 0, length: 0 };\n let minDistanceSquared = Infinity;\n\n // First pass: coarse sampling\n const coarseStep = 20; // Increased step for better performance\n let coarseClosestPoint = { x: 0, y: 0, length: 0 };\n let coarseMinDistanceSquared = Infinity;\n\n for (let i = 0; i <= pathLength; i += coarseStep) {\n const pointOnPath = pathNode.getPointAtLength(i);\n const distanceSquared = this.getDistanceSquared(point, pointOnPath);\n\n if (distanceSquared < coarseMinDistanceSquared) {\n coarseMinDistanceSquared = distanceSquared;\n coarseClosestPoint = {\n x: pointOnPath.x,\n y: pointOnPath.y,\n length: i,\n };\n }\n }\n\n // Second pass: fine sampling around coarseClosestPoint\n const fineStep = 2; // Increased step to reduce computations\n const searchStart = Math.max(coarseClosestPoint.length - coarseStep, 0);\n const searchEnd = Math.min(coarseClosestPoint.length + coarseStep, pathLength);\n\n for (let i = searchStart; i <= searchEnd; i += fineStep) {\n const pointOnPath = pathNode.getPointAtLength(i);\n const distanceSquared = this.getDistanceSquared(point, pointOnPath);\n\n if (distanceSquared < minDistanceSquared) {\n minDistanceSquared = distanceSquared;\n closestPoint = { x: pointOnPath.x, y: pointOnPath.y, length: i };\n }\n }\n\n return closestPoint;\n }\n\n // Load the next or previous SVG based on the isNext flag\n async loadAnotherSVG(state: any, isNext: boolean) {\n state.isDragging = false;\n\n // Update fileIndex based on whether isNext is true or false\n // if (isNext) {\n // state.fileIndex++;\n // if (state.fileIndex >= this.svgFiles.length) {\n // state.fileIndex = this.svgFiles.length - 1; // Stay at the last file\n // return;\n // }\n // } else {\n // state.fileIndex--;\n // if (state.fileIndex < 0) {\n // state.fileIndex = 0; // Stay at the first file\n // return;\n // }\n // }\n\n try {\n if (state.svg) {\n this.cleanupPreviousSVG(state);\n }\n\n // const svgText = await this.fetchSVG(this.svgSource ?? this.svgFiles[state.fileIndex]);\n const svgText = await this.fetchSVG(this.svgSource);\n\n this.insertSVG(svgText);\n\n state.svg = this.getSVGElement();\n state.paths = this.getPaths(state.svg);\n\n this.setupDrawingPath(state);\n this.setupDraggableCircle(state);\n this.addEventListeners(state);\n } catch (error) {\n console.error(`Error loading SVG (${this.svgSource}):`, error);\n }\n }\n\n // Cleanup previous SVG's elements and state\n cleanupPreviousSVG(state: any) {\n if (state.circle) {\n state.svg?.removeChild(state.circle);\n state.circle = null;\n }\n\n const indicators = state.svg?.querySelectorAll('.flow-indicator') as NodeListOf<SVGPolygonElement>;\n indicators.forEach(indicator => {\n indicator.remove(); // Remove all previous flow indicators\n });\n\n state.currentPathIndex = 0;\n state.lastLength = 0;\n state.totalPathLength = state.paths[0].getTotalLength();\n }\n\n // Move to the next path in the SVG\n moveToNextPath(state: any) {\n state.isDragging = false;\n state.currentPathIndex++;\n state.lastLength = 0;\n\n if (state.currentPathIndex >= state.paths.length) {\n // this.loadAnotherSVG(state, true);\n triggerNextContainer();\n return;\n }\n\n const nextPath = state.paths[state.currentPathIndex];\n if (!nextPath) {\n console.error('No valid path found at the next index');\n return;\n }\n\n state.totalPathLength = nextPath.getTotalLength();\n\n const startPoint = nextPath.getPointAtLength(0);\n state.circle?.setAttribute('cx', startPoint.x.toString());\n state.circle?.setAttribute('cy', startPoint.y.toString());\n\n if (state.mode === TraceMode.ShowFlow) {\n state.flowMarkers = this.createFlowMarkersForPath(nextPath);\n }\n }\n\n render() {\n const style = {\n height: this.height,\n width: this.width,\n top: this.y,\n left: this.x,\n zIndex: this.z,\n position: 'absolute' as const,\n };\n\n // List of SVG file names to process sequentially\n // const svgFiles = ['A_test.svg', 'B_test.svg', 'C_test.svg', 'D_test.svg', 'अ_test.svg', 'ट_test.svg', 'क_test.svg', 'ख_test.svg', 'ग_test.svg']; // Add more SVG file names as needed\n\n return (\n <Host class=\"trace\" id={this.id} style={style} aria-label={this.ariaLabel} aria-hidden={this.ariaHidden} tabindex={this.tabIndex}>\n <div id=\"svgContainer\"></div>\n </Host>\n );\n }\n}\n",".wrap {\n display: grid;\n grid-gap: 10px;\n grid-template-columns: repeat(auto-fill, minmax(186px, auto));\n}\n\n.wrap > * {\n padding: 10px;\n background-color: var(--child-bg-color, #f0f0f0);\n box-sizing: border-box;\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppWrap\n *\n * The `AppWrap` component acts as a flexible container that supports dynamic positioning, sizing, and layout.\n * The component can display its content as a grid and supports custom events like touch, match, and entry.\n * It allows for full customization via props like dimensions, background color, visibility, and z-index.\n */\n@Component({\n tag: 'app-wrap',\n styleUrl: 'app-wrap.css',\n shadow: false,\n})\nexport class AppWrap {\n /**\n * Unique identifier for the wrap element.\n */\n @Prop() id: string;\n\n /**\n * Value associated with the wrap element, typically used for internal logic or tracking.\n */\n @Prop() value: string;\n\n /**\n * The height of the wrap container (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the wrap container (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the wrap container (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the wrap container (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the wrap container relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color of the wrap container (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the wrap container, which can be used for conditional logic or specific styling.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Controls the visibility of the wrap container. If `true`, the container is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier of an audio file associated with the wrap container.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the wrap container is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs with the wrap container.\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the wrap container is entered (useful for animations or logic on entry).\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element representing this `app-wrap` component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that runs after the component is rendered in the DOM.\n * It initializes custom events based on the `type` of the wrap container.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles to position and size the wrap container, with grid layout applied\n const style = {\n height: this.height,\n width: this.width,\n top: this.y,\n left: this.x,\n display: this.visible ? 'grid' : 'none', // Use grid layout\n zIndex: this.z,\n backgroundColor: this.bgColor,\n };\n\n return (\n <Host\n class=\"wrap\"\n value={this.value}\n type={this.type}\n tabindex={this.tabIndex}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n {/* Slot for child elements */}\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"app-col.app-container.app-home.app-image.app-pos.app-random.app-root.app-row.app-shape.app-text.app-trace.app-wrap.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,SAAS,GAAG,gQAAgQ,CAAC;AACnR,qBAAe,SAAS;;MCgBX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6GjB,gBAAgB;QACdA,0BAAoB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;KAC1C;IAED,MAAM;;QAEJ,MAAM,KAAK,GAAG;YACZ,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,eAAe,EAAE,IAAI,CAAC,OAAO;YAC7B,GAAG,EAAE,IAAI,CAAC,CAAC;YACX,IAAI,EAAE,IAAI,CAAC,CAAC;YACZ,OAAO,EAAE,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,MAAM;YACvC,MAAM,EAAE,IAAI,CAAC,CAAC;SACf,CAAC;QAEF,QACEC,QAACC,UAAI,qDACH,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,KAAK,EAAC,KAAK,EACX,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,KAAK,EAAE,KAAK,gBACA,IAAI,CAAC,SAAS,iBACb,IAAI,CAAC,UAAU,EAC5B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,cAAc,EA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,iBACb,IAAI,CAAC,UAAU,EAC5B,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,EACvC,OAAO,EAAE,IAAI,CAAC,OAAO,IAGrBD,oEAAQ,CACH,EACP;KACH;;;;;;;;;;;;;;;;;;","names":["initEventsForElement","h","Host","SelectedValuesKey","DragSelectedMapKey","index","convertUrlToRelative","getAssetPath","TraceMode","triggerNextContainer"],"sources":["src/components/column/app-col.css?tag=app-col","src/components/column/AppCol.tsx","src/components/container/app-container.css?tag=app-container","src/components/container/AppContainer.tsx","src/index.css?tag=app-home","src/utils/css/animation.css?tag=app-home","src/components/home/app-home.css?tag=app-home","src/components/home/AppHome.tsx","src/components/image/app-image.css?tag=app-image","src/components/image/AppImage.tsx","src/components/position/app-pos.css?tag=app-pos","src/components/position/AppPos.tsx","src/components/random/app-random.css?tag=app-random","src/components/random/AppRandom.tsx","src/components/root/AppRoot.tsx","src/components/row/app-row.css?tag=app-row","src/components/row/AppRow.tsx","src/components/shape/app-shape.css?tag=app-shape","src/components/shape/AppShape.tsx","src/components/text/app-text.css?tag=app-text","src/components/text/AppText.tsx","src/components/trace/app-trace.css?tag=app-trace","src/components/trace/app-trace.tsx","src/components/wrap/app-wrap.css?tag=app-wrap","src/components/wrap/AppWrap.tsx"],"sourcesContent":[".col {\n /* position: absolute; */\n top: var(--y, 0);\n left: var(--x, 0);\n height: var(--height, 100%);\n width: var(--width, 100%);\n background-color: var(--bgColor, #eeeeee);\n /* position: relative; */\n padding: 15px;\n border-radius: 10px;\n display: flex;\n justify-content: space-around;\n flex-direction: column;\n align-items: center;\n}\n\n.col > * {\n /* position: relative; */\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppCol\n *\n * The `AppCol` component is a dynamic column-like UI element that can be\n * customized via various properties such as dimensions, position, visibility,\n * background color, and event handlers. It is designed to work within\n * containers (`app-container`) and can include child components like\n * `app-text`, `app-row`, etc.\n */\n@Component({\n tag: 'app-col',\n styleUrl: 'app-col.css',\n shadow: false,\n})\nexport class AppCol {\n /**\n * The unique identifier for the column component.\n */\n @Prop() id: string;\n\n /**\n * The value associated with the column component. Typically used for internal logic.\n */\n @Prop() value: string;\n\n /**\n * The height of the column component (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the column component (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * The x-coordinate (left position) of the column within its container (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * The y-coordinate (top position) of the column within its container (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * The z-index of the column to control stacking order.\n */\n @Prop() z: string;\n\n /**\n * The background color of the column (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the column, which can be used for styling or specific logic handling.\n */\n @Prop() type: string;\n\n /**\n * The tab index value, used to set the tab order of the column for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * A boolean that controls whether the column is visible (`true`) or hidden (`false`).\n */\n @Prop() visible: boolean;\n\n /**\n * Audio file URL or identifier for sound that will be associated with the column.\n */\n @Prop() audio: string;\n\n /**\n * Event handler for a touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler for a matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler for when the column is entered, which can be used to initiate specific behaviors on entry.\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element that represents this component.\n */\n @Element() el: HTMLElement;\n\n /**\n * This lifecycle hook is called after the component is rendered in the DOM.\n * It initializes events for the column based on the provided type.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles applied to the column, mainly for positioning and background.\n const style = {\n height: this.height,\n width: this.width,\n backgroundColor: this.bgColor,\n top: this.y,\n left: this.x,\n display: this.visible ? 'flex' : 'none',\n zIndex: this.z,\n };\n\n return (\n <Host\n id={this.id}\n class=\"col\"\n type={this.type}\n tabindex={this.tabIndex}\n value={this.value}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n <slot />\n </Host>\n );\n }\n}\n",".container {\n position: relative;\n height: 100%;\n width: 100%;\n background-color: var(--bgColor, #ffffff);\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppContainer\n *\n * The `AppContainer` component acts as a container for other elements. It scales responsively\n * based on the window size, adjusts background color, and provides various configurable properties\n * such as dimensions, positioning, visibility, and custom event handlers.\n */\n@Component({\n tag: 'app-container',\n styleUrl: 'app-container.css',\n shadow: false,\n})\nexport class AppContainer {\n /**\n * Unique identifier for the container.\n */\n @Prop() id: string;\n\n /**\n * Objective or purpose of the container. Can be used for internal logic or tracking.\n */\n @Prop() objective: string;\n\n /**\n * Value assigned to the container. This can be used for logic related to this component.\n */\n @Prop() value: string;\n\n /**\n * The height of the container (CSS value).\n */\n @Prop() height: string;\n\n /**\n * The width of the container (CSS value).\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the container.\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the container.\n */\n @Prop() y: string;\n\n /**\n * Z-index to control the stacking order of the container.\n */\n @Prop() z: string;\n\n /**\n * Background color of the container (CSS color value).\n */\n @Prop() bgColor: string;\n\n /**\n * Type of the container, which can be used for conditional logic or styling purposes.\n */\n @Prop() type: string;\n\n /**\n * TabIndex for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Visibility flag for the container. If `true`, the container is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier of an audio file associated with the container.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the container is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a specific match condition is met within the container.\n */\n @Prop() onMatch: string;\n @Prop() onWrong: string;\n @Prop() onIncorrectTouch: string;\n\n /**\n * Event handler triggered when the container is entered, useful for triggering animations or logic.\n */\n @Prop() onEntry: string;\n\n /**\n * Boolean that controls the playability of the game.\n */\n @Prop() canplay: boolean = true;\n\n /**\n * Base URL for the container.\n */\n @Prop() baseUrl: string = '';\n\n /**\n * Reference to the HTML element that represents this container component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Scales the container based on the window or screen size, maintaining the aspect ratio.\n * The container scales according to the minimum dimension of the screen.\n *\n * @param container The container element to be scaled.\n */\n scaleContainer(container: HTMLElement) {\n const widths = [window.innerWidth];\n const heights = [window.innerHeight];\n\n if (window.screen?.width) {\n widths.push(window.screen.width);\n heights.push(window.screen.height);\n }\n\n const width = Math.min(...widths);\n const height = document.documentElement.clientHeight;\n\n const scaleX = width / 1600; // Scale based on a reference width of 1600px\n const scaleY = height / 900; // Scale based on a reference height of 900px\n const scale = Math.min(scaleX, scaleY);\n\n // Center the container and apply scaling\n container.style.transform = `translate(-50%, -50%) scale(${scale})`;\n }\n\n /**\n * Lifecycle hook that runs after the component is loaded.\n * - It scales the container.\n * - It sets the background color of the body.\n * - Adds event listeners for `resize` and `load` to rescale the container on window size changes.\n */\n componentDidLoad() {\n this.scaleContainer(this.el);\n document.body.style.backgroundColor = this.bgColor;\n\n // Re-scale the container on window resize or load events\n window.addEventListener('resize', () => this.scaleContainer(this.el));\n window.addEventListener('load', () => this.scaleContainer(this.el));\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Define the styles for the container element\n const style = {\n backgroundColor: this.bgColor,\n width: '1600px', // Fixed width of the container\n height: '900px', // Fixed height of the container\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)', // Centering the container\n };\n console.log('🚀 ~ AppContainer ~ canplay:', this.canplay);\n\n return (\n <Host\n id=\"container\"\n tabindex={0}\n class=\"container\"\n objective={this.objective}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onIncorrectTouch={this.onIncorrectTouch}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onEntry={this.onEntry}\n baseUrl={this.baseUrl}\n >\n <slot />\n </Host>\n );\n }\n}\n","@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');\n\nbody {\n overflow: hidden;\n}\n\n","/* animations */\n\n@keyframes rightToPlace {\n from {\n transform: translateX(2000px);\n }\n to {\n left: 0;\n }\n}\n\n@keyframes placeToLeft {\n from {\n }\n to {\n transform: translateX(-2000px);\n }\n}\n\n@keyframes shake {\n 0% {\n transform: translateX(0);\n color: red;\n outline: 4px solid red;\n }\n 10% {\n transform: translateX(-5px);\n color: red;\n outline: 4px solid red;\n }\n 20% {\n transform: translateX(5px);\n color: red;\n outline: 4px solid red;\n }\n 30% {\n transform: translateX(-5px);\n color: red;\n outline: 4px solid red;\n }\n 40% {\n transform: translateX(5px);\n color: red;\n outline: 4px solid red;\n }\n 50% {\n transform: translateX(-5px);\n color: red;\n outline: 4px solid red;\n }\n 60% {\n transform: translateX(5px);\n color: red;\n outline: 4px solid red;\n }\n 70% {\n transform: translateX(-5px);\n color: red;\n outline: 4px solid red;\n }\n 80% {\n transform: translateX(5px);\n color: red;\n outline: 4px solid red;\n }\n 90% {\n transform: translateX(-5px);\n color: red;\n outline: 4px solid red;\n }\n 100% {\n transform: translateX(0);\n color: red;\n outline: 4px solid red;\n }\n}\n\n@keyframes fallAndBounce {\n 0% {\n transform: translateY(-1000px);\n }\n 25%{\n transform: translateY(0px);\n }\n 50% {\n transform: translateY(-200px);\n }\n 75% {\n transform: translateY(0);\n }\n 90% {\n transform: translateY(-100px);\n }\n 100% {\n transform: translateY(0);\n }\n}\n",".snackbar {\n visibility: visible;\n min-width: 250px;\n background-color: #333;\n color: #fff;\n text-align: center;\n border-radius: 2px;\n padding: 16px;\n position: fixed;\n z-index: 1;\n bottom: 30px;\n left: 50%;\n transform: translateX(-50%);\n font-size: 17px;\n}\n\n.dot-container {\n text-align: center;\n position: fixed;\n z-index: 1;\n width: fit-content;\n top: 1%;\n left: 50%;\n transform: translate(-50%);\n}\n\n.dot {\n height: 15px;\n width: 15px;\n margin: 0 4px;\n background-color: #bbb;\n border-radius: 50%;\n display: inline-block;\n transition: background-color 0.3s;\n cursor: pointer;\n}\n\n.dot.completed {\n background-color: grey;\n}\n\n.dot.current {\n background-color: green;\n}\n\n.dot:not(.completed):not(.current) {\n background-color: #bbb;\n}\n","import { Component, Prop, h, State } from '@stencil/core';\nimport { DragSelectedMapKey, SelectedValuesKey } from '../../utils/constants';\n\n/**\n * @component AppHome\n *\n * The `AppHome` component renders a series of containers parsed from the provided XML data.\n * It handles navigation between containers, resets the state on page reloads or container transitions,\n * and displays progress indicators (dots) for each container.\n */\n@Component({\n tag: 'app-home',\n shadow: false,\n styleUrls: ['./../../index.css', '../../utils/css/animation.css', './app-home.css'],\n})\nexport class AppHome {\n /**\n * XML data passed to the component, which is parsed and used to render various containers.\n */\n @Prop() xmlData: string;\n\n /**\n * Initial index of the container being displayed.\n */\n @Prop() initialIndex: number = 0;\n\n /**\n * Boolean that controls the playability of the game.\n */\n @Prop() canplay: boolean = true;\n\n /**\n * Base URL for the containers.\n */\n @Prop() baseUrl: string = '';\n\n /**\n * Current index of the container being displayed.\n */\n @State() currentContainerIndex: number = this.initialIndex;\n\n /**\n * Boolean that controls the display of the completion message after all containers have been viewed.\n */\n @State() showCompletionMessage: boolean = false;\n\n /**\n * Array that stores the parsed containers from the XML data.\n */\n @State() containers: any[] = [];\n\n /**\n * Event handler for transitioning to the next container in the sequence.\n * If the last container is reached, it shows a completion message.\n */\n nextContainer = (index?: number | undefined) => {\n if (index != undefined && index == this.currentContainerIndex) return;\n // Clear selected values from localStorage on container transition\n localStorage.removeItem(SelectedValuesKey);\n localStorage.removeItem(DragSelectedMapKey);\n\n if (index != undefined && index < this.containers.length) {\n // Move to the next container\n this.currentContainerIndex = index;\n window.dispatchEvent(new CustomEvent('activityChange', { detail: { index: this.currentContainerIndex } }));\n } else if (this.currentContainerIndex < this.containers.length - 1) {\n // Move to the next container\n this.currentContainerIndex++;\n window.dispatchEvent(new CustomEvent('activityChange', { detail: { index: this.currentContainerIndex } }));\n } else {\n // Show the completion message if all containers have been viewed\n this.showCompletionMessage = true;\n const event = new CustomEvent('gameCompleted');\n window.dispatchEvent(event);\n\n // Hide the completion message after 3 seconds\n setTimeout(() => {\n this.showCompletionMessage = false;\n }, 3000);\n }\n\n // Reset the containers array to trigger a re-render\n this.containers = [...this.containers];\n };\n\n /**\n * Lifecycle method that runs before the component is loaded. It sets up event listeners for transitioning\n * between containers and parses the XML data into containers.\n */\n componentWillLoad() {\n // Listen for 'nextContainer' event to transition between containers\n window.addEventListener('nextContainer', () => {\n this.nextContainer();\n });\n\n window.addEventListener('changeContainer', (e: any) => {\n this.nextContainer(e.detail.index);\n });\n\n // Parse the provided XML data\n this.parseXMLData(this.xmlData);\n\n // Remove stored values in localStorage when the page is about to be unloaded\n window.addEventListener('beforeunload', () => {\n localStorage.removeItem(SelectedValuesKey);\n localStorage.removeItem(DragSelectedMapKey);\n });\n }\n\n /**\n * Lifecycle method that cleans up event listeners when the component is removed from the DOM.\n */\n disconnectedCallback() {\n window.removeEventListener('nextContainer', () => {\n this.nextContainer();\n });\n window.removeEventListener('changeContainer', (e: any) => {\n this.nextContainer(e.detail.index);\n });\n }\n\n /**\n * Parses the provided XML string into an XML DOM object and extracts the containers from it.\n *\n * @param xmlData - The XML data as a string.\n */\n private parseXMLData(xmlData: string) {\n if (xmlData) {\n const parser = new DOMParser();\n const xmlDoc = parser.parseFromString(xmlData, 'text/xml');\n const rootElement = xmlDoc.documentElement;\n\n // Parse containers from the root XML element\n this.parseContainers(rootElement);\n }\n }\n\n /**\n * Recursively parses an XML element and its children, converting them into corresponding Stencil components.\n *\n * @param element - The XML element to parse.\n * @returns The corresponding Stencil component with parsed props and children.\n */\n private parseElement(element: Element): any {\n const tagName = element.nodeName.toLowerCase();\n const props: { [key: string]: any } = {};\n\n // Extract attributes from the element and map them to props\n Array.from(element.attributes).forEach(attr => {\n props[attr.name] = attr.value;\n });\n\n // Recursively parse child elements\n const children = Array.from(element.childNodes)\n .map(child => {\n if (child.nodeType === 1) {\n return this.parseElement(child as Element);\n } else if (child.nodeType === 3 && child.textContent.trim() !== '') {\n return child.textContent;\n }\n return null;\n })\n .filter(Boolean);\n\n // Map XML tags to Stencil components\n const componentMapping = {\n 'app-container': (\n <app-container {...props} canplay={this.canplay} baseUrl={this.baseUrl}>\n {children}\n </app-container>\n ),\n 'app-col': <app-col {...props}>{children}</app-col>,\n 'app-trace': <app-trace {...props}>{children}</app-trace>,\n 'app-image': <app-image {...props}>{children}</app-image>,\n 'app-row': <app-row {...props}>{children}</app-row>,\n 'app-text': <app-text {...props}>{children}</app-text>,\n 'app-pos': <app-pos {...props}>{children}</app-pos>,\n 'app-shape': <app-shape {...props}>{children}</app-shape>,\n 'app-wrap': <app-wrap {...props}>{children}</app-wrap>,\n 'app-random': <app-random {...props}>{children}</app-random>,\n };\n\n // If the tag is known, return the corresponding Stencil component, otherwise log a warning\n if (componentMapping[tagName]) {\n return componentMapping[tagName];\n } else {\n console.warn(`Unknown tag: ${tagName}`);\n return null;\n }\n }\n\n /**\n * Parses the `app-container` elements from the XML root element and stores them in the `containers` state.\n *\n * @param rootElement - The root element of the parsed XML document.\n */\n private parseContainers(rootElement: Element) {\n const containers = [];\n const containerElements = rootElement.querySelectorAll('app-container');\n\n // Parse each container and add it to the array\n containerElements.forEach(container => {\n const parsedElement = this.parseElement(container);\n if (parsedElement) {\n containers.push(parsedElement);\n }\n });\n\n this.containers = containers;\n }\n\n /**\n * Renders navigation dots for each container, indicating the progress of the user.\n * Clicking on a dot allows the user to jump to a specific container.\n */\n private renderDots() {\n return (\n <div id=\"dot-indicator\" class=\"dot-container\">\n {this.containers.map((_, index) => (\n <span\n class={`dot ${index < this.currentContainerIndex ? 'completed' : index === this.currentContainerIndex ? 'current' : ''}`}\n onClick={() => this.jumpToContainer(index)}\n ></span>\n ))}\n </div>\n );\n }\n\n /**\n * Jumps to a specific container based on the index of the dot clicked.\n *\n * @param index - The index of the container to jump to.\n */\n private jumpToContainer(index: number) {\n this.nextContainer(index);\n // this.currentContainerIndex = index;\n // this.containers = [...this.containers]; // Trigger re-render\n }\n\n render() {\n if (!this.xmlData) {\n // If no XML data is provided, prompt the user to provide it\n return <div>Please provide XML data.</div>;\n }\n\n return (\n <div>\n {/* Render the current container */}\n <div key={this.currentContainerIndex}>{this.containers[this.currentContainerIndex]}</div>\n\n {/* Render navigation dots below the container */}\n {this.renderDots()}\n\n {/* Show completion message if all containers have been displayed */}\n {this.showCompletionMessage && <div class=\"snackbar\">All containers have been displayed!</div>}\n </div>\n );\n }\n}\n",".image {\n user-select: none;\n -webkit-user-drag: none;\n object-fit: contain;\n max-width: 100%;\n max-height: 100%;\n aspect-ratio: 1 / 1; /* Ensures the image retains a 1:1 aspect ratio\n /* The image will scale to fit within its container, keeping the aspect ratio */\n}\n","import { Component, Prop, h, Element, Host, getAssetPath } from '@stencil/core';\nimport { convertUrlToRelative, initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppImage\n *\n * The `AppImage` component displays an image element within a container. It is a versatile\n * component that allows dynamic sizing, positioning, visibility control, and event handling.\n * The component is designed to work in different types of environments, supporting custom\n * events such as touch, match, and entry events.\n */\n@Component({\n tag: 'app-image',\n styleUrl: 'app-image.css',\n shadow: false,\n})\nexport class AppImage {\n /**\n * The value associated with the image. Typically used for internal logic or identification.\n */\n @Prop() value: string;\n\n /**\n * The height of the image component (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the image component (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the image within its container (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the image within its container (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the image relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color for the container of the image (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the image component, which can be used for conditional logic or styling purposes.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Controls the visibility of the image component. If `true`, the image is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier of an audio file associated with the image.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the image is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs.\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the image is entered (useful for animations or logic on entry).\n */\n @Prop() onEntry: string;\n\n /**\n * The source URL of the image to be displayed.\n */\n @Prop() src: string;\n\n /**\n * Reference to the HTML element that represents this image component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle method that runs after the component has been loaded into the DOM.\n * It initializes custom events based on the `type` of the image component.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles for the image, including dimensions, positioning, and visibility\n const style = {\n height: this.height,\n width: this.width,\n backgroundColor: this.bgColor,\n top: this.y,\n left: this.x,\n zIndex: this.z,\n display: this.visible ? 'flex' : 'none',\n alignItems: 'center', // Vertically center the image\n justifyContent: 'center', // Horizontally center the image\n };\n\n return (\n <Host\n type={this.type}\n tabindex={this.tabIndex}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n value={this.value}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n <img class=\"image\" src={convertUrlToRelative(this.src)} alt=\"\" style={style} />\n </Host>\n );\n }\n}\n",".pos {\n top: var(--y, 0);\n left: var(--x, 0);\n height: var(--height, 100%);\n width: var(--width, 100%);\n background-color: var(--bgColor, #eeeeee);\n display: flex;\n justify-content: space-around;\n flex-direction: column;\n position: fixed;\n \n}\n\n.pos > * {\n position: absolute;\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppPos\n *\n * The `AppPos` component is used to position a block-level element with dynamic styling and event handling.\n * It supports positioning with `x` and `y` coordinates, sizing with `height` and `width`, and custom\n * events for interaction such as touch, match, and entry events.\n */\n@Component({\n tag: 'app-pos',\n styleUrl: 'app-pos.css',\n shadow: false,\n})\nexport class AppPos {\n /**\n * Unique identifier for the positional element.\n */\n @Prop() id: string;\n\n /**\n * Value assigned to the component, often used for internal logic or data tracking.\n */\n @Prop() value: string;\n\n /**\n * The height of the component (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the component (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the component (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the component (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the element relative to others.\n */\n @Prop() z: string;\n\n /**\n * Background color of the component (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * The type of the component, used for conditional logic or specific styles.\n */\n @Prop() type: string;\n\n /**\n * Tab index to support keyboard navigation within the component.\n */\n @Prop() tabIndex: number;\n\n /**\n * Visibility flag to control whether the element is displayed (`true`) or hidden (`false`).\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier for an audio file associated with the component.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the component is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs (e.g., custom logic for interactions).\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the component is entered, often used to trigger animations or custom logic.\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element that represents this `app-pos` component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that is called after the component has been rendered in the DOM.\n * It initializes custom events based on the `type` of the component.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles to position and size the component\n const style = {\n height: this.height,\n width: this.width,\n backgroundColor: this.bgColor,\n top: this.y,\n left: this.x,\n zIndex: this.z,\n display: this.visible ? 'block' : 'none', // Toggle visibility\n };\n\n return (\n <Host\n id={this.id}\n class=\"pos\"\n type={this.type}\n tabindex={this.tabIndex}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n value={this.value}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n {/* Slot for child elements */}\n <slot />\n </Host>\n );\n }\n}\n",".random {\n display: flex;\n justify-content: space-between;\n align-items: center;\n position: absolute; /* Container is now relative */\n}\n\n.random > * {\n position: absolute;\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\n\n/**\n * @component AppRandom\n *\n * The `AppRandom` component randomly positions its child elements within its container.\n * This component can be used when a random layout of elements is required. It allows\n * full customization via props such as dimensions, positioning, visibility, and event handling.\n */\n@Component({\n tag: 'app-random',\n styleUrl: 'app-random.css',\n shadow: false,\n})\nexport class AppRandom {\n /**\n * Unique identifier for the random container.\n */\n @Prop() id: string;\n\n /**\n * Value associated with the component, often used for internal logic.\n */\n @Prop() value: string;\n\n /**\n * The height of the container (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the container (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the container (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the container (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the container relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color of the container (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * The type of the component, used for conditional logic or specific styling.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Controls the visibility of the container. If `true`, the container is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier for an audio file associated with the component.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the component is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs.\n */\n @Prop() onMatch: string;\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the component is entered (useful for animations or logic on entry).\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element representing this component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that runs after the component is rendered in the DOM.\n * It randomly positions all child elements within the container using CSS `top` and `left` percentages.\n */\n componentDidLoad() {\n // Select all direct child elements of the component\n const slotElements = this.el.querySelectorAll('.random > *');\n\n // Iterate over each child and apply random positions\n slotElements.forEach((child: HTMLElement) => {\n const randomTop = Math.random() * 100; // Random value between 0 and 100 for vertical position\n const randomLeft = Math.random() * 100; // Random value between 0 and 100 for horizontal position\n\n child.style.top = `${randomTop}%`;\n child.style.left = `${randomLeft}%`;\n });\n }\n\n render() {\n // Inline styles for the container, including dimensions, positioning, and visibility\n const style = {\n height: this.height,\n width: this.width,\n top: this.y,\n left: this.x,\n display: this.visible ? 'block' : 'none', // Toggle visibility\n zIndex: this.z,\n backgroundColor: this.bgColor,\n };\n\n return (\n <Host\n class=\"random\"\n type={this.type}\n tabindex={this.tabIndex}\n value={this.value}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n {/* Slot to render child elements that will be randomly positioned */}\n <slot />\n </Host>\n );\n }\n}\n","import { Component, h, State, Prop, getAssetPath } from '@stencil/core';\n\n/**\n * @component AppRoot\n *\n * The `AppRoot` component is the main application entry point. It loads an external XML data file\n * from a specified URL or asset path and passes it down to the `app-home` component for rendering.\n * The XML path can be configured via a prop.\n */\n@Component({\n tag: 'app-root',\n shadow: false,\n assetsDirs: ['assets'], // Specifies the directory for static assets\n})\nexport class AppRoot {\n /**\n * Prop to hold the XML file path or URL. This can be a relative path or an external URL.\n */\n @Prop() xmlPath: string;\n\n /**\n * Initial index of the container being displayed.\n */\n @Prop() initialIndex: number = 0;\n\n /**\n * Boolean that controls the playability of the game.\n */\n @Prop() canplay: boolean = true;\n\n /**\n * Base URL for the containers.\n */\n @Prop() baseUrl: string = '';\n\n /**\n * State variable to hold the XML data fetched from the specified path or URL.\n */\n @State() xmlData: string;\n\n /**\n * Lifecycle method that runs before the component is loaded.\n * It fetches the XML data from the specified path or URL and sets it to the component's state.\n */\n async componentWillLoad() {\n // Validate the xmlPath prop\n // if (!this.xmlPath) {\n // console.error('XML path is not provided.');\n // return;\n // }\n const xmlPath = this.xmlPath ?? this.baseUrl + '/index.xml';\n console.log('🚀 ~ AppRoot ~ componentWillLoad ~ this.baseUrl:', this.baseUrl);\n console.log('🚀 ~ AppRoot ~ componentWillLoad ~ this.xmlPath:', this.xmlPath);\n console.log('🚀 ~ AppRoot ~ componentWillLoad ~ xmlPath:', xmlPath);\n // Fetch the XML data\n try {\n const resolvedPath = xmlPath.startsWith('http')\n ? xmlPath // Use the provided URL if it's an HTTP/HTTPS link\n : getAssetPath(xmlPath); // Otherwise, resolve it as an asset path\n\n const response = await fetch(resolvedPath);\n if (!response.ok) {\n throw new Error(`Failed to fetch XML data: ${response.statusText}`);\n }\n const data = await response.text();\n\n // Store the XML data in the component's state\n this.xmlData = data;\n } catch (error) {\n console.error('Error fetching XML data:', error);\n this.xmlData = null;\n }\n }\n\n render() {\n // Show a loading message until the XML data is fetched\n if (this.xmlData === undefined) {\n return <div>Loading...</div>;\n }\n\n // Show an error message if the XML data could not be fetched\n if (this.xmlData === null) {\n return <div>Error loading XML data. Please check the path or URL.</div>;\n }\n\n // Once the XML data is loaded, pass it to the `app-home` component\n return <app-home initialIndex={this.initialIndex} canplay={this.canplay} xmlData={this.xmlData} baseUrl={this.baseUrl}></app-home>;\n }\n}\n",".row {\n display: flex;\n justify-content: space-between;\n align-items: center;\n /* position: absolute; */\n}\n\n.row > * {\n /* position: relative; */\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppRow\n *\n * The `AppRow` component is used to create a flexible row element that can contain other elements.\n * It supports dynamic positioning, sizing, visibility control, and custom events for interaction.\n */\n@Component({\n tag: 'app-row',\n styleUrl: 'app-row.css',\n shadow: false,\n})\nexport class AppRow {\n /**\n * Value associated with the row, typically used for internal logic or data.\n */\n @Prop() value: string;\n\n /**\n * The height of the row (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the row (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the row (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the row (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the row relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color of the row (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the row, used for conditional logic or specific styling.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Controls the visibility of the row. If `true`, the row is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier of an audio file associated with the row.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the row is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs within the row.\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the row is entered, often used for triggering animations or custom logic.\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element representing this `app-row` component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that runs after the component is loaded into the DOM.\n * It initializes custom events based on the `type` of the row component.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles to position and size the row component\n const style = {\n height: this.height,\n width: this.width,\n top: this.y,\n left: this.x,\n display: this.visible ? 'flex' : 'none', // Flexbox for row layout\n zIndex: this.z,\n backgroundColor: this.bgColor, // Apply background color if provided\n };\n\n return (\n <Host\n class=\"row\"\n type={this.type}\n tabindex={this.tabIndex}\n value={this.value}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n {/* Slot for child elements */}\n <slot />\n </Host>\n );\n }\n}\n",".shape {\n position: absolute;\n top: var(--y);\n left: var(--x);\n display: var(--display);\n z-index: var(--z);\n}\n\n.rectangle {\n border-radius: 0;\n}\n\n.circle {\n width: var(--width); /* Ensures width is always used for both dimensions */\n height: var(--width); /* Make height equal to width for a perfect circle */\n border-radius: 50%; /* 50% border-radius for a perfect circle */\n background-color: var(--bgColor);\n}\n\n.ellipse {\n width: var(--width);\n height: var(--height);\n border-radius: 50%; /* Create an ellipse shape */\n background-color: var(--bgColor);\n}\n\n/* other shapes */\n\n.triangle {\n width: var(--triangleWidth);\n height: var(--triangleHeight);\n background-color: var(--bgColor);\n clip-path: polygon(50% 0%, 100% 100%, 0% 100%);\n}\n\n.rightTriangle {\n width: var(--triangleWidth);\n height: var(--triangleHeight);\n background-color: var(--bgColor);\n clip-path: polygon(100% 0%, 100% 100%, 0% 100%);\n}\n\n.leftTriangle {\n width: var(--triangleWidth);\n height: var(--triangleHeight);\n background-color: var(--triangleBgColor);\n clip-path: polygon(0% 0%, 100% 100%, 0% 100%);\n}\n\n.parallelogram {\n width: var(--paralleWidth);\n height: var(--paralleHeight);\n transform: skew(20deg);\n}\n\n.star {\n width: var(--starWidth);\n height: var(--starHeight);\n background-color: var(--starBgColor);\n clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);\n}\n\n.pentagon {\n width: var(--pentagonWidth);\n height: var(--pentagonHeight);\n background-color: var(--pentagonBgColor);\n clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);\n}\n\n.heptagon {\n width: var(--heptagonWidth);\n height: var(--heptagonHeight);\n background-color: var(--heptagonBgColor);\n clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);\n}\n\n.octagon {\n width: var(--octagonWidth);\n height: var(--octagonHeight);\n background-color: var(--octagonBgColor);\n clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);\n}\n\n.rhombus {\n width: var(--rhombusWidth);\n height: var(--rhombusHeight);\n background-color: var(--rhombusBgColor);\n clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);\n}\n\n.heart {\n height: var(--heartHeight);\n width: var(--heartWidth);\n border-image: radial-gradient(var(--heartBgColor) 69%, #0000 70%) 84.5%/50%;\n clip-path: polygon(-41% 0, 50% 91%, 141% 0);\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppShape\n *\n * The `AppShape` component is used to display various types of shapes like rectangles, circles, or polygons.\n * The shape's appearance is dynamically controlled by props such as dimensions, position, visibility, and the type of shape.\n * Additionally, it supports custom events for interaction like touch, match, and entry.\n */\n@Component({\n tag: 'app-shape',\n styleUrl: 'app-shape.css',\n shadow: false,\n})\nexport class AppShape {\n /**\n * Unique identifier for the shape element.\n */\n @Prop() id: string;\n\n /**\n * Value associated with the shape, typically used for internal logic or tracking.\n */\n @Prop() value: string;\n\n /**\n * The height of the shape (CSS value, e.g., '100px', '50%').\n * This is ignored for polygons.\n */\n @Prop() height: string;\n\n /**\n * The width of the shape (CSS value, e.g., '100px', '50%').\n * This is ignored for polygons.\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the shape (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the shape (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the shape relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color of the shape (CSS color value, e.g., '#FFFFFF', 'blue').\n * This is ignored for polygons.\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the shape, which can be used for conditional logic or specific styling.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Type of shape to render (e.g., 'circle', 'rectangle', 'polygon').\n */\n @Prop() shapeType: string;\n\n /**\n * Controls the visibility of the shape. If `true`, the shape is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier for an audio file associated with the shape.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the shape is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs with the shape.\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the shape is entered (useful for animations or logic on entry).\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element representing this `app-shape` component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that runs after the component is loaded into the DOM.\n * It initializes custom events based on the `type` of the shape component.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles to position and size the shape component\n const style = {\n height: this.shapeType !== 'polygon' ? this.height : undefined, // Set height unless it's a polygon\n width: this.shapeType !== 'polygon' ? this.width : undefined, // Set width unless it's a polygon\n top: this.y,\n left: this.x,\n display: this.visible ? 'block' : 'none', // Toggle visibility\n zIndex: this.z,\n backgroundColor: this.shapeType !== 'polygon' ? this.bgColor : 'transparent', // Apply background only if not a polygon\n };\n\n return (\n <Host\n class={`shape ${this.shapeType}`} // Apply shape-specific class\n value={this.value}\n type={this.type}\n tabindex={this.tabIndex}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n {/* Slot for any child elements */}\n </Host>\n );\n }\n}\n",".text {\n background-color: #fff;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n transition: background-color 0.3s ease;\n user-select: none;\n align-items: center;\n justify-content: center;\n text-align: center;\n border-radius: 8px;\n color: #333;\n cursor: pointer;\n}\n\n.text:hover {\n background-color: #f0f0f0;\n}\n","import { Component, Prop, h, Element, Host } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppText\n *\n * The `AppText` component is used to display text with customizable styling.\n * It allows you to set the font, size, color, and background color, along with\n * positioning and visibility control. The component supports custom events like touch, match, and entry.\n */\n@Component({\n tag: 'app-text',\n styleUrl: 'app-text.css',\n shadow: false,\n})\nexport class AppText {\n /**\n * Unique identifier for the text element.\n */\n @Prop() id: string;\n\n /**\n * Value associated with the text element, typically used for internal logic or tracking.\n */\n @Prop() value: string;\n\n /**\n * The string of text to be displayed in the component.\n */\n @Prop() string: string;\n\n /**\n * Font family for the text (CSS value, e.g., 'Arial', 'Times New Roman').\n */\n @Prop() font: string;\n\n /**\n * Font size for the text (CSS value, e.g., '16px', '1.5em').\n */\n @Prop() fontSize: string;\n\n /**\n * Font color for the text (CSS color value, e.g., '#000000', 'red').\n */\n @Prop() fontColor: string;\n\n /**\n * When set to `true`, the text will highlight while being spoken, typically used for accessibility.\n */\n @Prop() highlightWhileSpeaking: boolean;\n\n /**\n * Height of the text component (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * Width of the text component (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the text component (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the text component (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the text component relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color of the text component (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the component, which can be used for conditional logic or specific styling.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Controls the visibility of the text component. If `true`, the text is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier for an audio file associated with the text component.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the text component is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs with the text component.\n */\n @Prop() onMatch: string;\n \n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the text component is entered (useful for animations or logic on entry).\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element representing this `app-text` component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that runs after the component is rendered in the DOM.\n * It initializes custom events based on the `type` of the text component.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles to customize the appearance and positioning of the text component\n const style = {\n height: this.height,\n width: this.width,\n backgroundColor: this.bgColor,\n top: this.y,\n left: this.x,\n zIndex: this.z,\n fontSize: this.fontSize,\n fontFamily: this.font,\n color: this.fontColor,\n display: this.visible ? 'flex' : 'none', // Show or hide based on visibility prop\n };\n\n return (\n <Host\n class=\"text\"\n value={this.value}\n type={this.type}\n tabindex={this.tabIndex}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n id={this.id}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n >\n {this.string}\n </Host>\n );\n }\n}\n",":host {\n display: block;\n position: relative;\n}\n\n#svgContainer {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 50px; /* Leave space for controls */\n display: flex;\n justify-content: center;\n align-items: center;\n overflow: hidden;\n}\n\nsvg {\n width: 100%;\n height: 100%;\n max-height: calc(100vh - 50px);\n /* border: 1px solid black; */\n touch-action: none;\n}\n\n#draggableCircle {\n cursor: pointer;\n fill: red;\n transition: fill 0.2s, r 0.2s;\n}\n\n.blindTracing {\n stroke: none !important;\n}\n\n.blindFreeTrace {\n stroke: none !important;\n}\n\n.hovered {\n cursor: grab;\n fill: darkred;\n}\n\n#controls {\n position: fixed;\n bottom: 0;\n left: 0;\n right: 0;\n display: flex;\n justify-content: space-between;\n padding: 10px;\n background-color: #f0f0f0;\n border-top: 1px solid #ccc;\n}\n\nbutton {\n padding: 10px;\n font-size: 16px;\n}\n\n@media (max-width: 600px) {\n button {\n padding: 8px;\n font-size: 14px;\n }\n}\n.trace-path-green {\n stroke: green !important;\n}\n\n","import { Component, Prop, h, Host, State } from '@stencil/core';\nimport { triggerNextContainer } from '../../utils/utils';\nimport { TraceMode } from '../../utils/constants';\n\n// Enum for different tracing modes\n\n@Component({\n tag: 'app-trace',\n styleUrl: 'app-trace.css',\n shadow: false,\n assetsDirs: ['svg'],\n})\nexport class AppTrace {\n /**\n * Various configuration properties for `app-trace`\n */\n /**\n * Unique identifier for this `app-trace` component instance.\n */\n @Prop() id: string;\n\n /**\n * Source URL or path for the SVG file used in this component.\n */\n @Prop() svgSource: string;\n\n /**\n * A custom string value associated with the component for additional data or identification.\n */\n @Prop() value: string;\n\n /**\n * Specifies the height of the component container, accepts any valid CSS height value (e.g., `\"100px\"`, `\"50%\"`).\n */\n @Prop() height: string;\n\n /**\n * Specifies the width of the component container, accepts any valid CSS width value (e.g., `\"100px\"`, `\"50%\"`).\n */\n @Prop() width: string;\n\n /**\n * Defines the x-coordinate position (left offset) of the component container, using any valid CSS `left` value (e.g., `\"10px\"`, `\"5%\"`).\n */\n @Prop() x: string;\n\n /**\n * Defines the y-coordinate position (top offset) of the component container, using any valid CSS `top` value (e.g., `\"10px\"`, `\"5%\"`).\n */\n @Prop() y: string;\n\n /**\n * Sets the z-index of the component, controlling its stacking order on the page.\n */\n @Prop() z: string;\n\n /**\n * Accessible label for screen readers, providing a textual description of the component's purpose.\n */\n @Prop() ariaLabel: string;\n\n /**\n * Controls visibility for assistive technologies. If `\"true\"`, the component is hidden from screen readers.\n */\n @Prop() ariaHidden: string;\n\n /**\n * Sets the tab order of the component within the page, enabling keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Mode for the tracing interaction, defining how users interact with the SVG paths.\n * Options may include `\"noFlow\"`, `\"showFlow\"`, `\"freeTrace\"`, `\"blindTracing\"`, and `\"blindFreeTrace\"`.\n */\n @Prop() mode: string;\n\n // @Element() el!: HTMLElement;\n\n @State() fileIndex: number = -1;\n @State() isDragging: boolean = false;\n @State() activePointerId: number | null = null;\n\n // MODES = ['noFlow', 'showFlow', 'freeTrace', 'blindTracing', 'blindFreeTrace'];\n\n // Handle the pointermove event with optimizations\n // Update the path trace as the red circle moves\n async initializeSVG() {\n let state = {\n fileIndex: -1,\n currentPathIndex: 0,\n lastLength: 0,\n totalPathLength: 0,\n isDragging: false,\n circle: null as SVGCircleElement | null,\n paths: [] as SVGGeometryElement[],\n svg: null as SVGSVGElement | null,\n proximityThreshold: 100, // General proximity threshold\n freeTraceProximityThreshold: 50, // Reduced proximity threshold for free trace\n rafId: null as number | null,\n pointerMoveEvent: null as PointerEvent | null,\n activePointerId: null as number | null,\n mode: this.mode,\n flowMarkers: [] as SVGPolygonElement[],\n freeTraceLines: [] as SVGPathElement[],\n };\n\n await this.loadAnotherSVG(state, true); // Load the first SVG\n }\n\n componentWillLoad() {\n this.initializeSVG();\n }\n // Fetch the SVG file asynchronously\n async fetchSVG(url: string): Promise<string> {\n const response = await fetch(url);\n if (!response.ok) {\n throw new Error(`Failed to fetch SVG (${url}): ${response.statusText}`);\n }\n return await response.text();\n }\n\n // to calculate the bounding box of all paths\n calculateBoundingBox(paths: SVGGeometryElement[], padding = 22) {\n let minX = Infinity,\n minY = Infinity,\n maxX = -Infinity,\n maxY = -Infinity;\n paths.forEach(path => {\n const length = path.getTotalLength();\n const numPoints = 100; // Number of points to sample along the path\n for (let i = 0; i <= numPoints; i++) {\n const point = path.getPointAtLength((i / numPoints) * length);\n if (point.x < minX) minX = point.x;\n if (point.y < minY) minY = point.y;\n if (point.x > maxX) maxX = point.x;\n if (point.y > maxY) maxY = point.y;\n }\n });\n // Apply padding\n minX -= padding;\n minY -= padding;\n maxX += padding;\n maxY += padding;\n return { minX, minY, maxX, maxY };\n }\n\n // Insert the fetched SVG into the container and adjust viewBox\n insertSVG(svgText: string) {\n const svgContainer = document.getElementById('svgContainer') as HTMLElement;\n svgContainer.innerHTML = svgText;\n\n // After inserting, get the SVG element\n const svgElement = svgContainer.querySelector('svg') as SVGSVGElement;\n\n // Remove the width and height attributes from the SVG element\n svgElement.removeAttribute('width');\n svgElement.removeAttribute('height');\n\n // Get all paths\n const paths = svgElement.querySelectorAll('path, line') as NodeListOf<SVGGeometryElement>;\n\n // Calculate bounding box\n const bbox = this.calculateBoundingBox(Array.from(paths));\n\n // Set the viewBox to the bounding box\n const viewBoxWidth = bbox.maxX - bbox.minX;\n const viewBoxHeight = bbox.maxY - bbox.minY;\n svgElement.setAttribute('viewBox', `${bbox.minX} ${bbox.minY} ${viewBoxWidth} ${viewBoxHeight}`);\n }\n\n // Retrieve the SVG element from the container\n getSVGElement() {\n const svgContainer = document.getElementById('svgContainer') as HTMLElement;\n return svgContainer.querySelector('svg');\n }\n\n // Get all path and line elements from the SVG\n getPaths(svg: SVGSVGElement) {\n return Array.from(svg.querySelectorAll('path, line'));\n }\n\n // Create flow markers along the path to guide the user\n createFlowMarkersForPath(path: SVGGeometryElement, markerCount = 10) {\n const totalLength = path.getTotalLength();\n const interval = totalLength / (markerCount + 1); // Space markers evenly\n const markers: SVGPolygonElement[] = [];\n\n for (let i = 1; i <= markerCount; i++) {\n const point = path.getPointAtLength(i * interval);\n const nextPoint = path.getPointAtLength((i + 0.5) * interval); // Slightly ahead point for direction\n\n // Create an arrow marker\n const angle = Math.atan2(nextPoint.y - point.y, nextPoint.x - point.x);\n const arrowMarker = document.createElementNS('http://www.w3.org/2000/svg', 'polygon');\n arrowMarker.setAttribute('points', '-5,-5 0,0 -5,5');\n arrowMarker.setAttribute('fill', 'blue');\n arrowMarker.setAttribute('transform', `translate(${point.x},${point.y}) rotate(${(angle * 180) / Math.PI})`);\n arrowMarker.setAttribute('class', 'flow-indicator');\n markers.push(arrowMarker);\n path.parentNode?.appendChild(arrowMarker); // Append to the same SVG container\n }\n return markers;\n }\n\n // Show or hide flow indicators based on mode\n updateFlowIndicators(state: any) {\n const indicators = state.svg.querySelectorAll('.flow-indicator');\n indicators.forEach(indicator => {\n if (state.mode === TraceMode.NoFlow) {\n (indicator as HTMLElement).style.display = 'none';\n } else if (state.mode === TraceMode.ShowFlow) {\n (indicator as HTMLElement).style.display = 'block';\n }\n });\n }\n\n // Create a new path element for the drawing effect\n setupDrawingPath(state: any) {\n state.paths.forEach((path: any, index: number) => {\n const pathLength = path.getTotalLength();\n\n // Create green path for tracing effect\n const greenPath = path.cloneNode() as SVGPathElement;\n greenPath.setAttribute('stroke', 'green');\n greenPath.setAttribute('stroke-width', '13');\n greenPath.setAttribute('stroke-dasharray', pathLength.toString());\n greenPath.setAttribute('stroke-dashoffset', pathLength.toString()); // Hidden initially\n path.parentNode.appendChild(greenPath, path);\n\n path.setAttribute('class', 'trace-path'); // Add class for easier reference\n greenPath.setAttribute('class', 'trace-path-green'); // Add class for easier reference\n\n (path as any).greenPath = greenPath;\n path.classList.add(state.mode);\n\n // Conditionally hide or show the black path based on blind tracing mode\n if (state.mode === TraceMode.BlindTracing || state.mode === TraceMode.BlindFreeTrace) {\n // In blind tracing or blind free trace mode, hide the black path\n path.setAttribute('stroke', 'none');\n } else {\n // In other modes, show the black path\n path.setAttribute('stroke', '#000');\n path.setAttribute('stroke-width', '10');\n path.setAttribute('fill', 'none');\n path.setAttribute('stroke-dasharray', pathLength.toString());\n path.setAttribute('stroke-dashoffset', '0'); // Fully visible initially\n }\n\n // Only create flow markers for the current path in normal modes\n if (index === state.currentPathIndex && state.mode === TraceMode.ShowFlow) {\n state.flowMarkers = this.createFlowMarkersForPath(path);\n }\n });\n\n state.totalPathLength = state.paths[state.currentPathIndex].getTotalLength();\n }\n\n // Set up the draggable circle at the start of the first path\n setupDraggableCircle(state: any) {\n const firstPathStart = state.paths[0].getPointAtLength(0);\n const circle = document.createElementNS('http://www.w3.org/2000/svg', 'circle');\n circle.setAttribute('id', 'draggableCircle');\n circle.setAttribute('cx', firstPathStart.x.toString());\n circle.setAttribute('cy', firstPathStart.y.toString());\n circle.setAttribute('r', '20'); // Radius of the draggable circle\n circle.setAttribute('fill', 'red');\n state.svg?.appendChild(circle);\n state.circle = circle;\n }\n\n // Add necessary event listeners using Pointer Events\n addEventListeners(state: any) {\n // Ensure the circle exists before adding events\n if (!state.circle || !state.paths || state.paths.length === 0) return;\n\n // Handle pointerdown on the circle to start dragging\n state.circle.addEventListener('pointerdown', (evt: PointerEvent) => {\n evt.preventDefault(); // Prevent default actions like text selection\n const pointerPos = this.getPointerPosition(evt, state.svg!);\n const circlePos = {\n x: parseFloat(state.circle.getAttribute('cx')!),\n y: parseFloat(state.circle.getAttribute('cy')!),\n };\n const distance = this.getDistanceSquared(pointerPos, circlePos);\n if (distance <= state.proximityThreshold * state.proximityThreshold) {\n state.isDragging = true;\n state.activePointerId = evt.pointerId;\n // Capture the pointer to continue receiving events even if it leaves the element\n state.circle.setPointerCapture(evt.pointerId);\n }\n });\n\n // Handle pointermove on the SVG to update the circle position\n state.svg?.addEventListener('pointermove', (evt: PointerEvent) => {\n if (!state.isDragging || evt.pointerId !== state.activePointerId) return;\n\n state.pointerMoveEvent = evt;\n if (!state.rafId) {\n state.rafId = requestAnimationFrame(() => {\n this.handlePointerMove(state);\n state.rafId = null;\n });\n }\n });\n\n // Handle pointerup and pointercancel on the SVG to stop dragging\n state.svg?.addEventListener('pointerup', (evt: PointerEvent) => {\n if (evt.pointerId === state.activePointerId) {\n state.isDragging = false;\n state.activePointerId = null;\n }\n });\n\n state.svg?.addEventListener('pointercancel', (evt: PointerEvent) => {\n if (evt.pointerId === state.activePointerId) {\n state.isDragging = false;\n state.activePointerId = null;\n }\n });\n\n // Optional: Prevent context menu on long press\n state.svg?.addEventListener('contextmenu', (evt: MouseEvent) => {\n evt.preventDefault();\n });\n }\n\n // Modified handlePointerMove function\n handlePointerMove(state: any) {\n if (!state.isDragging) return;\n if (!state.circle || !state.paths || state.paths.length === 0) return;\n\n const evt = state.pointerMoveEvent as PointerEvent;\n const pointerPos = this.getPointerPosition(evt, state.svg!);\n const circlePos = {\n x: parseFloat(state.circle.getAttribute('cx')!),\n y: parseFloat(state.circle.getAttribute('cy')!),\n };\n\n const currentPath = state.paths[state.currentPathIndex];\n if (!currentPath) {\n console.error('No valid path found at the current index');\n return;\n }\n\n // Use a reduced proximity threshold for free trace mode\n let proximitySquared;\n if (state.mode === TraceMode.FreeTrace || state.mode === TraceMode.BlindFreeTrace) {\n proximitySquared = state.freeTraceProximityThreshold * state.freeTraceProximityThreshold;\n } else {\n proximitySquared = state.proximityThreshold * state.proximityThreshold;\n }\n\n // Calculate the distance between the pointer and the draggable circle\n const distanceSquared = this.getDistanceSquared(pointerPos, circlePos);\n\n // If the pointer is outside the proximity threshold, do not proceed with drawing or moving\n if (distanceSquared > proximitySquared) {\n return; // Skip any further actions\n }\n\n const closestPoint = this.getClosestPointOnPath(currentPath, pointerPos);\n\n // Ensure drawing happens only within proximity threshold\n const distanceToPathSquared = this.getDistanceSquared(pointerPos, closestPoint);\n if (distanceToPathSquared > proximitySquared) {\n return; // Skip drawing if too far from the path\n }\n\n // For free trace mode and blind free trace mode, allow free drawing only if within the reduced proximity threshold\n if (state.mode === TraceMode.FreeTrace || state.mode === TraceMode.BlindFreeTrace) {\n // Initialize the currentFreePath array if it's not created\n if (!state.currentFreePath) {\n state.currentFreePath = [];\n }\n\n // Create a new path element if it's the first trace for the current path index\n if (!state.currentFreePath[state.currentPathIndex]) {\n const newPath = document.createElementNS('http://www.w3.org/2000/svg', 'path');\n newPath.setAttribute('stroke', 'green');\n newPath.setAttribute('stroke-width', '8');\n newPath.setAttribute('fill', 'none');\n\n // Start the new path at the current pointer position\n newPath.setAttribute('d', `M${pointerPos.x},${pointerPos.y}`);\n state.svg?.appendChild(newPath);\n state.currentFreePath[state.currentPathIndex] = newPath;\n\n // Reset lastPointerPos for the new path\n state.lastPointerPos = pointerPos;\n }\n\n // Get the previous position to draw a smooth curve\n const previousPos = state.lastPointerPos || pointerPos;\n\n // Create a quadratic curve from the previous point to the current point\n const newPathData = state.currentFreePath[state.currentPathIndex].getAttribute('d');\n const midPointX = (previousPos.x + pointerPos.x) / 2;\n const midPointY = (previousPos.y + pointerPos.y) / 2;\n const updatedPathData = `${newPathData} Q ${previousPos.x},${previousPos.y} ${midPointX},${midPointY}`;\n\n // Update the path's 'd' attribute with the new curve\n state.currentFreePath[state.currentPathIndex].setAttribute('d', updatedPathData);\n\n // Move the draggable circle with the freehand trace\n state.circle.setAttribute('cx', pointerPos.x.toString());\n state.circle.setAttribute('cy', pointerPos.y.toString());\n\n // Make sure the red dot (circle) is always on top\n state.svg?.appendChild(state.circle); // This moves the circle to the last child, making it the topmost\n\n // Update the last pointer position\n state.lastPointerPos = pointerPos;\n\n const currentPathLength = currentPath.getTotalLength();\n const distanceToEnd = currentPathLength - closestPoint.length;\n\n // If close to the end of the path, move to the next path\n if (distanceToEnd < 5) {\n this.moveToNextPath(state);\n state.currentFreePath[state.currentPathIndex] = null; // Reset free path for next path\n }\n\n return; // Exit early since we're in free trace or blind free trace mode\n }\n\n // In normal modes, allow movement and drawing only within the general proximity threshold\n if (state.isDragging && closestPoint.length >= state.lastLength) {\n state.lastLength = closestPoint.length;\n state.circle.setAttribute('cx', closestPoint.x.toString());\n state.circle.setAttribute('cy', closestPoint.y.toString());\n\n // Make sure the red dot (circle) is always on top\n state.svg?.appendChild(state.circle); // This moves the circle to the last child, making it the topmost\n\n currentPath.greenPath?.setAttribute('stroke-dashoffset', (state.totalPathLength - state.lastLength).toString());\n }\n\n // Check if the current path is completed\n if (state.totalPathLength - 1 - state.lastLength < 5 && state.currentPathIndex < state.paths.length - 1) {\n this.moveToNextPath(state);\n } else if (state.totalPathLength - 1 - state.lastLength < 5 && state.currentPathIndex === state.paths.length - 1) {\n // this.loadAnotherSVG(state, true);\n triggerNextContainer();\n }\n }\n\n // Get the pointer position relative to the SVG\n getPointerPosition(evt: PointerEvent, svg: SVGSVGElement) {\n const svgPoint = svg.createSVGPoint();\n svgPoint.x = evt.clientX;\n svgPoint.y = evt.clientY;\n const ctm = svg.getScreenCTM()?.inverse();\n return ctm ? svgPoint.matrixTransform(ctm) : { x: evt.clientX, y: evt.clientY };\n }\n\n // Calculate the squared Euclidean distance between two points\n getDistanceSquared(p1: { x: number; y: number }, p2: { x: number; y: number }) {\n const dx = p1.x - p2.x;\n const dy = p1.y - p2.y;\n return dx * dx + dy * dy;\n }\n\n // Find the closest point on the given path to the specified point using two-pass sampling\n getClosestPointOnPath(pathNode: SVGGeometryElement, point: { x: number; y: number }) {\n const pathLength = pathNode.getTotalLength();\n let closestPoint = { x: 0, y: 0, length: 0 };\n let minDistanceSquared = Infinity;\n\n // First pass: coarse sampling\n const coarseStep = 20; // Increased step for better performance\n let coarseClosestPoint = { x: 0, y: 0, length: 0 };\n let coarseMinDistanceSquared = Infinity;\n\n for (let i = 0; i <= pathLength; i += coarseStep) {\n const pointOnPath = pathNode.getPointAtLength(i);\n const distanceSquared = this.getDistanceSquared(point, pointOnPath);\n\n if (distanceSquared < coarseMinDistanceSquared) {\n coarseMinDistanceSquared = distanceSquared;\n coarseClosestPoint = {\n x: pointOnPath.x,\n y: pointOnPath.y,\n length: i,\n };\n }\n }\n\n // Second pass: fine sampling around coarseClosestPoint\n const fineStep = 2; // Increased step to reduce computations\n const searchStart = Math.max(coarseClosestPoint.length - coarseStep, 0);\n const searchEnd = Math.min(coarseClosestPoint.length + coarseStep, pathLength);\n\n for (let i = searchStart; i <= searchEnd; i += fineStep) {\n const pointOnPath = pathNode.getPointAtLength(i);\n const distanceSquared = this.getDistanceSquared(point, pointOnPath);\n\n if (distanceSquared < minDistanceSquared) {\n minDistanceSquared = distanceSquared;\n closestPoint = { x: pointOnPath.x, y: pointOnPath.y, length: i };\n }\n }\n\n return closestPoint;\n }\n\n // Load the next or previous SVG based on the isNext flag\n async loadAnotherSVG(state: any, isNext: boolean) {\n state.isDragging = false;\n\n // Update fileIndex based on whether isNext is true or false\n // if (isNext) {\n // state.fileIndex++;\n // if (state.fileIndex >= this.svgFiles.length) {\n // state.fileIndex = this.svgFiles.length - 1; // Stay at the last file\n // return;\n // }\n // } else {\n // state.fileIndex--;\n // if (state.fileIndex < 0) {\n // state.fileIndex = 0; // Stay at the first file\n // return;\n // }\n // }\n\n try {\n if (state.svg) {\n this.cleanupPreviousSVG(state);\n }\n\n // const svgText = await this.fetchSVG(this.svgSource ?? this.svgFiles[state.fileIndex]);\n const svgText = await this.fetchSVG(this.svgSource);\n\n this.insertSVG(svgText);\n\n state.svg = this.getSVGElement();\n state.paths = this.getPaths(state.svg);\n\n this.setupDrawingPath(state);\n this.setupDraggableCircle(state);\n this.addEventListeners(state);\n } catch (error) {\n console.error(`Error loading SVG (${this.svgSource}):`, error);\n }\n }\n\n // Cleanup previous SVG's elements and state\n cleanupPreviousSVG(state: any) {\n if (state.circle) {\n state.svg?.removeChild(state.circle);\n state.circle = null;\n }\n\n const indicators = state.svg?.querySelectorAll('.flow-indicator') as NodeListOf<SVGPolygonElement>;\n indicators.forEach(indicator => {\n indicator.remove(); // Remove all previous flow indicators\n });\n\n state.currentPathIndex = 0;\n state.lastLength = 0;\n state.totalPathLength = state.paths[0].getTotalLength();\n }\n\n // Move to the next path in the SVG\n moveToNextPath(state: any) {\n state.isDragging = false;\n state.currentPathIndex++;\n state.lastLength = 0;\n\n if (state.currentPathIndex >= state.paths.length) {\n // this.loadAnotherSVG(state, true);\n triggerNextContainer();\n return;\n }\n\n const nextPath = state.paths[state.currentPathIndex];\n if (!nextPath) {\n console.error('No valid path found at the next index');\n return;\n }\n\n state.totalPathLength = nextPath.getTotalLength();\n\n const startPoint = nextPath.getPointAtLength(0);\n state.circle?.setAttribute('cx', startPoint.x.toString());\n state.circle?.setAttribute('cy', startPoint.y.toString());\n\n if (state.mode === TraceMode.ShowFlow) {\n state.flowMarkers = this.createFlowMarkersForPath(nextPath);\n }\n }\n\n render() {\n const style = {\n height: this.height,\n width: this.width,\n top: this.y,\n left: this.x,\n zIndex: this.z,\n position: 'absolute' as const,\n };\n\n // List of SVG file names to process sequentially\n // const svgFiles = ['A_test.svg', 'B_test.svg', 'C_test.svg', 'D_test.svg', 'अ_test.svg', 'ट_test.svg', 'क_test.svg', 'ख_test.svg', 'ग_test.svg']; // Add more SVG file names as needed\n\n return (\n <Host class=\"trace\" id={this.id} style={style} aria-label={this.ariaLabel} aria-hidden={this.ariaHidden} tabindex={this.tabIndex}>\n <div id=\"svgContainer\"></div>\n </Host>\n );\n }\n}\n",".wrap {\n display: grid;\n grid-gap: 10px;\n grid-template-columns: repeat(auto-fill, minmax(186px, auto));\n}\n\n.wrap > * {\n padding: 10px;\n background-color: var(--child-bg-color, #f0f0f0);\n box-sizing: border-box;\n}\n","import { Component, Host, Prop, h, Element } from '@stencil/core';\nimport { initEventsForElement } from '../../utils/utils';\n\n/**\n * @component AppWrap\n *\n * The `AppWrap` component acts as a flexible container that supports dynamic positioning, sizing, and layout.\n * The component can display its content as a grid and supports custom events like touch, match, and entry.\n * It allows for full customization via props like dimensions, background color, visibility, and z-index.\n */\n@Component({\n tag: 'app-wrap',\n styleUrl: 'app-wrap.css',\n shadow: false,\n})\nexport class AppWrap {\n /**\n * Unique identifier for the wrap element.\n */\n @Prop() id: string;\n\n /**\n * Value associated with the wrap element, typically used for internal logic or tracking.\n */\n @Prop() value: string;\n\n /**\n * The height of the wrap container (CSS value, e.g., '100px', '50%').\n */\n @Prop() height: string;\n\n /**\n * The width of the wrap container (CSS value, e.g., '100px', '50%').\n */\n @Prop() width: string;\n\n /**\n * The ARIA label of the container. Used for accessibility to indicate the purpose of the element.\n */\n @Prop() ariaLabel: string;\n\n /**\n * The ARIA hidden attribute of the container. Used for accessibility to hide the element.\n */\n @Prop() ariaHidden: string;\n\n /**\n * X-axis (horizontal) position of the wrap container (CSS value, e.g., '10px', '5vw').\n */\n @Prop() x: string;\n\n /**\n * Y-axis (vertical) position of the wrap container (CSS value, e.g., '10px', '5vh').\n */\n @Prop() y: string;\n\n /**\n * Z-index for stacking order of the wrap container relative to other elements.\n */\n @Prop() z: string;\n\n /**\n * Background color of the wrap container (CSS color value, e.g., '#FFFFFF', 'blue').\n */\n @Prop() bgColor: string;\n\n /**\n * Defines the type of the wrap container, which can be used for conditional logic or specific styling.\n */\n @Prop() type: string;\n\n /**\n * Tab index for keyboard navigation.\n */\n @Prop() tabIndex: number;\n\n /**\n * Controls the visibility of the wrap container. If `true`, the container is visible; otherwise, it is hidden.\n */\n @Prop() visible: boolean;\n\n /**\n * URL or identifier of an audio file associated with the wrap container.\n */\n @Prop() audio: string;\n\n /**\n * Event handler triggered when the wrap container is touched or clicked.\n */\n @Prop() onTouch: string;\n\n /**\n * Event handler for a Correct touch event, where a custom function can be triggered when the column is touched.\n */\n @Prop() onCorrectTouch: string;\n\n @Prop() onInCorrectTouch: string;\n\n /**\n * Event handler for a Correct matching action, which can be used to hide the column or trigger other custom logic.\n */\n @Prop() onCorrectMatch: string;\n\n /**\n * Event handler triggered when a matching action occurs with the wrap container.\n */\n @Prop() onMatch: string;\n\n @Prop() onWrong: string;\n\n /**\n * Event handler triggered when the wrap container is entered (useful for animations or logic on entry).\n */\n @Prop() onEntry: string;\n\n /**\n * Reference to the HTML element representing this `app-wrap` component.\n */\n @Element() el: HTMLElement;\n\n /**\n * Lifecycle hook that runs after the component is rendered in the DOM.\n * It initializes custom events based on the `type` of the wrap container.\n */\n componentDidLoad() {\n initEventsForElement(this.el, this.type);\n }\n\n render() {\n // Inline styles to position and size the wrap container, with grid layout applied\n const style = {\n height: this.height,\n width: this.width,\n top: this.y,\n left: this.x,\n display: this.visible ? 'grid' : 'none', // Use grid layout\n zIndex: this.z,\n backgroundColor: this.bgColor,\n };\n\n return (\n <Host\n class=\"wrap\"\n value={this.value}\n type={this.type}\n tabindex={this.tabIndex}\n style={style}\n aria-label={this.ariaLabel}\n aria-hidden={this.ariaHidden}\n audio={this.audio}\n onTouch={this.onTouch}\n onMatch={this.onMatch}\n onWrong={this.onWrong}\n onCorrectMatch={this.onCorrectMatch}\n onCorrectTouch={this.onCorrectTouch}\n onInCorrectTouch={this.onInCorrectTouch}\n onEntry={this.onEntry}\n >\n {/* Slot for child elements */}\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}