@brndts/brndts-ads 1.11.2 → 1.11.4
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 +29 -15
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +29 -15
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -71181,10 +71181,18 @@ var RegionBorderPlugin = /*#__PURE__*/ function() {
|
|
71181
71181
|
var styles2 = window.getComputedStyle(region.content.view);
|
71182
71182
|
var width = parseFloat(styles2.width);
|
71183
71183
|
var height = parseFloat(styles2.height);
|
71184
|
-
region.view.style.width
|
71185
|
-
|
71186
|
-
|
71187
|
-
region.
|
71184
|
+
if (region.view.style.width !== "fit-content") {
|
71185
|
+
region.view.style.width = "".concat(region.boxWidth + 4, "px");
|
71186
|
+
}
|
71187
|
+
if (region.view.style.height !== "fit-content") {
|
71188
|
+
region.view.style.height = "".concat(region.boxHeight + 4, "px");
|
71189
|
+
}
|
71190
|
+
if (region.content.view.style.width !== "fit-content") {
|
71191
|
+
region.content.view.style.width = "".concat(width + 4, "px");
|
71192
|
+
}
|
71193
|
+
if (region.content.view.style.height !== "fit-content") {
|
71194
|
+
region.content.view.style.height = "".concat(height + 4, "px");
|
71195
|
+
}
|
71188
71196
|
return Promise.resolve();
|
71189
71197
|
}
|
71190
71198
|
},
|
@@ -71194,10 +71202,18 @@ var RegionBorderPlugin = /*#__PURE__*/ function() {
|
|
71194
71202
|
var styles2 = window.getComputedStyle(region.content.view);
|
71195
71203
|
var width = parseFloat(styles2.width);
|
71196
71204
|
var height = parseFloat(styles2.height);
|
71197
|
-
region.view.style.width
|
71198
|
-
|
71199
|
-
|
71200
|
-
region.
|
71205
|
+
if (region.view.style.width !== "fit-content") {
|
71206
|
+
region.view.style.width = "".concat(region.boxWidth + 4, "px");
|
71207
|
+
}
|
71208
|
+
if (region.view.style.height !== "fit-content") {
|
71209
|
+
region.view.style.height = "".concat(region.boxHeight + 4, "px");
|
71210
|
+
}
|
71211
|
+
if (region.content.view.style.width !== "fit-content") {
|
71212
|
+
region.content.view.style.width = "".concat(width + 4, "px");
|
71213
|
+
}
|
71214
|
+
if (region.content.view.style.height !== "fit-content") {
|
71215
|
+
region.content.view.style.height = "".concat(height + 4, "px");
|
71216
|
+
}
|
71201
71217
|
return Promise.resolve();
|
71202
71218
|
}
|
71203
71219
|
},
|
@@ -71751,19 +71767,17 @@ var StaticRegionContent = /*#__PURE__*/ function(RegionContent) {
|
|
71751
71767
|
{
|
71752
71768
|
key: "render",
|
71753
71769
|
value: function render(force) {
|
71754
|
-
var
|
71755
|
-
var _this_content, _this_content_extra_sz, _this_content_extra, _this_content1, _this_content_extra_sz1, _this_content_extra1, _this_content2;
|
71770
|
+
var _this_content;
|
71756
71771
|
if ((_this_content = this.content) === null || _this_content === void 0 ? void 0 : _this_content.pending) {
|
71757
71772
|
return;
|
71758
71773
|
}
|
71759
|
-
this.container.style.width = "
|
71760
|
-
this.container.style.height = "
|
71774
|
+
this.container.style.width = "fit-content";
|
71775
|
+
this.container.style.height = "fit-content";
|
71761
71776
|
this.container.dataset.state = this.box.area(this.plane.size) > 0 ? "visible" : "hidden";
|
71762
71777
|
this.container.childNodes.forEach(function(node) {
|
71763
71778
|
if (_instanceof(node, HTMLElement)) {
|
71764
|
-
|
71765
|
-
node.style.
|
71766
|
-
node.style.height = "".concat((_this_content1 = _this.content) === null || _this_content1 === void 0 ? void 0 : (_this_content_extra1 = _this_content1.extra) === null || _this_content_extra1 === void 0 ? void 0 : (_this_content_extra_sz1 = _this_content_extra1.sz) === null || _this_content_extra_sz1 === void 0 ? void 0 : _this_content_extra_sz1.h, "px");
|
71779
|
+
node.style.width = "fit-content";
|
71780
|
+
node.style.height = "fit-content";
|
71767
71781
|
}
|
71768
71782
|
});
|
71769
71783
|
}
|