repo_name
string
dataset
string
owner
string
lang
string
func_name
string
code
string
docstring
string
url
string
sha
string
ai-dial-chat
github_2023
epam
typescript
ChatOverlayManager.createFullscreenButton
public createFullscreenButton(): HTMLButtonElement { const button = document.createElement('button'); button.id = 'full-screen-button'; button.ariaLabel = 'Open full screen'; setStyles(button, { appearance: 'none', border: 'none', backgroundColor: 'transparent', cursor: 'pointer...
/** * Creates button to open overlay in fullscreen mode * @returns {HTMLButtonElement} Reference to created fullscreen button */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/overlay/src/lib/ChatOverlayManager.ts#L260-L295
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
ChatOverlayManager.createCloseButton
public createCloseButton(): HTMLButtonElement { const closeButton = document.createElement('button'); closeButton.ariaLabel = 'Collapse'; setStyles(closeButton, { boxSizing: 'border-box', appearance: 'none', border: 'none', cursor: 'pointer', backgroundColor: 'transparent', ...
/** * Creates button which hides overlay * @returns {HTMLButtonElement} Reference to created close button */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/overlay/src/lib/ChatOverlayManager.ts#L301-L335
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
ChatOverlayManager.removeOverlay
public removeOverlay(id: string) { const { overlay, container, toggleButton } = this.getOverlay(id); overlay.destroy(); this.overlays = this.overlays.filter(({ options }) => options.id !== id); document.body.removeChild(container); document.body.removeChild(toggleButton); }
/** * Destroys overlay with specified id and removes from this.overlays * @param id {string} id of overlay that should be deleted */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/overlay/src/lib/ChatOverlayManager.ts#L341-L350
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
ChatOverlayManager.showOverlay
public showOverlay(id: string) { const overlay = this.getOverlay(id); overlay.isHidden = false; overlay.container.style.transform = 'scale(1) translate(0, 0)'; }
/** * Shows overlay with specified id * @param id {string} id of overlay that should be shown */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/overlay/src/lib/ChatOverlayManager.ts#L362-L367
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
ChatOverlayManager.hideOverlay
public hideOverlay(id: string) { const overlay = this.getOverlay(id); overlay.isHidden = true; overlay.container.style.transform = `scale(1) ${overlay.position.transform}`; }
/** * Hides overlay with specified id * @param id {string} id of overlay that should be hidden */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/overlay/src/lib/ChatOverlayManager.ts#L372-L377
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
ChatOverlayManager.updateOverlay
public updateOverlay(id: string) { const { container, options, isHidden } = this.getOverlay(id); const mobileHeight = `${window.innerHeight}px`; const isMobileView = this.isMobileView(); const position = getPosition()[options.position ?? 'right-bottom']; setStyles(container, { transition: ...
/** * Checks the current viewport and updates position, styles if needed * @param id {string} id of overlay that should be updated */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/overlay/src/lib/ChatOverlayManager.ts#L383-L415
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
ChatOverlayManager.getOverlay
protected getOverlay(id: string): Overlay { const overlay = this.overlays.find(({ options }) => options.id === id); if (!overlay) throw new Error(`There is no overlay with ${id}`); return overlay; }
/** * Get reference to overlay from this.overlay with specified id * Throws exception if there is no such overlay with specified id * @param id {string} id of overlay that should be returned * @returns {Overlay} reference to overlay with specified id */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/overlay/src/lib/ChatOverlayManager.ts#L475-L481
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
ChatOverlayManager.isMobileView
protected isMobileView(): boolean { return ( (window.matchMedia('(orientation:landscape)').matches && window.matchMedia('(max-height: 550px)').matches) || (window.matchMedia('(orientation:portrait)').matches && window.matchMedia('(max-width: 550px)').matches) ); }
/** * Checks that window has mobile view * @returns {boolean} Returns true if window has mobile view */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/overlay/src/lib/ChatOverlayManager.ts#L487-L494
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
ChatOverlayManager.destroy
public destroy(): void { this.listenerAbortController.abort(); for (const { overlay, container } of this.overlays) { overlay.destroy(); document.body.removeChild(container); } }
/** * Destroys all overlays and stop event listeners */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/overlay/src/lib/ChatOverlayManager.ts#L499-L506
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.constructor
constructor(root: HTMLElement | string, options: VisualizerConnectorOptions) { this.options = options; this.root = this.getRoot(root); this.requests = []; this.subscriptions = []; this.iframeInteraction = new Task(); this.iframe = this.initIframe(); this.loader = this.initLoader( ...
/** * Creates a VisualizerConnector * @param root {HTMLElement | string} reference or selector to parent container where the iframe should be placed * @param options {VisualizerConnectorOptions} visualizer connector options ( hostDomain, domain etc.) which will be used to create iframe */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L50-L75
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.initIframe
protected initIframe(): HTMLIFrameElement { const iframe = document.createElement('iframe'); iframe.src = this.options.domain; iframe.sandbox.add('allow-same-origin'); iframe.sandbox.add('allow-scripts'); iframe.sandbox.add('allow-modals'); iframe.sandbox.add('allow-forms'); iframe.sandbox...
/** * Creates iframe add set initial options to it * @returns {HTMLIFrameElement} reference to iframe element */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L81-L100
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.initLoader
protected initLoader( styles: Styles, className?: string, loaderInnerHTML?: string, ): HTMLElement { const loader = document.createElement('div'); loader.innerHTML = loaderInnerHTML ?? defaultLoaderSVG; if (className) { loader.className = className; } if (styles?.display) { ...
/** * Creates loader and add styles * @returns {HTMLElement} reference to loader element */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L106-L138
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.showLoader
private showLoader() { setStyles(this.loader, { display: this.loaderDisplayCss, }); }
/** * Shows loader */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L142-L146
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.hideLoader
private hideLoader() { setStyles(this.loader, { display: 'none', }); }
/** * Hides loader */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L150-L154
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.ready
public async ready(): Promise<boolean> { return this.iframeInteraction.ready(); }
/** * Displays if iframe ready to interact * @returns {Promise<boolean>} if the promise resolved -> iframe ready to interact */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L160-L162
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.getRoot
protected getRoot(root: HTMLElement | string): HTMLElement { if (typeof root === 'string') { const element = document.querySelector(root); if (!element) { throw new Error( `[${visualizerConnectorLibName}] There is no element with selector ${root} to append iframe`, ); } ...
/** * If user provides reference to container ? returns the container : query the selector and return reference to container * @param {HTMLElement | string} root reference to parent container or selector where iframe should be placed * @returns {HTMLElement} reference to container where iframe would be placed ...
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L169-L183
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.process
protected process = ( event: MessageEvent<VisualizerConnectorRequest>, ): void => { if ( event.data.type === `${this.options.visualizerName}/${VisualizerConnectorEvents.ready}` ) { this.hideLoader(); return; } if ( event.data.type === `${this.options.visualizerN...
/** * Callback to post message event, contains mapping event to this.requests, mapping event to this.subscriptions * If event.data.type === '{visualizerName}/READY' means that Visualizer ready to receive message -> this.iframeInteraction.complete() * @param event {MessageEvent} post message event */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.processEvent
protected processEvent(eventType: string, payload?: unknown): void { for (const subscription of this.subscriptions) { if (subscription.eventType === eventType) { subscription.callback(payload); } } }
/** * Going through all event callbacks and call it if eventType is the same as in subscription * @param eventType {string} Name of event that DIAL send * @param payload {unknown} Payload of event */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L233-L239
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.send
public async send( type: VisualizerConnectorRequests, payload?: unknown, waitForReady = true, ): Promise<unknown> { if (waitForReady) { await this.iframeInteraction.ready(); } if (!this.iframe.contentWindow) { throw new Error( `[${visualizerConnectorLibName}] There is no c...
/** * Creates DeferredRequests, put into the this.requests * We don't put something into the this.requests until `this.ready()` * @param type Request name * @param payload Request payload * @param waitForReady Is this request should wait for Visualizer ready (default: true) * @returns {Promise<unknown...
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L249-L280
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.subscribe
public subscribe( eventType: string, callback: (payload: unknown) => void, ): () => void { this.subscriptions.push({ eventType, callback }); return () => { this.subscriptions = this.subscriptions.filter( (sub) => sub.callback !== callback, ); }; }
/** * Add callback with eventType to this.subscriptions * @param eventType Event type * @param callback Callback which should associated to the event type * @returns {() => void} Callback which removes event callback from the this.requests */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L288-L299
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.setVisualizerConnectorOptions
public setVisualizerConnectorOptions(options: VisualizerConnectorOptions) { this.options = options; }
/** * Sets Visualizer options (hostDomain,loaderStyles, etc.) * @param options {VisualizerConnectorOptions} Options that should be set into the Visualizer */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L305-L307
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
ai-dial-chat
github_2023
epam
typescript
VisualizerConnector.destroy
destroy() { window.removeEventListener('message', this.process); this.iframeInteraction.fail('Chat Visualizer destroyed'); this.root.removeChild(this.iframe); this.root.removeChild(this.loader); }
/** * Destroys Visualizer */
https://github.com/epam/ai-dial-chat/blob/bbc3ab44ffc97c358295c08abcc577bc3c3c0636/libs/visualizer-connector/src/lib/VisualizerConnector.ts#L312-L318
bbc3ab44ffc97c358295c08abcc577bc3c3c0636
three.ez
github_2023
agargaro
typescript
OrthographicCameraAuto.size
public get size(): number { return this._size; }
/** * Gets or sets the fixed width or height dimension based on the 'fixedWidth' property. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/cameras/OrthographicCameraAuto.ts#L15-L15
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
OrthographicCameraAuto.fixedWidth
public get fixedWidth(): boolean { return this._fixedWidth; }
/** * Determines whether the 'size' property refers to the width (true) or height (false). */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/cameras/OrthographicCameraAuto.ts#L24-L24
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
OrthographicCameraAuto.constructor
constructor(size = 2, fixedWidth = true, near?: number, far?: number) { super(-1, 1, 1, -1, near, far); this._size = size; this._fixedWidth = fixedWidth; this.on('viewportresize', (e) => { this._width = e.width; this._height = e.height; this.update(); }); }
/** * @param size Fixed width or height dimension based on the 'fixedWidth' property. Default `2`. * @param fixedWidth If true, the 'size' property will refer to the width. If not, to the height. Default `true`. * @param near Camera frustum near plane. Default `0.1`. * @param far Camera frustum far ...
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/cameras/OrthographicCameraAuto.ts#L36-L46
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PerspectiveCameraAuto.constructor
constructor(fov?: number, near?: number, far?: number) { super(fov, undefined, near, far); this.on('viewportresize', (e) => { this.aspect = e.width / e.height; this.updateProjectionMatrix(); }); }
/** * @param fov Camera frustum vertical field of view in degrees. Default `50`. * @param near Camera frustum near plane distance. Default `0.1`. * @param far Camera frustum far plane distance. Default `2000`. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/cameras/PerspectiveCameraAuto.ts#L12-L19
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.renderer
public get renderer(): WebGLRenderer { return this._renderManager.renderer; }
/** * The WebGLRenderer instance used for rendering the 3D scene. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L61-L61
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.views
public get views(): RenderView[] { return this._renderManager.views; }
/** * An array of all RenderView instances managed by the application. * Lists all views created and managed by the application, each representing a separate viewport or scene. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L67-L67
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.activeView
public get activeView(): RenderView { return this._renderManager.activeView; }
/** * The currently active RenderView (activated by mouse position). */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L72-L72
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.activeScene
public get activeScene(): Scene { return this._renderManager.activeView?.scene; }
/** * The Scene associated with the currently active RenderView. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L77-L77
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.activeCamera
public get activeCamera(): Camera { return this._renderManager.activeView?.camera; }
/** * The Camera associated with the currently active RenderView. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L82-L82
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.activeComposer
public get activeComposer(): EffectComposer { return this._renderManager.activeView?.composer; }
/** * The EffectComposer (used for post-processing) associated with the currently active RenderView. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L87-L87
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.showStats
public get showStats(): boolean { return this._showStats; }
/** * Indicates whether to display performance statistics. * If set to true, statistics will be shown; otherwise, they will be hidden. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L93-L93
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.multitouch
public get multitouch(): boolean { return this._interactionManager.queue.multitouch; }
/** * Indicates whether to enable multitouch interactions. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L107-L107
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.dragButtons
public get dragButtons(): number[] { return this._interactionManager.dragManager.dragButtons; }
/** * Defines the mouse buttons that can be used for dragging objects. * Specify the button values as an array of PointerEvent button values. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L114-L114
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.enableCursor
public get enableCursor(): boolean { return this._interactionManager.cursorManager.enabled; }
/** * Indicates whether to enable cursor handling in the application. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L120-L120
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.raycasterSortComparer
public get raycasterSortComparer(): RaycasterSortComparer { return this._interactionManager.raycasterManager.raycasterSortComparer; }
/** * A custom sorting comparer function used to order intersections when performing raycasting. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L126-L126
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.raycaster
public get raycaster(): Raycaster { return this._interactionManager.raycasterManager.raycaster; }
/** * A Raycaster instance responsible for handling raycasting operations in the application. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L132-L132
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.backgroundColor
public get backgroundColor(): ColorRepresentation { return this._renderManager.backgroundColor; }
/** * The default background color used in the application. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L137-L137
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.backgroundAlpha
public get backgroundAlpha(): number { return this._renderManager.backgroundAlpha; }
/** * The default alpha (transparency) value for the background. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L143-L143
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.mousePosition
public get mousePosition(): Vector2 { return this._interactionManager.raycasterManager.pointer; }
/** * The current mouse position represented as a Vector2. * Provides the x and y coordinates of the mouse pointer within the application. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L150-L150
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.pointerOnCanvas
public get pointerOnCanvas(): boolean { return this._interactionManager.raycasterManager.pointerOnCanvas; }
/** * Indicates if the pointer is over the canvas. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L155-L155
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.constructor
constructor(params: MainParameters = {}) { if (!params.renderer) this.setDefaultRendererParameters(params); const renderer = params.renderer ?? new WebGLRenderer(params.rendererParameters); const appendCanvas = !params.rendererParameters.canvas; this._renderManager = new RenderManager(renderer, appendC...
/** * @param params Configuration parameters for initializing the Main class. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L160-L174
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.createView
public createView(view: ViewParameters): RenderView { if (this._renderManager.views.length === 0) this.setAnimationLoop(); return this._renderManager.create(view); }
/** * Creates a new RenderView and adds it to the RenderManager. * @param view The parameters for the new RenderView. * @returns The created RenderView instance. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L240-L243
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.addView
public addView(view: RenderView): void { if (this._renderManager.views.length === 0) this.setAnimationLoop(); this._renderManager.add(view); }
/** * Adds a RenderView to the RenderManager. * @param view The RenderView instance to add. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L249-L252
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.removeView
public removeView(view: RenderView): void { this._renderManager.remove(view); if (this._renderManager.views.length === 0) this.clearAnimationLoop(); // TODO consider if we want to move it to renderManager }
/** * Removes a RenderView from the RenderManager. * @param view The RenderView instance to remove. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L258-L261
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.removeViewByTag
public removeViewByTag(tag: string): void { this._renderManager.removeByTag(tag); if (this._renderManager.views.length === 0) this.clearAnimationLoop(); }
/** * Removes a RenderView from the RenderManager by its tag. * @param tag The tag of the RenderView to remove. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L267-L270
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.clearViews
public clearViews(): void { this._renderManager.clear(); this.clearAnimationLoop(); }
/** * Clears all RenderViews from the RenderManager. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L275-L278
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.getViewByTag
public getViewByTag(tag: string): RenderView { return this._renderManager.getByTag(tag); }
/** * Retrieves a RenderView by its tag. * @param tag The tag to search for. * @returns The RenderView with the specified tag, if found, otherwise, undefined. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L285-L287
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.getViewByMouse
public getViewByMouse(mouse: Vector2): void { this._renderManager.getViewByMouse(mouse); }
/** * Retrieves a RenderView by mouse position. * @param mouse The mouse position as a Vector2. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L293-L295
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
Main.setActiveViewsByTag
public setActiveViewsByTag(tag: string): void { this._renderManager.setActiveViewsByTag(tag); }
/** * Sets active RenderViews by tag. * @param tag The tag of the RenderViews to set as active. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/core/Main.ts#L301-L303
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
EventExt.bubbles
public get bubbles(): boolean { return this._bubbles; }
/** A boolean value indicating whether or not the event bubbles up through the DOM. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L114-L114
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
EventExt.defaultPrevented
public get defaultPrevented(): boolean { return this._defaultPrevented; }
/** Indicates whether or not the call to event.preventDefault() canceled the event. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L120-L120
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
EventExt.target
public get target(): T { return this._target; }
/** A reference to the object to which the event was originally dispatched. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L122-L122
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
EventExt.type
public get type(): keyof Events { return this._type; }
/** The case-insensitive name identifying the type of the event. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L126-L126
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
EventExt.constructor
constructor(cancelable = false) { this.cancelable = cancelable; }
/** * @param cancelable A boolean value indicating whether the event is cancelable. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L137-L139
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
EventExt.preventDefault
public preventDefault(): void { this._defaultPrevented = true; }
/** Cancels the event. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L142-L144
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
EventExt.stopImmediatePropagation
public stopImmediatePropagation(): void { this._stoppedImmediatePropagation = true; }
/** For this particular event, prevent all other listeners from being called. This includes listeners attached to the same element as well as those attached to elements that will be traversed later (during the capture phase, for instance). */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L147-L149
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
EventExt.stopPropagation
public stopPropagation(): void { this._bubbles = false; }
/** Stops the propagation of events further along in the Object3D hierarchy. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L152-L154
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
KeyboardEventExt.altKey
public get altKey(): boolean { return this.domEvent.altKey; }
/** Returns a boolean value that is true if the Alt (Option or ⌥ on macOS) key was active when the key event was generated. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L166-L166
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.button
public get button(): number { return this.domEvent.button; }
/** The button number that was pressed (if applicable) when the mouse event was fired. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L168-L168
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.buttons
public get buttons(): number { return this.domEvent.buttons; }
/** The buttons being pressed (if any) when the mouse event was fired. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L170-L170
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.clientX
public get clientX(): number { return this.domEvent.clientX; }
/** The X coordinate of the mouse pointer in local (DOM content) coordinates. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L172-L172
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.clientY
public get clientY(): number { return this.domEvent.clientY; }
/** The Y coordinate of the mouse pointer in local (DOM content) coordinates. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L174-L174
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
KeyboardEventExt.ctrlKey
public get ctrlKey(): boolean { return this.domEvent.ctrlKey; }
/** Returns a boolean value that is true if the Ctrl key was active when the key event was generated. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L176-L176
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
KeyboardEventExt.metaKey
public get metaKey(): boolean { return this.domEvent.metaKey; }
/** Returns a boolean value that is true if the Meta key (on Mac keyboards, the ⌘ Command key; on Windows keyboards, the Windows key (⊞)) was active when the key event was generated. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L178-L178
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.movementX
public get movementX(): number { return this.domEvent.movementX; }
/** The X coordinate of the pointer relative to the position of the last event. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L180-L180
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.movementY
public get movementY(): number { return this.domEvent.movementY; }
/** The Y coordinate of the pointer relative to the position of the last event. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L182-L182
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.offsetX
public get offsetX(): number { return this.domEvent.offsetX; }
/** The X coordinate of the mouse pointer relative to the position of the padding edge of the target node. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L184-L184
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.offsetY
public get offsetY(): number { return this.domEvent.offsetY; }
/** The Y coordinate of the mouse pointer relative to the position of the padding edge of the target node. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L186-L186
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.pageX
public get pageX(): number { return this.domEvent.pageX; }
/** The X coordinate of the mouse pointer relative to the whole document. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L188-L188
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.pageY
public get pageY(): number { return this.domEvent.pageY; }
/** The Y coordinate of the mouse pointer relative to the whole document. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L190-L190
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.screenX
public get screenX(): number { return this.domEvent.screenX; }
/** The X coordinate of the mouse pointer in global (screen) coordinates. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L194-L194
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.screenY
public get screenY(): number { return this.domEvent.screenY; }
/** The Y coordinate of the mouse pointer in global (screen) coordinates. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L196-L196
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
KeyboardEventExt.shiftKey
public get shiftKey(): boolean { return this.domEvent.shiftKey; }
/** Returns a boolean value that is true if the Shift key was active when the key event was generated. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L198-L198
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
MouseEventExt.constructor
constructor(event: MouseEvent, intersection: IntersectionExt, relatedTarget?: R, cancelable?: boolean) { super(cancelable); this.domEvent = event; this.intersection = intersection; this.relatedTarget = relatedTarget; }
/** * @param event Original dom event. * @param intersection The intersection information between the mouse event and 3D objects in the scene. * @param relatedTarget The secondary target for the event. * @param cancelable A boolean value indicating whether the event is cancelable. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L208-L213
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
KeyboardEventExt.getModifierState
public getModifierState(keyArg: string): boolean { return this.domEvent.getModifierState(keyArg); }
/** Returns a boolean value indicating if a modifier key such as Alt, Shift, Ctrl, or Meta, was pressed when the event was created. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L216-L218
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PointerEventExt.pointerId
public get pointerId(): number { return this.domEvent.pointerId; }
/** A unique identifier for the pointer causing the event. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L229-L229
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PointerEventExt.width
public get width(): number { return this.domEvent.width; }
/** The width (magnitude on the X axis), in CSS pixels, of the contact geometry of the pointer. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L231-L231
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PointerEventExt.height
public get height(): number { return this.domEvent.height; }
/** The height (magnitude on the Y axis), in CSS pixels, of the contact geometry of the pointer. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L233-L233
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PointerEventExt.pressure
public get pressure(): number { return this.domEvent.pressure; }
/** The normalized pressure of the pointer input in the range 0 to 1, where 0 and 1 represent the minimum and maximum pressure the hardware is capable of detecting, respectively. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L235-L235
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PointerEventExt.tangentialPressure
public get tangentialPressure(): number { return this.domEvent.tangentialPressure; }
/** The normalized tangential pressure of the pointer input (also known as barrel pressure or cylinder stress) in the range -1 to 1, where 0 is the neutral position of the control. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L237-L237
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PointerEventExt.tiltX
public get tiltX(): number { return this.domEvent.tiltX; }
/** The plane angle (in degrees, in the range of -90 to 90) between the Y–Z plane and the plane containing both the pointer (e.g. pen stylus) axis and the Y axis. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L239-L239
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PointerEventExt.tiltY
public get tiltY(): number { return this.domEvent.tiltY; }
/** The plane angle (in degrees, in the range of -90 to 90) between the X–Z plane and the plane containing both the pointer (e.g. pen stylus) axis and the X axis. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L241-L241
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PointerEventExt.twist
public get twist(): number { return this.domEvent.twist; }
/** The clockwise rotation of the pointer (e.g. pen stylus) around its major axis in degrees, with a value in the range 0 to 359. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L243-L243
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PointerEventExt.pointerType
public get pointerType(): string { return this.domEvent.pointerType; }
/** Indicates the device type that caused the event (mouse, pen, touch, etc.). */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L245-L245
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PointerEventExt.isPrimary
public get isPrimary(): boolean { return this.domEvent.isPrimary; }
/** Indicates if the pointer represents the primary pointer of this pointer type. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L247-L247
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
DragEventExt.constructor
constructor(event?: PointerEvent, cancelable?: boolean, dataTransfer: { [x: string]: any } = {}, position?: Vector3, relatedTarget?: R, intersection?: IntersectionExt) { super(event, intersection, relatedTarget, cancelable); this.position = position; this.dataTransfer = dataTransfer; }
/** * @param event Original dom event. * @param cancelable A boolean value indicating whether the event is cancelable. * @param dataTransfer The data that is transferred during a drag and drop interaction. * @param position The new position of the dragged object. * @param relatedTarget The secondary targ...
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L269-L273
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
WheelEventExt.deltaMode
public get deltaMode(): number { return this.domEvent.deltaMode; }
/* Returns an unsigned long representing the unit of the delta* values' scroll amount. Permitted values are: 0 = pixels, 1 = lines, 2 = pages. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L284-L284
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
WheelEventExt.deltaX
public get deltaX(): number { return this.domEvent.deltaX; }
/** Returns a double representing the horizontal scroll amount. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L286-L286
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
WheelEventExt.deltaY
public get deltaY(): number { return this.domEvent.deltaY; }
/** Returns a double representing the vertical scroll amount. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L288-L288
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
WheelEventExt.deltaZ
public get deltaZ(): number { return this.domEvent.deltaZ; }
/** Returns a double representing the scroll amount for the z-axis. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L290-L290
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
PointerIntersectionEvent.constructor
constructor(intersection: IntersectionExt) { super(); this.intersection = intersection; }
/** * @param intersection The intersection information between the mouse event and 3D objects in the scene. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L304-L307
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
KeyboardEventExt.code
public get code(): string { return this.domEvent.code; }
/** Returns a string with the code value of the physical key represented by the event. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L320-L320
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
KeyboardEventExt.key
public get key(): string { return this.domEvent.key; }
/** Returns a string representing the key value of the key represented by the event. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L324-L324
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
KeyboardEventExt.location
public get location(): number { return this.domEvent.location; }
/** Returns a number representing the location of the key on the keyboard or other input device. Visit https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/location for more info. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L326-L326
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
KeyboardEventExt.repeat
public get repeat(): boolean { return this.domEvent.repeat; }
/** Returns a boolean value that is true if the key is being held down such that it is automatically repeating. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L330-L330
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
KeyboardEventExt.constructor
constructor(event: KeyboardEvent, cancelable: boolean) { super(cancelable); this.domEvent = event; }
/** * @param event Original dom event. * @param cancelable A boolean value indicating whether the event is cancelable. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L338-L341
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
FocusEventExt.constructor
constructor(relatedTarget: R) { super(); this.relatedTarget = relatedTarget; }
/** * @param relatedTarget The secondary target for the event. */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/events/Events.ts#L361-L364
7da9727b605f49314016a99561b8d797ca0519b6
three.ez
github_2023
agargaro
typescript
InstancedMesh2.__enabledStateHovered
public get __enabledStateHovered(): boolean { return this._hoveredInstance.enabled && super.enabledState; }
/** @internal */
https://github.com/agargaro/three.ez/blob/7da9727b605f49314016a99561b8d797ca0519b6/src/instancedMesh/InstancedMesh2.ts
7da9727b605f49314016a99561b8d797ca0519b6