@xeokit/xeokit-sdk 2.5.2-beta-8 → 2.5.2-beta-9
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/dist/xeokit-sdk.cjs.js +26 -16
- package/dist/xeokit-sdk.es.js +26 -16
- package/dist/xeokit-sdk.es5.js +6 -4
- package/dist/xeokit-sdk.min.cjs.js +5 -5
- package/dist/xeokit-sdk.min.es.js +5 -5
- package/dist/xeokit-sdk.min.es5.js +4 -4
- package/package.json +1 -1
- package/src/plugins/AnnotationsPlugin/Annotation.js +2 -2
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV11.js +663 -0
- package/src/viewer/scene/core.js +24 -14
package/package.json
CHANGED
|
@@ -151,7 +151,7 @@ class Annotation extends Marker {
|
|
|
151
151
|
if (utils.isArray(markerHTML)) {
|
|
152
152
|
markerHTML = markerHTML.join("");
|
|
153
153
|
}
|
|
154
|
-
markerHTML = this._renderTemplate(markerHTML);
|
|
154
|
+
markerHTML = this._renderTemplate(markerHTML.trim());
|
|
155
155
|
const markerFragment = document.createRange().createContextualFragment(markerHTML);
|
|
156
156
|
this._marker = markerFragment.firstChild;
|
|
157
157
|
this._container.appendChild(this._marker);
|
|
@@ -178,7 +178,7 @@ class Annotation extends Marker {
|
|
|
178
178
|
if (utils.isArray(labelHTML)) {
|
|
179
179
|
labelHTML = labelHTML.join("");
|
|
180
180
|
}
|
|
181
|
-
labelHTML = this._renderTemplate(labelHTML);
|
|
181
|
+
labelHTML = this._renderTemplate(labelHTML.trim());
|
|
182
182
|
const labelFragment = document.createRange().createContextualFragment(labelHTML);
|
|
183
183
|
this._label = labelFragment.firstChild;
|
|
184
184
|
this._container.appendChild(this._label);
|