@hpcc-js/common 3.8.0 → 3.8.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.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +5 -5
- package/src/HTMLWidget.ts +10 -2
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var r = Object.defineProperty, __name = (e, t) => r(e, "name", {
|
|
|
10
10
|
enumerable: !0
|
|
11
11
|
});
|
|
12
12
|
return t || r(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
13
|
-
}, a = "@hpcc-js/common", o = "3.8.
|
|
13
|
+
}, a = "@hpcc-js/common", o = "3.8.2", s = "3.27.0", c = {
|
|
14
14
|
svg: "http://www.w3.org/2000/svg",
|
|
15
15
|
xhtml: "http://www.w3.org/1999/xhtml",
|
|
16
16
|
xlink: "http://www.w3.org/1999/xlink",
|
|
@@ -6834,7 +6834,7 @@ var HTMLWidget = class extends J {
|
|
|
6834
6834
|
for (; t;) this.observer.observe(t, { attributes: !0 }), t = t.parentNode;
|
|
6835
6835
|
} else if (this._target) {
|
|
6836
6836
|
if (this._placeholderElement = select_default(this._target), !this._size.width && !this._size.height) {
|
|
6837
|
-
let e = parseFloat(this._placeholderElement.style("width")), t = parseFloat(this._placeholderElement.style("height"));
|
|
6837
|
+
let e = parseFloat(this._placeholderElement.style("width")) - (parseFloat(this._placeholderElement.style("margin-left")) + parseFloat(this._placeholderElement.style("margin-right"))) - (parseFloat(this._placeholderElement.style("border-left")) + parseFloat(this._placeholderElement.style("border-right"))) - (parseFloat(this._placeholderElement.style("padding-left")) + parseFloat(this._placeholderElement.style("padding-right"))), t = parseFloat(this._placeholderElement.style("height")) - (parseFloat(this._placeholderElement.style("margin-top")) + parseFloat(this._placeholderElement.style("margin-bottom"))) - (parseFloat(this._placeholderElement.style("border-top")) + parseFloat(this._placeholderElement.style("border-bottom"))) - (parseFloat(this._placeholderElement.style("padding-top")) + parseFloat(this._placeholderElement.style("padding-bottom")));
|
|
6838
6838
|
this.size({
|
|
6839
6839
|
width: e,
|
|
6840
6840
|
height: t
|