We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cf54f44 + 9421803 commit e8164fcCopy full SHA for e8164fc
1 file changed
dwg_json_viewer.html
@@ -105,12 +105,12 @@ <h1>Dwg/dxf Database JSON Viewer</h1>
105
})();
106
</script>
107
<script type="module">
108
- import { DxfParser, VERSION } from "@x-viewer/core";
+ import { DxfParser, VERSION, LIBREDWG_WEB_VERSION } from "@x-viewer/core";
109
110
+ // Display libredwg-web version
111
const libredwgVersionElement = document.getElementById('libredwgVersion');
- if (libredwgVersionElement) {
112
- // TODO: get libredwg-web version dynamically
113
- libredwgVersionElement.textContent = `(v0.5.0)`;
+ if (libredwgVersionElement && LIBREDWG_WEB_VERSION) {
+ libredwgVersionElement.textContent = `(v${LIBREDWG_WEB_VERSION})`;
114
}
115
116
// Display x-viewer/core version
0 commit comments