Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Mastering Change Data Capture: Read Now
cancel
Showing results for 
Search instead for 
Did you mean: 
justISO
Specialist
Specialist

Insert OrbitControl three.js addon inside QS extension

Hi all,

I'm experimenting with showing 3D objects inside Qlik Sense extension using three.js library. I have created a small extension in which I render a 3D cube (extensions attached), but as I am not an experienced programmer, I have encountered a problem when trying to implement view/camera change with mouse (zoom, pan, scale). For this I tried to 'import' three.js OrbitControls add-on, and tried multiple ways to do so, but as is not an AMD or ES module, I face some problems. Maybe some of you could help me with this?

I know that if I had html in which to render the scene, I would just use import

<script type="module">
import * as THREE from '/build/three.js';
import { OrbitControls } from '/build/OrbitControls.js'; ...

but as it is extension, I can't find way to do so, every time I get some kind of error.

Labels (1)
0 Replies