On 7 Oct 2019, at 05:12, Shaping <[email protected] <mailto:[email protected]> 
> wrote:

 

How does PharoJS deal with the JS reuse issue?   There are lots of JS widgets 
out there that we would just like to use, but we don’t want to read JS if we 
don’t have to.  There are many wheels to reinvent, or at least recode in DSL, 
if I understand the PharoJS scheme correctly, but I may not.

 

PharoJS allows to reuse existing JS libraries.

Just reference constructors as you reference Pharo classes.

 

Below is a link to an example, where we reuse the physics engine MatterJS

https://pharojs.github.io/Demos/MatterJsDemo/

 

Hi Noury.

 

Are you saying that none of the JS was manually written or that some of it was 
and the rest is coming from an imported library.   I’m looking at the page in 
Chrome dev tools now.   

 

 

Shaping

 

 

Reply via email to