@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xeokit/xeokit-sdk",
3
- "version": "2.5.2-beta-8",
3
+ "version": "2.5.2-beta-9",
4
4
  "description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
5
5
  "module": "./dist/xeokit-sdk.es.js",
6
6
  "main": "./dist/xeokit-sdk.cjs.js",
@@ -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);