12 lines
416 B
JavaScript
12 lines
416 B
JavaScript
import { buildCanvas } from '../src/service/ManifestBuilder.js';
|
|
|
|
/**
|
|
* Generate a canvas object to serve
|
|
* @todo Use createCanvas from Common?
|
|
* @todo Pass a Manifest object, not a manifest id
|
|
* @param {string} manifestId The corresponding manifest's id
|
|
* @param {number|string} name The canvas name
|
|
*/
|
|
export default async function generateCanvas(manifestId, name) {
|
|
return buildCanvas(manifestId, name);
|
|
} |