diff --git a/extras/exporters/core-exporter.js b/extras/exporters/core-exporter.js index eeadc626167..b9706cb615b 100644 --- a/extras/exporters/core-exporter.js +++ b/extras/exporters/core-exporter.js @@ -18,6 +18,11 @@ const textureBlitFragmentShader = ` gl_FragColor = texture2D(blitTexture, uv0); }`; +/** + * The base class for the exporters, implementing shared functionality. + * + * @category Exporter + */ class CoreExporter { /** * Create a new instance of the exporter. @@ -33,6 +38,8 @@ class CoreExporter { * @param {import('playcanvas').Color} [options.color] - The tint color to modify the texture with. * @param {number} [options.maxTextureSize] - Maximum texture size. Texture is resized if over the size. * @returns {Promise|Promise} - The canvas element containing the image. + * + * @ignore */ textureToCanvas(texture, options = {}) { diff --git a/extras/exporters/gltf-exporter.js b/extras/exporters/gltf-exporter.js index 902b492dcf3..3fda5d41b32 100644 --- a/extras/exporters/gltf-exporter.js +++ b/extras/exporters/gltf-exporter.js @@ -122,6 +122,8 @@ const textureSemantics = [ /** * Implementation of the GLTF 2.0 format exporter. + * + * @category Exporter */ class GltfExporter extends CoreExporter { /** diff --git a/extras/exporters/usdz-exporter.js b/extras/exporters/usdz-exporter.js index 9e7460e124c..84344f57381 100644 --- a/extras/exporters/usdz-exporter.js +++ b/extras/exporters/usdz-exporter.js @@ -66,6 +66,8 @@ const materialValueTemplate = (type, name, value) => ` ${type /** * Implementation of the USDZ format exporter. Note that ASCII version of the format (USDA) is used. + * + * @category Exporter */ class UsdzExporter extends CoreExporter { /**