<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Insert OrbitControl three.js addon inside QS extension in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/Insert-OrbitControl-three-js-addon-inside-QS-extension/m-p/2095268#M18868</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;I know that if I had html in which to render the scene, I would just use import&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script type="module"&amp;gt;
import * as THREE from '/build/three.js';
import { OrbitControls } from '/build/OrbitControls.js'; ...&lt;/LI-CODE&gt;
&lt;P&gt;but as it is extension, I can't find way to do so, every time I get some kind of error.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Jul 2023 11:53:29 GMT</pubDate>
    <dc:creator>justISO</dc:creator>
    <dc:date>2023-07-19T11:53:29Z</dc:date>
    <item>
      <title>Insert OrbitControl three.js addon inside QS extension</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/Insert-OrbitControl-three-js-addon-inside-QS-extension/m-p/2095268#M18868</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;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?&lt;/P&gt;
&lt;P&gt;I know that if I had html in which to render the scene, I would just use import&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script type="module"&amp;gt;
import * as THREE from '/build/three.js';
import { OrbitControls } from '/build/OrbitControls.js'; ...&lt;/LI-CODE&gt;
&lt;P&gt;but as it is extension, I can't find way to do so, every time I get some kind of error.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jul 2023 11:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/Insert-OrbitControl-three-js-addon-inside-QS-extension/m-p/2095268#M18868</guid>
      <dc:creator>justISO</dc:creator>
      <dc:date>2023-07-19T11:53:29Z</dc:date>
    </item>
  </channel>
</rss>

