Skip to main content

annotationSelector

Typestring
Default".view3d-annotation"

CSS Selector string for the annotation elements.

<div id="wrapper" class="view3d-wrapper">
<canvas class="view3d-canvas"></canvas>
<div class="view3d-annotation-wrapper">
<div class="view3d-annotation" data-position="0 -0.5 0.5"></div>
<div class="view3d-annotation" data-position="0.5 1 -0.3"></div>
<div class="view3d-annotation" data-position="0.3 0.3 0.3"></div>
</div>
</div>
new View3D("#wrapper", {
annotationSelector: ".view3d-annotation"
})

Example

{
src: "/egjs-view3d/model/draco/alarm.glb",
poster: "/egjs-view3d/poster/alarm.png",
annotationSelector: ".view3d-annotation"
}