UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

40 lines (39 loc) 2.29 kB
/** * sends a trigger when an object is clicked * * This is similar to js/onObjectClick, except that it support multiple mouse buttons at the same time. * * */ import { JsType } from '../../poly/registers/nodes/types/Js'; import { EvaluatorEventData } from './code/assemblers/actor/ActorEvaluator'; import { ExtendableOnObjectPointerEventJsNode, CPUOnObjectPointerEventJsParamsConfig } from './_BaseOnObjectPointerEvent'; import { JsLinesCollectionController } from './code/utils/JsLinesCollectionController'; declare const OnObjectMouseClickJsParamsConfig_base: { new (...args: any[]): { buttonLeft: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>; buttonMiddle: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>; buttonRight: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>; ctrl: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>; shift: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>; alt: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>; }; } & { new (...args: any[]): { maxCursorMoveDistance: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.FLOAT>; maxDuration: import("../utils/params/ParamsConfig").ParamTemplate<import("../../index_all").ParamType.INTEGER>; }; } & typeof CPUOnObjectPointerEventJsParamsConfig; export declare class OnObjectMouseClickJsParamsConfig extends OnObjectMouseClickJsParamsConfig_base { } export declare class OnObjectMouseClickJsNode extends ExtendableOnObjectPointerEventJsNode<OnObjectMouseClickJsParamsConfig> { readonly paramsConfig: OnObjectMouseClickJsParamsConfig; static type(): JsType; isTriggering(): boolean; eventData(): EvaluatorEventData[] | undefined; initializeNode(): void; setLines(linesController: JsLinesCollectionController): void; setTriggeringLines(linesController: JsLinesCollectionController, triggeredMethods: string): void; private _addIntersectionRef; } export {};