ReadonlyidReadonlyonReadonlyonReadonlyonGets the max texture size (width * height).
Sets the max size of the texture used to render the html. NOTE: Increasing the max texture size will have a negative performance impact
new max texture size (width * height)
the babylonjs mesh
Get the current minScale of the plane.
Set the minimum scale of the plane. This value will be applied on all scaling axes.
New minimum scale to apply to the scaling axes.
Returns the original HTML before it was put through the htmlConversion parameter method.
Gets the parent TransformNode.
Sets the parent of the Html2CanvasPlane without keeping the position in world space.
new parent for the Html2CanvasPlane.
Gets the position of the plane in world space.
Gets the scaling of the plane.
Gets the style of the HTML element that will be rendered to the plane. NOTE: Do not change background color here as the canvas renderer has its own background color property, use setBackgroundColorAndUpdateTexture instead.
Disposes the Html2CanvasPlane.
Renders the containerdiv to the plane.
A promise that will resolve when the texture is rendered.
Sets the background color and updates the texture which is rendered on the plane mesh.
New background color.
Sets the HTML and applies it to the texture
The new HTML to be rendered.
The conversion function for the HTML, note that it is recommended to santize the input first.
Updates the container div and renders the container div to the plane.
A promise which resolves when the texture is updated.
The worldmatrix of the plane mesh.
StaticcreateCreates a new Html2CanvasPlane and adds it to the scene.
BimApi instance.
unique id
The original HTML
The method for modifying the HTML string. NOTE: This class does not sanitize HTML so this method is a good place to do so.
The position of the plane.
The normal of the plane.
The scale of the plane. If a number is passed in the scale will automatically adjust for aspect ratio and parent scale. If a Vector3 is passed in it is the absolute scaling of the plane.
How much the plane should be rotated around the normal in radians.
Background color for the resulting canvas which is then applied to the plane.
Factory method for the points the user can drag to resize the plane etc.
Babylonjs parent node.
The new a promise with the Html2CanvasPlane.
Renders HTML elements to a plane in 3D space. WARNING: This class does NOT sanitize its contents. Make sure to sanitize your HTML in the htmlConversion parameter or before passing it to this class.