|
MaterialXLab API
0.0.1
APIs For MaterialXLab Libraries
|
Utility class for unzipping ZIP which contain MaterialX files and dependent images . More...
Public Member Functions | |
| constructor () | |
| Constructor. | |
Static Public Member Functions | |
| static async | unzipMaterialXData (zipData) |
| Unzips the given ZIP data and returns the MaterialX documents and textures. | |
| static async | unzipMaterialXUrl (zipUrl) |
| Fetch the ZIP file on initial load. | |
Utility class for unzipping ZIP which contain MaterialX files and dependent images .
Assumes fflate has been imported. Simple way in an htm files is to include: <script src="https://cdn.jsdelivr.net/npm/fflate/umd/index.js"></script>
Definition at line 9 of file JsMaterialXZipUtils.js.
| MxZipUtils::constructor | ( | ) |
Constructor.
Will check if fflate is available. If not available, an error will be logged.
Definition at line 15 of file JsMaterialXZipUtils.js.
|
static |
Unzips the given ZIP data and returns the MaterialX documents and textures.
| zipData | The ZIP data to unzip. |
Definition at line 27 of file JsMaterialXZipUtils.js.
|
static |
Fetch the ZIP file on initial load.
| zipUrl | The URL of the ZIP file to fetch. |
Definition at line 95 of file JsMaterialXZipUtils.js.