From 35626740aeea26bb4c0664577b4d3be08aecefaa Mon Sep 17 00:00:00 2001 From: omrips Date: Sat, 7 Aug 2021 11:31:29 +0300 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 5c35552..c1842c3 100644 --- a/README.md +++ b/README.md @@ -22,4 +22,20 @@ Create a new instance of Stl Viewer (simplest initiation - read and view STL fil var stl_viewer=new StlViewer(document.getElementById("stl_cont"), { models: [ {id:0, filename:"mystl.stl"} ] }); ``` +Dependency on JSZip library: +============================ +When dealing with 3mf/vsb files you must use JSZip library - https://stuk.github.io/jszip/ + - this library is not included here, you must upload it to your server and supply jszip_path and jszip_utils_path parameters: +``` +var stl_viewer=new StlViewer +( + document.getElementById("stl_cont"), + { + .... + jszip_path:"//jszip.min.js", + jszip_utils_path:"//jszip-utils.min.js" + } +); +``` + more at https://www.viewstl.com/plugin/