@adstage/web-sdk 2.3.7 โ 2.4.1
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/README.md +1 -1
- package/dist/index.cjs.js +1880 -2001
- package/dist/index.d.ts +2 -68
- package/dist/index.esm.js +1881 -1999
- package/dist/index.standalone.js +2206 -2396
- package/package.json +1 -1
- package/src/core/AdStage.ts +0 -9
- package/src/index.ts +0 -3
- package/src/managers/ads/advertisement-event-tracker.ts +8 -15
- package/src/managers/ads/carousel-slider-manager.ts +4 -35
- package/src/managers/ads/text-transition-manager.ts +1 -2
- package/src/managers/ads/viewable-event-tracker.ts +1 -5
- package/src/modules/ads/AdRenderer.ts +730 -0
- package/src/modules/ads/AdsModule.ts +27 -737
- package/src/renderers/base-renderer.ts +6 -10
|
@@ -108,24 +108,20 @@ export abstract class BaseAdRenderer implements AdRenderer {
|
|
|
108
108
|
protected getImageStyles(slot?: AdSlot): Record<string, string> {
|
|
109
109
|
const styles: Record<string, string> = {
|
|
110
110
|
display: 'block',
|
|
111
|
+
'max-width': '100%',
|
|
112
|
+
height: 'auto',
|
|
111
113
|
'object-position': 'center', // ๐ฏ ์ด๋ฏธ์ง ํญ์ ์ค์ ์ ๋ ฌ
|
|
112
114
|
};
|
|
113
115
|
|
|
114
|
-
// ์ฌ์ฉ์๊ฐ ์ปจํ
์ด๋ ํฌ๊ธฐ๋ฅผ
|
|
116
|
+
// ์ฌ์ฉ์๊ฐ ์ปจํ
์ด๋ ํฌ๊ธฐ๋ฅผ ์ง์ ํ ๊ฒฝ์ฐ์๋ง ํฌ๊ธฐ ์ ํ
|
|
115
117
|
const parsedWidth = this.parseSizeValue(slot?.width);
|
|
116
118
|
const parsedHeight = this.parseSizeValue(slot?.height);
|
|
117
|
-
const hasUserDefinedSize = parsedWidth || parsedHeight;
|
|
118
119
|
|
|
119
|
-
if (
|
|
120
|
-
// ๐ฏ ์ฌ์ฉ์๊ฐ ํฌ๊ธฐ๋ฅผ ์ง์ ํ ๊ฒฝ์ฐ: ์ปจํ
์ด๋์ ๊ฝ ์ฐจ๋๋ก ์ค์
|
|
120
|
+
if (parsedWidth && parsedHeight) {
|
|
121
121
|
styles.width = '100%';
|
|
122
122
|
styles.height = '100%';
|
|
123
|
-
styles['object-fit'] = 'cover';
|
|
124
|
-
styles['object-position'] = 'center';
|
|
125
|
-
} else {
|
|
126
|
-
// ์ฌ์ฉ์๊ฐ ํฌ๊ธฐ๋ฅผ ์ง์ ํ์ง ์์ ๊ฒฝ์ฐ: ์๋ณธ ์ด๋ฏธ์ง ํฌ๊ธฐ ์ ์ง
|
|
127
|
-
styles['max-width'] = '100%';
|
|
128
|
-
styles.height = 'auto';
|
|
123
|
+
styles['object-fit'] = 'cover';
|
|
124
|
+
styles['object-position'] = 'center'; // ๐ฏ ํฌ๊ธฐ ์กฐ์ ์์๋ ์ค์ ์ ๋ ฌ
|
|
129
125
|
}
|
|
130
126
|
|
|
131
127
|
return styles;
|