This is a read-only mirror from https://phabricator.wikimedia.org/source/3d2png/.
Go to file
Hugh Nowlan 939f32aa33 update dependencies for use with bullseye
Update dependencies so as to build on bullseye, specifically canvas
which requires some code changes.

Three library still requires updating and some code changes to
facilitate breaking changes within it.

Bug: T336881
Change-Id: Idac0404367b1bf792710ee52b48fd079e5028717
2023-05-18 16:51:58 +01:00
samples Use shorter near frustum on camera to fix close-up models 2018-03-08 11:30:41 -08:00
.arcconfig Address concerns from 3d2png security review 2017-01-25 12:51:47 -06:00
.arclint Address concerns from 3d2png security review 2017-01-25 12:51:47 -06:00
.gitignore Add deploy repo building requirements 2017-03-28 14:39:15 -05:00
.gitreview Add .gitreview 2017-03-22 02:07:00 +01:00
3d2png.html Initial version of the tool, post-hackathon 2016-04-07 22:16:46 +02:00
3d2png.js update dependencies for use with bullseye 2023-05-18 16:51:58 +01:00
README.md Add instructions to build 3d2png-deploy in an obvious place 2017-11-28 10:10:40 +01:00
config.yaml Add deploy repo building requirements 2017-03-28 14:39:15 -05:00
package.json update dependencies for use with bullseye 2023-05-18 16:51:58 +01:00
polyfills.js Fix for large ASCII STL files causing OOM 2018-03-08 18:54:49 -08:00
test.js Use shorter near frustum on camera to fix close-up models 2018-03-08 11:30:41 -08:00
three-stl-loader.js Fix for large ASCII STL files causing OOM 2018-03-08 18:54:49 -08:00

README.md

3d2png

Simple thumbnail generator for AMF and STL files. It tries to pick a reasonable camera position based on the bounding box of the geometry.

How to build 3d2png-deploy

The deploy repository needs to be built on a system as similar to the production hosts as possible. For this reason, we use the service-runner package, which spins up a Docker container based on the definition provided in the deploy stanza of package.json, installs the distribution packages needed, builds the node_modules directory and updates the source repo submodule.

To that end, this commit adds the deployment definition to package.json and service-runner as a development dependency (which means it will not get installed into the deploy repository). There is also a minimal config.yaml file that is needed by service-runner in order to build the deploy repository.

Note that in order for the build process to work you need Docker set up on the machine, as well as configure git to point to the location of the deploy repository:

$ git config deploy.dir /full/path/to/deploy/repo

The build process can then be initiated with

$ npm run build-deploy