{"ast":null,"code":"/**\n * Abstract class used to decouple action Manager from scene and meshes.\n * Do not instantiate.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions\n */\nexport class AbstractActionManager {\n constructor() {\n /** Gets the cursor to use when hovering items */\n this.hoverCursor = \"\";\n /** Gets the list of actions */\n this.actions = [];\n /**\n * Gets or sets a boolean indicating that the manager is recursive meaning that it can trigger action from children\n */\n this.isRecursive = false;\n /**\n * Gets or sets a boolean indicating if this ActionManager should be disposed once the last Mesh using it is disposed\n */\n this.disposeWhenUnowned = true;\n }\n /**\n * Does exist one action manager with at least one trigger\n **/\n static get HasTriggers() {\n for (const t in AbstractActionManager.Triggers) {\n if (Object.prototype.hasOwnProperty.call(AbstractActionManager.Triggers, t)) {\n return true;\n }\n }\n return false;\n }\n /**\n * Does exist one action manager with at least one pick trigger\n **/\n static get HasPickTriggers() {\n for (const t in AbstractActionManager.Triggers) {\n if (Object.prototype.hasOwnProperty.call(AbstractActionManager.Triggers, t)) {\n const tAsInt = parseInt(t);\n if (tAsInt >= 1 && tAsInt <= 7) {\n return true;\n }\n }\n }\n return false;\n }\n /**\n * Does exist one action manager that handles actions of a given trigger\n * @param trigger defines the trigger to be tested\n * @returns a boolean indicating whether the trigger is handled by at least one action manager\n **/\n static HasSpecificTrigger(trigger) {\n for (const t in AbstractActionManager.Triggers) {\n if (Object.prototype.hasOwnProperty.call(AbstractActionManager.Triggers, t)) {\n const tAsInt = parseInt(t);\n if (tAsInt === trigger) {\n return true;\n }\n }\n }\n return false;\n }\n}\n/** Gets the list of active triggers */\nAbstractActionManager.Triggers = {};","map":{"version":3,"names":["AbstractActionManager","constructor","hoverCursor","actions","isRecursive","disposeWhenUnowned","HasTriggers","t","Triggers","Object","prototype","hasOwnProperty","call","HasPickTriggers","tAsInt","parseInt","HasSpecificTrigger","trigger"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@babylonjs/core/Actions/abstractActionManager.js"],"sourcesContent":["\n/**\n * Abstract class used to decouple action Manager from scene and meshes.\n * Do not instantiate.\n * @see https://doc.babylonjs.com/features/featuresDeepDive/events/actions\n */\nexport class AbstractActionManager {\n constructor() {\n /** Gets the cursor to use when hovering items */\n this.hoverCursor = \"\";\n /** Gets the list of actions */\n this.actions = [];\n /**\n * Gets or sets a boolean indicating that the manager is recursive meaning that it can trigger action from children\n */\n this.isRecursive = false;\n /**\n * Gets or sets a boolean indicating if this ActionManager should be disposed once the last Mesh using it is disposed\n */\n this.disposeWhenUnowned = true;\n }\n /**\n * Does exist one action manager with at least one trigger\n **/\n static get HasTriggers() {\n for (const t in AbstractActionManager.Triggers) {\n if (Object.prototype.hasOwnProperty.call(AbstractActionManager.Triggers, t)) {\n return true;\n }\n }\n return false;\n }\n /**\n * Does exist one action manager with at least one pick trigger\n **/\n static get HasPickTriggers() {\n for (const t in AbstractActionManager.Triggers) {\n if (Object.prototype.hasOwnProperty.call(AbstractActionManager.Triggers, t)) {\n const tAsInt = parseInt(t);\n if (tAsInt >= 1 && tAsInt <= 7) {\n return true;\n }\n }\n }\n return false;\n }\n /**\n * Does exist one action manager that handles actions of a given trigger\n * @param trigger defines the trigger to be tested\n * @returns a boolean indicating whether the trigger is handled by at least one action manager\n **/\n static HasSpecificTrigger(trigger) {\n for (const t in AbstractActionManager.Triggers) {\n if (Object.prototype.hasOwnProperty.call(AbstractActionManager.Triggers, t)) {\n const tAsInt = parseInt(t);\n if (tAsInt === trigger) {\n return true;\n }\n }\n }\n return false;\n }\n}\n/** Gets the list of active triggers */\nAbstractActionManager.Triggers = {};\n"],"mappings":"AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,qBAAqB,CAAC;EAC/BC,WAAWA,CAAA,EAAG;IACV;IACA,IAAI,CAACC,WAAW,GAAG,EAAE;IACrB;IACA,IAAI,CAACC,OAAO,GAAG,EAAE;IACjB;AACR;AACA;IACQ,IAAI,CAACC,WAAW,GAAG,KAAK;IACxB;AACR;AACA;IACQ,IAAI,CAACC,kBAAkB,GAAG,IAAI;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