@welldot/render 0.4.0 → 0.4.1
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.
- package/README.md +20 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -685,7 +685,8 @@ function createWellTextures(cfg) {
|
|
|
685
685
|
|
|
686
686
|
// src/Renderer.ts
|
|
687
687
|
import {
|
|
688
|
-
isWellEmpty
|
|
688
|
+
isWellEmpty,
|
|
689
|
+
parseFormatVersion
|
|
689
690
|
} from "@welldot/core";
|
|
690
691
|
import {
|
|
691
692
|
formatNumber as formatNumber4,
|
|
@@ -3196,7 +3197,7 @@ var WellRenderer = class {
|
|
|
3196
3197
|
this.clear();
|
|
3197
3198
|
return;
|
|
3198
3199
|
}
|
|
3199
|
-
if (profile.version !== 2) {
|
|
3200
|
+
if (parseFormatVersion(profile.version)?.major !== 2) {
|
|
3200
3201
|
console.warn(
|
|
3201
3202
|
`[WellRenderer] Received a .well file with version ${profile.version ?? "unknown"}. Only v2 is supported. Normalize with deserializeWell() from @welldot/core before rendering.`
|
|
3202
3203
|
);
|