Skip to main content

HotspotRenderer

Since version 4.0.0

Hotspot renderer

class HotspotRenderer

Methods

Refresh hotspots by collecting hotspot elements from current hotspot root element

Render hotspots

Constructor

Create new instance
new HotspotRenderer(rootEl: HTMLElement, renderer: WebGLRenderer, options: Partial<HotspotOptions>): HotspotRenderer

Parameters

rootEl

HTMLElement

Container element for hotspots

instance of WebGLRenderer

options

Hotspot options

Methods

refresh

refresh

void

refresh(): void

Refresh hotspots by collecting hotspot elements from current hotspot root element

Throws

if data-position doesn't include all x, y, z values

render

render

void

render(camera: Camera): void

Render hotspots

Parameters

camera

Instance of Camera