MCPcopy
hub / github.com/microsoft/SandDance / canvasToDataURL

Method canvasToDataURL

docs/app/js/sanddance-app.js:8293–8301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8291 };
8292 }
8293 canvasToDataURL() {
8294 return new Promise((resolve, reject)=>{
8295 this._afterRenderHandler = ()=>{
8296 this._afterRenderHandler = null;
8297 const png = this.deckgl.canvas.toDataURL("image/png");
8298 resolve(png);
8299 };
8300 });
8301 }
8302 /**
8303 * Home the camera to the last initial position.
8304 */ homeCamera() {

Callers 1

editSnapshotMethod · 0.45

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected