Correct the type of element parameter.

This commit is contained in:
kovacsv 2023-01-15 15:47:28 +01:00
parent f78d6cd697
commit 0217122621
5 changed files with 7 additions and 6 deletions

View File

@ -67,7 +67,7 @@
<div class="function_title">Parameters</div>
<div class="parameter_header">
<span class="parameter_name">parentElement</span>
<span class="type parameter_type">Element</span>
<span class="type parameter_type"><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement" target="_blank">HTMLElement</a></span>
</div>
<div class="parameter_main">
<div class="parameter_description">The parent element for the viewer canvas. It must be an existing DOM element and it will be the container for the canvas. The size of the viewer will be automatically adjusted to the size of the parent element.</div>

View File

@ -67,7 +67,7 @@
<div class="function_title">Parameters</div>
<div class="parameter_header">
<span class="parameter_name">parentElement</span>
<span class="type parameter_type">Element</span>
<span class="type parameter_type"><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement" target="_blank">HTMLElement</a></span>
</div>
<div class="parameter_main">
<div class="parameter_description">The parent element for the viewer canvas.</div>

View File

@ -67,7 +67,7 @@
<div class="function_title">Parameters</div>
<div class="parameter_header">
<span class="parameter_name">parentElement</span>
<span class="type parameter_type">Element</span>
<span class="type parameter_type"><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement" target="_blank">HTMLElement</a></span>
</div>
<div class="parameter_main">
<div class="parameter_description">The parent element for the viewer canvas.</div>

View File

@ -45,6 +45,7 @@
}
],
"external_refs" : {
"HTMLElement" : "https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement",
"File" : "https://developer.mozilla.org/en-US/docs/Web/API/File"
}
}

View File

@ -14,7 +14,7 @@ import { EnvironmentSettings } from './shadingmodel.js';
export class EmbeddedViewer
{
/**
* @param {Element} parentElement The parent element for the viewer canvas. It must be an
* @param {HTMLElement} parentElement The parent element for the viewer canvas. It must be an
* existing DOM element and it will be the container for the canvas. The size of the viewer will
* be automatically adjusted to the size of the parent element.
* @param {object} parameters Parameters for embedding.
@ -215,7 +215,7 @@ export class EmbeddedViewer
/**
* Loads the model specified by urls.
* @param {Element} parentElement The parent element for the viewer canvas.
* @param {HTMLElement} parentElement The parent element for the viewer canvas.
* @param {string[]} modelUrls Url list of model files.
* @param {object} parameters See {@link EmbeddedViewer} constructor for details.
* @returns {EmbeddedViewer}
@ -229,7 +229,7 @@ export function Init3DViewerElementFromUrlList (parentElement, modelUrls, parame
/**
* Loads the model specified by File objects.
* @param {Element} parentElement The parent element for the viewer canvas.
* @param {HTMLElement} parentElement The parent element for the viewer canvas.
* @param {File[]} models File object list of model files.
* @param {object} parameters See {@link EmbeddedViewer} constructor for details.
* @returns {EmbeddedViewer}