<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[how to run demo in V2&#x2F;web?]]></title><description><![CDATA[<p dir="auto">I raise an issue <a href="https://github.com/jscad/OpenJSCAD.org/issues/462" rel="nofollow ugc">#462</a> about creating multiple instances of JSCAD per page and be informed that V2 has the ability to do it. So I clone the V2 repository, start a server on ./web and open the demo.html, but I find no viewers or designs on it(maybe already work?) or what it should look like if it is working properly.</p>
<p dir="auto"><img src="/assets/uploads/files/1568012763164-01-resized.png" alt="0_1568012765200_01.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">I also find that the demo.js creates two instances of JSCAD using makeJscad(), which is exactly what I want. But I insert some lines of demo.js into demo.html, there are also no viewers or designs. Are there any docs about how to use makeJscad() properly?<br />
<img src="/assets/uploads/files/1568012925088-02-resized.png" alt="0_1568012926333_02.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/topic/110/how-to-run-demo-in-v2-web</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Jul 2026 21:25:23 GMT</lastBuildDate><atom:link href="https://openjscad.nodebb.com/topic/110.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 09 Sep 2019 07:08:57 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to how to run demo in V2&#x2F;web? on Fri, 18 Dec 2020 04:46:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/tektio" aria-label="Profile: tektio">@<bdi>tektio</bdi></a> V2 JSCAD is very different then V1 JSCAD.</p>
<p dir="auto">The old examples are no longer usable with V2 JSCAD.</p>
<p dir="auto">Probably the best way to enabled two viewers would be through the use of the VUE components, but you'll have to write some HTML / JavaScript.</p>
<p dir="auto"><a href="https://github.com/z3dev/vue-components" rel="nofollow ugc">https://github.com/z3dev/vue-components</a></p>
]]></description><link>https://openjscad.nodebb.com/post/576</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/576</guid><dc:creator><![CDATA[z3dev]]></dc:creator><pubDate>Fri, 18 Dec 2020 04:46:23 GMT</pubDate></item><item><title><![CDATA[Reply to how to run demo in V2&#x2F;web? on Wed, 16 Dec 2020 15:53:18 GMT]]></title><description><![CDATA[<p dir="auto">Hello!<br />
I am trying to achieve the same - create multiple instances of jscad.<br />
The commented lines in demo.js seem to work at first, but if you interact only the first instance gets effected. So something ist not properly decoupled.<br />
Is there any quick advice to get on track?</p>
]]></description><link>https://openjscad.nodebb.com/post/574</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/574</guid><dc:creator><![CDATA[tektio]]></dc:creator><pubDate>Wed, 16 Dec 2020 15:53:18 GMT</pubDate></item><item><title><![CDATA[Reply to how to run demo in V2&#x2F;web? on Thu, 12 Sep 2019 08:33:33 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/linguanfu" aria-label="Profile: LinGuanfu">@<bdi>LinGuanfu</bdi></a> !<br />
Visually that seeems correct: if you click on help/question mark do you have a menu with a list of examples ?<br />
also looking at the console output it seems the two instances are created correctly.<br />
Please try opening a design in both panels (or drag &amp; droping a jscad file/folder).<br />
The css is not finished and could use some tweaking (or might not be a perfect fit for all use cases, but should be easy to change <img src="https://openjscad.nodebb.com/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=552b9a4dc0c" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:23px;width:auto;vertical-align:middle" title=":)" alt="🙂" /></p>
]]></description><link>https://openjscad.nodebb.com/post/187</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/187</guid><dc:creator><![CDATA[kaosat-dev]]></dc:creator><pubDate>Thu, 12 Sep 2019 08:33:33 GMT</pubDate></item></channel></rss>