beige90 / Madeleine.js

Pure javaScript 3D Model Viewer (.STL Format)
MIT License
111 stars 22 forks source link

IMPROVED #5

Closed victorazevedo closed 4 years ago

victorazevedo commented 5 years ago

example of object with new parameters:

obj: any = { target: 'target', file: 'myInput', path: 'assets/src', // XY: { // // X: 50, // Y: -120, // } VIEWER_HEIGHT: 400, viewer: { theme: 'soft', notappend: true }, SCROLL_FACTOR: 50, callbackstart: () => { this.loader.displayLoader(true); }, callbackend: () => { this.loader.displayLoader(false); } }

this.madeleine = new Madeleine(this.obj); or this.madeleine = Lily.ready(this.obj);