All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.prod.locale.directionChange.js.map Maven / Gradle / Ivy

{
  "version": 3,
  "sources": ["../../../src/locale/directionChange.ts"],
  "sourcesContent": ["import EventProvider from \"../EventProvider.js\";\n\ntype DirectionChangeCallback = () => void;\n\nconst eventProvider = new EventProvider();\nconst DIR_CHANGE = \"directionChange\";\n\n/**\n * Attach a callback that will be executed whenever the application calls the \"applyDirection\" function\n * @public\n * @param listener\n */\nconst attachDirectionChange = (listener: DirectionChangeCallback) => {\n\teventProvider.attachEvent(DIR_CHANGE, listener);\n};\n\n/**\n * Detach a callback that was passed with \"attachDirectionChange\"\n * @public\n * @param listener\n */\nconst detachDirectionChange = (listener: DirectionChangeCallback) => {\n\teventProvider.detachEvent(DIR_CHANGE, listener);\n};\n\nconst fireDirectionChange = () => {\n\treturn eventProvider.fireEvent(DIR_CHANGE, undefined);\n};\n\nexport {\n\tattachDirectionChange,\n\tdetachDirectionChange,\n\tfireDirectionChange,\n};\n"],
  "mappings": "aAAA,OAAOA,MAAmB,sBAI1B,MAAMC,EAAgB,IAAID,EACpBE,EAAa,kBAObC,EAAyBC,GAAsC,CACpEH,EAAc,YAAYC,EAAYE,CAAQ,CAC/C,EAOMC,EAAyBD,GAAsC,CACpEH,EAAc,YAAYC,EAAYE,CAAQ,CAC/C,EAEME,EAAsB,IACpBL,EAAc,UAAUC,EAAY,MAAS,EAGrD,OACCC,KAAA,sBACAE,KAAA,sBACAC,KAAA",
  "names": ["EventProvider", "eventProvider", "DIR_CHANGE", "attachDirectionChange", "listener", "detachDirectionChange", "fireDirectionChange"]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy