@brndts/brndts-ads 1.13.2 → 1.13.3
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 +20 -19
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -19
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
@@ -80189,7 +80189,8 @@ var DefaultTemplate = /*#__PURE__*/ function() {
|
|
80189
80189
|
width: plane.width - (cutout.x + cutout.width),
|
80190
80190
|
height: cutout.y + cutout.height
|
80191
80191
|
}),
|
80192
|
-
name: "A"
|
80192
|
+
name: "A",
|
80193
|
+
maxSlots: 3
|
80193
80194
|
});
|
80194
80195
|
}
|
80195
80196
|
if (plane.height - (cutout.y + cutout.height) > 0) {
|
@@ -80201,7 +80202,8 @@ var DefaultTemplate = /*#__PURE__*/ function() {
|
|
80201
80202
|
width: plane.width,
|
80202
80203
|
height: plane.height - (cutout.y + cutout.height)
|
80203
80204
|
}),
|
80204
|
-
name: "B"
|
80205
|
+
name: "B",
|
80206
|
+
maxSlots: 1
|
80205
80207
|
});
|
80206
80208
|
}
|
80207
80209
|
return areas;
|
@@ -80228,7 +80230,8 @@ var FullscreenTemplate = /*#__PURE__*/ function() {
|
|
80228
80230
|
width: plane.width - (cutout.x + cutout.width),
|
80229
80231
|
height: plane.height
|
80230
80232
|
}),
|
80231
|
-
name: "A"
|
80233
|
+
name: "A",
|
80234
|
+
maxSlots: 3
|
80232
80235
|
});
|
80233
80236
|
}
|
80234
80237
|
if (plane.height - (cutout.y + cutout.height) > 0) {
|
@@ -80243,7 +80246,8 @@ var FullscreenTemplate = /*#__PURE__*/ function() {
|
|
80243
80246
|
available: {
|
80244
80247
|
w: 0.7
|
80245
80248
|
},
|
80246
|
-
name: "B"
|
80249
|
+
name: "B",
|
80250
|
+
maxSlots: 1
|
80247
80251
|
});
|
80248
80252
|
}
|
80249
80253
|
return areas;
|
@@ -80351,6 +80355,9 @@ var RegionPacker = /*#__PURE__*/ function(_import_events8_default) {
|
|
80351
80355
|
}
|
80352
80356
|
index -= 1;
|
80353
80357
|
}
|
80358
|
+
if (result.length >= region.maxSlots) {
|
80359
|
+
break;
|
80360
|
+
}
|
80354
80361
|
}
|
80355
80362
|
return result;
|
80356
80363
|
}
|
@@ -80535,12 +80542,6 @@ var StaticRegionContent2 = /*#__PURE__*/ function(RegionContent) {
|
|
80535
80542
|
this.container.style.width = "fit-content";
|
80536
80543
|
this.container.style.height = "fit-content";
|
80537
80544
|
this.container.dataset.state = this.box.area(this.plane.size) > 0 ? "visible" : "hidden";
|
80538
|
-
this.container.childNodes.forEach(function(node) {
|
80539
|
-
if (_instanceof(node, HTMLElement)) {
|
80540
|
-
node.style.width = "fit-content";
|
80541
|
-
node.style.height = "fit-content";
|
80542
|
-
}
|
80543
|
-
});
|
80544
80545
|
}
|
80545
80546
|
}
|
80546
80547
|
]);
|
@@ -80788,6 +80789,7 @@ var RegionsContainerView = /*#__PURE__*/ function() {
|
|
80788
80789
|
}
|
80789
80790
|
if (this.contentLayer) {
|
80790
80791
|
this.contentLayer.style.position = "absolute";
|
80792
|
+
this.contentLayer.style.overflow = "hidden";
|
80791
80793
|
this.contentLayer.style.top = "".concat(this.position.y, "px");
|
80792
80794
|
this.contentLayer.style.left = "".concat(this.position.x, "px");
|
80793
80795
|
this.contentLayer.style.width = "".concat(this.size.width, "px");
|
@@ -80998,16 +81000,15 @@ var AdRegionsArea = /*#__PURE__*/ function() {
|
|
80998
81000
|
{
|
80999
81001
|
key: "clear",
|
81000
81002
|
value: function clear() {
|
81001
|
-
|
81003
|
+
this.updateSize({
|
81004
|
+
width: 0,
|
81005
|
+
height: 0
|
81006
|
+
}, this.context.media.aspectRatio);
|
81007
|
+
this.updatePosition({
|
81008
|
+
x: 0,
|
81009
|
+
y: 0
|
81010
|
+
});
|
81002
81011
|
this.regionsObjects.forEach(function(region) {
|
81003
|
-
_this.updateSize({
|
81004
|
-
width: 0,
|
81005
|
-
height: 0
|
81006
|
-
}, _this.context.media.aspectRatio);
|
81007
|
-
_this.updatePosition({
|
81008
|
-
x: 0,
|
81009
|
-
y: 0
|
81010
|
-
});
|
81011
81012
|
region.clear();
|
81012
81013
|
});
|
81013
81014
|
}
|