babylonjs-addons 9.1.0 → 9.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1432,6 +1432,10 @@ declare namespace ADDONS {
1432
1432
  * @param worldMatrix define the world matrix to use for the paragraph (optional)
1433
1433
  */
1434
1434
  addParagraph(text: string, options?: Partial<ParagraphOptions>, worldMatrix?: BABYLON.IMatrixLike): void;
1435
+ /**
1436
+ * Clear all paragraphs from the renderer to allow adding new ones from scratch
1437
+ */
1438
+ clearParagraphs(): void;
1435
1439
  /**
1436
1440
  * Render the text using the provided view and projection matrices
1437
1441
  * @param viewMatrix define the view matrix to use
@@ -2109,10 +2113,10 @@ declare namespace ADDONS {
2109
2113
  * @param heightPx - The height of the texture in texels.
2110
2114
  * @param data - The texture data to sample.
2111
2115
  * @param result - The color to store the sample.
2112
- * @param normalizeFunc - The function to normalize the texel values. Default is to divide by 255.
2116
+ * @param normalizeFunc - The function to normalize the texel values. Default is to divide by 255. Pass null for no normalization.
2113
2117
  * @returns The result color.
2114
2118
  */
2115
- export function Sample2DRgbaToRef<T extends BABYLON.IColor4Like>(u: number, v: number, widthPx: number, heightPx: number, data: Uint8Array | Uint16Array | Float32Array, result: T, normalizeFunc?: (value: number) => number): T;
2119
+ export function Sample2DRgbaToRef<T extends BABYLON.IColor4Like>(u: number, v: number, widthPx: number, heightPx: number, data: Uint8Array | Uint16Array | Float32Array, result: T, normalizeFunc?: ((value: number) => number) | null): T;
2116
2120
 
2117
2121
 
2118
2122