pds-dev-kit-web-test 2.7.246 → 2.7.249
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/src/sub/DynamicLayout/mock_contentsList.js +1 -1
- package/dist/src/sub/DynamicLayout/mocks.d.ts +1 -3596
- package/dist/src/sub/DynamicLayout/mocks.js +4 -4
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/ContentsCarousel.js +10 -8
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationNextBtn.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/components/CustomNavigationPrevBtn.js +2 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/elementPositions.d.ts +5 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/elementPositions.js +243 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsCarousel/hooks/useFlexGridLayout.js +26 -43
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.d.ts +1 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/ContentsList.js +12 -7
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.d.ts +2 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/components/CustomPagination.js +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/elementPositions.d.ts +4 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/elementPositions.js +108 -0
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.d.ts +1 -2
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/hooks/useFlexGridLayout.js +26 -45
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/ContentsList/types.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.d.ts +1 -1
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/elementPositions.js +10 -43
- package/dist/src/sub/DynamicLayout/sections/CustomSection/components/ComponentBlock/componentBlocks/SlideBanner/hooks/useFlexGridLayout.js +10 -36
- package/package.json +1 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.POS_INSET = exports.getPosition = void 0;
|
|
4
|
+
var GAP = 8;
|
|
5
|
+
function getPosition(position, designType, size, elementType) {
|
|
6
|
+
if (position.startsWith('OUTSET')) {
|
|
7
|
+
if (elementType === 'GROUP') {
|
|
8
|
+
return POS_OUTSET_GROUP[position];
|
|
9
|
+
}
|
|
10
|
+
var val = POS_OUTSET_PAGINATION[position];
|
|
11
|
+
return val;
|
|
12
|
+
}
|
|
13
|
+
if (elementType === 'GROUP') {
|
|
14
|
+
return exports.POS_INSET[position];
|
|
15
|
+
}
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getPosition = getPosition;
|
|
19
|
+
exports.POS_INSET = {
|
|
20
|
+
INSET1: { top: GAP, left: GAP },
|
|
21
|
+
INSET2: { top: GAP, left: '50%', transform: 'translateX(-50%)' },
|
|
22
|
+
INSET3: { top: GAP, right: GAP },
|
|
23
|
+
INSET4: { top: '50%', right: GAP, transform: 'translateY(-50%)' },
|
|
24
|
+
INSET5: { bottom: GAP, right: GAP },
|
|
25
|
+
INSET6: { bottom: GAP, left: '50%', transform: 'translateX(-50%)' },
|
|
26
|
+
INSET7: { left: GAP, bottom: GAP },
|
|
27
|
+
INSET8: { top: '50%', left: GAP, transform: 'translateY(-50%)' }
|
|
28
|
+
};
|
|
29
|
+
var POS_OUTSET_PAGINATION = {
|
|
30
|
+
OUTSET1: { bottom: 15 },
|
|
31
|
+
OUTSET2: { bottom: 15 },
|
|
32
|
+
OUTSET3: { bottom: 15 },
|
|
33
|
+
OUTSET4: { left: 15 },
|
|
34
|
+
OUTSET5: { left: 15 },
|
|
35
|
+
OUTSET6: { left: 15 },
|
|
36
|
+
OUTSET7: { top: 15 },
|
|
37
|
+
OUTSET8: { top: 15 },
|
|
38
|
+
OUTSET9: { top: 15 },
|
|
39
|
+
OUTSET10: { right: 15 },
|
|
40
|
+
OUTSET11: { right: 15 },
|
|
41
|
+
OUTSET12: { right: 15 }
|
|
42
|
+
};
|
|
43
|
+
var POS_OUTSET_GROUP = {
|
|
44
|
+
OUTSET1: {
|
|
45
|
+
top: 0,
|
|
46
|
+
height: 0
|
|
47
|
+
},
|
|
48
|
+
OUTSET2: {
|
|
49
|
+
bottom: '100%',
|
|
50
|
+
height: 0,
|
|
51
|
+
left: '50%',
|
|
52
|
+
transform: 'translateX(-50%)'
|
|
53
|
+
},
|
|
54
|
+
OUTSET3: {
|
|
55
|
+
bottom: '100%',
|
|
56
|
+
height: 0,
|
|
57
|
+
right: 0,
|
|
58
|
+
justifyContent: 'flex-start'
|
|
59
|
+
},
|
|
60
|
+
OUTSET4: {
|
|
61
|
+
top: 0,
|
|
62
|
+
width: 0,
|
|
63
|
+
right: 0
|
|
64
|
+
},
|
|
65
|
+
OUTSET5: {
|
|
66
|
+
top: '50%',
|
|
67
|
+
width: 0,
|
|
68
|
+
right: 0,
|
|
69
|
+
transform: 'translateY(-50%)'
|
|
70
|
+
},
|
|
71
|
+
OUTSET6: {
|
|
72
|
+
bottom: 0,
|
|
73
|
+
width: 0,
|
|
74
|
+
right: 0
|
|
75
|
+
},
|
|
76
|
+
OUTSET7: {
|
|
77
|
+
bottom: 0,
|
|
78
|
+
height: 0,
|
|
79
|
+
right: 0
|
|
80
|
+
},
|
|
81
|
+
OUTSET8: {
|
|
82
|
+
bottom: 0,
|
|
83
|
+
height: 0,
|
|
84
|
+
left: '50%',
|
|
85
|
+
transform: 'translateX(-50%)'
|
|
86
|
+
},
|
|
87
|
+
OUTSET9: {
|
|
88
|
+
bottom: 0,
|
|
89
|
+
height: 0,
|
|
90
|
+
left: 0
|
|
91
|
+
},
|
|
92
|
+
OUTSET10: {
|
|
93
|
+
bottom: 0,
|
|
94
|
+
width: 0,
|
|
95
|
+
left: 0
|
|
96
|
+
},
|
|
97
|
+
OUTSET11: {
|
|
98
|
+
top: '50%',
|
|
99
|
+
width: 0,
|
|
100
|
+
left: 0,
|
|
101
|
+
transform: 'translateY(-50%)'
|
|
102
|
+
},
|
|
103
|
+
OUTSET12: {
|
|
104
|
+
top: 0,
|
|
105
|
+
width: 0,
|
|
106
|
+
left: 0
|
|
107
|
+
}
|
|
108
|
+
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import type { ContentsListElementsProps } from '../ContentsList';
|
|
3
|
-
import type { CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE } from '../types';
|
|
4
3
|
import type { CSSProperties } from 'styled-components';
|
|
5
4
|
export declare const useFlexGridLayout: ({ components }: {
|
|
6
5
|
components: ContentsListElementsProps[];
|
|
@@ -14,6 +13,6 @@ export declare const useFlexGridLayout: ({ components }: {
|
|
|
14
13
|
left: string;
|
|
15
14
|
};
|
|
16
15
|
componentGroups: Record<string, ContentsListElementsProps[]>;
|
|
17
|
-
getPositionStyle: (position: string, ccbInset: Record<string, string>, designType:
|
|
16
|
+
getPositionStyle: (position: string, ccbInset: Record<string, string>, designType: string, size: 'LARGE' | 'MEDIUM' | 'SMALL' | 'GROUP', elementType: string) => CSSProperties;
|
|
18
17
|
getComponentGroupLayout: (components: ContentsListElementsProps[], position: string) => CSSProperties;
|
|
19
18
|
};
|
|
@@ -13,13 +13,13 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.useFlexGridLayout = void 0;
|
|
15
15
|
var react_1 = require("react");
|
|
16
|
+
var elementPositions_1 = require("./elementPositions");
|
|
16
17
|
var useFlexGridLayout = function (_a) {
|
|
17
18
|
var components = _a.components;
|
|
18
19
|
var _b = (0, react_1.useState)({ top: 0, right: 0, bottom: 0, left: 0 }), groupSizes = _b[0], setGroupSizes = _b[1];
|
|
19
20
|
var _c = (0, react_1.useState)({ width: 0, height: 0 }), layoutSize = _c[0], setLayoutSize = _c[1];
|
|
20
21
|
var layoutRef = (0, react_1.useRef)(null);
|
|
21
22
|
var positionRefs = (0, react_1.useRef)({});
|
|
22
|
-
console.log('useFlexGridLayout components:', components);
|
|
23
23
|
// 위치별로 컴포넌트 그룹화
|
|
24
24
|
var getComponentsByPosition = function () {
|
|
25
25
|
var groups = {};
|
|
@@ -60,51 +60,33 @@ var useFlexGridLayout = function (_a) {
|
|
|
60
60
|
};
|
|
61
61
|
return directions[position];
|
|
62
62
|
};
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
var getPositionStyle = function (position, ccbInset, designType, size, elementType) {
|
|
64
|
+
var EAST = ['OUTSET4', 'OUTSET5', 'OUTSET6'];
|
|
65
|
+
var WEST = ['OUTSET10', 'OUTSET11', 'OUTSET12'];
|
|
66
|
+
var SOUTH = ['OUTSET7', 'OUTSET8', 'OUTSET9'];
|
|
67
|
+
var NORTH = ['OUTSET1', 'OUTSET2', 'OUTSET3'];
|
|
68
|
+
var isEAST = EAST.includes(position);
|
|
69
|
+
var isWEST = WEST.includes(position);
|
|
70
|
+
var isSOUTH = SOUTH.includes(position);
|
|
71
|
+
var isNORTH = NORTH.includes(position);
|
|
65
72
|
var base = {
|
|
66
|
-
position: '
|
|
73
|
+
position: 'relative',
|
|
67
74
|
display: 'flex',
|
|
68
|
-
alignItems: 'center',
|
|
69
|
-
justifyContent: 'center'
|
|
75
|
+
alignItems: isSOUTH ? 'flex-start' : isNORTH ? 'flex-end' : 'center',
|
|
76
|
+
justifyContent: isEAST ? 'flex-start' : isWEST ? 'flex-end' : 'center'
|
|
70
77
|
};
|
|
71
|
-
// CCB의 중앙 위치 계산
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
// CCB의 실제 크기와 중앙 위치 계산
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
var
|
|
82
|
-
|
|
83
|
-
OUTSET2: { top: -50, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
|
|
84
|
-
OUTSET3: { top: -50, right: ccbRight },
|
|
85
|
-
OUTSET4: { top: ccbTop, right: -50 },
|
|
86
|
-
OUTSET5: { top: "".concat(ccbCenterY, "px"), right: -50, transform: 'translateY(-50%)' },
|
|
87
|
-
OUTSET6: { bottom: ccbBottom, right: -50 },
|
|
88
|
-
OUTSET7: { bottom: -50, right: ccbRight },
|
|
89
|
-
OUTSET8: { bottom: -50, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
|
|
90
|
-
OUTSET9: { bottom: -50, left: ccbLeft },
|
|
91
|
-
OUTSET10: { bottom: ccbBottom, left: -50 },
|
|
92
|
-
OUTSET11: { top: "".concat(ccbCenterY, "px"), left: -50, transform: 'translateY(-50%)' },
|
|
93
|
-
OUTSET12: { top: ccbTop, left: -50 },
|
|
94
|
-
INSET1: { top: ccbTop + GAP, left: ccbLeft + GAP },
|
|
95
|
-
INSET2: { top: ccbTop + GAP, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
|
|
96
|
-
INSET3: { top: ccbTop + GAP, right: ccbRight + GAP },
|
|
97
|
-
INSET4: { top: "".concat(ccbCenterY, "px"), right: ccbRight + GAP, transform: 'translateY(-50%)' },
|
|
98
|
-
INSET5: { bottom: ccbBottom + GAP, right: ccbRight + GAP },
|
|
99
|
-
INSET6: {
|
|
100
|
-
bottom: ccbBottom + GAP,
|
|
101
|
-
left: "".concat(ccbCenterX, "px"),
|
|
102
|
-
transform: 'translateX(-50%)'
|
|
103
|
-
},
|
|
104
|
-
INSET7: { bottom: ccbBottom + GAP, left: ccbLeft + GAP },
|
|
105
|
-
INSET8: { top: "".concat(ccbCenterY, "px"), left: ccbLeft + GAP, transform: 'translateY(-50%)' }
|
|
106
|
-
};
|
|
107
|
-
return __assign(__assign({}, base), positions[position]);
|
|
78
|
+
// // CCB의 중앙 위치 계산
|
|
79
|
+
// const ccbTop = parseFloat(ccbInset.top) || 0;
|
|
80
|
+
// const ccbRight = parseFloat(ccbInset.right) || 0;
|
|
81
|
+
// const ccbBottom = parseFloat(ccbInset.bottom) || 0;
|
|
82
|
+
// const ccbLeft = parseFloat(ccbInset.left) || 0;
|
|
83
|
+
// // CCB의 실제 크기와 중앙 위치 계산
|
|
84
|
+
// const ccbWidth = layoutSize.width - ccbLeft - ccbRight;
|
|
85
|
+
// const ccbHeight = layoutSize.height - ccbTop - ccbBottom;
|
|
86
|
+
// const ccbCenterX = ccbLeft + ccbWidth / 2;
|
|
87
|
+
// const ccbCenterY = ccbTop + ccbHeight / 2;
|
|
88
|
+
var pos = (0, elementPositions_1.getPosition)(position, designType, size, elementType);
|
|
89
|
+
return __assign(__assign({}, base), pos);
|
|
108
90
|
};
|
|
109
91
|
// 컴포넌트 그룹 레이아웃
|
|
110
92
|
var getComponentGroupLayout = function (components, position) {
|
|
@@ -130,8 +112,7 @@ var useFlexGridLayout = function (_a) {
|
|
|
130
112
|
return {
|
|
131
113
|
display: 'flex',
|
|
132
114
|
flexDirection: isHorizontal ? 'row' : 'column',
|
|
133
|
-
gap: '8px'
|
|
134
|
-
alignItems: 'center'
|
|
115
|
+
gap: '8px'
|
|
135
116
|
};
|
|
136
117
|
};
|
|
137
118
|
// ccbInset 계산
|
|
@@ -7,7 +7,7 @@ export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMSPACING_TYPE = 'WIDE' | 'NORMAL'
|
|
|
7
7
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMLINEHEIGHT_TYPE = NUMBER_INTEGER | null;
|
|
8
8
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_ITEMHEIGHTFITCONTENT_TYPE = boolean | null;
|
|
9
9
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_INFINITESCROLL_TYPE = boolean | null;
|
|
10
|
-
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16' | 'DESIGN17'
|
|
10
|
+
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSTYLE_TYPE = 'NONE' | 'DESIGN1' | 'DESIGN2' | 'DESIGN3' | 'DESIGN4' | 'DESIGN5' | 'DESIGN6' | 'DESIGN7' | 'DESIGN8' | 'DESIGN9' | 'DESIGN10' | 'DESIGN11' | 'DESIGN12' | 'DESIGN13' | 'DESIGN14' | 'DESIGN15' | 'DESIGN16' | 'DESIGN17';
|
|
11
11
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONLOCATION_TYPE = OUTSET_POSTIION | INSET_POSTIION;
|
|
12
12
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONSIZE_TYPE = 'SMALL' | 'MEDIUM' | 'LARGE' | null;
|
|
13
13
|
export type CB_STYLE_PROP_CONTENTSLIST_SPEC_PAGINATIONPRIMARYCOLOR = string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SlideBannerElementsProps } from '../SlideBanner';
|
|
2
2
|
import type { CSSProperties } from 'styled-components';
|
|
3
3
|
export declare function getPosition(position: string, designType: string, size: string, elementType: SlideBannerElementsProps['type'] | 'GROUP'): CSSProperties;
|
|
4
|
-
export declare const POS_INSET: Record<string,
|
|
4
|
+
export declare const POS_INSET: Record<string, CSSProperties>;
|
|
5
5
|
export declare const POS_OUTSET_NAVIGATION: Record<string, CSSProperties>;
|
|
@@ -3,13 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.POS_OUTSET_NAVIGATION = exports.POS_INSET = exports.getPosition = void 0;
|
|
4
4
|
var GAP = 8;
|
|
5
5
|
function getPosition(position, designType, size, elementType) {
|
|
6
|
-
var _a, _b;
|
|
7
6
|
if (position.startsWith('OUTSET')) {
|
|
8
7
|
if (elementType === 'GROUP') {
|
|
9
8
|
return POS_OUTSET_GROUP[position];
|
|
10
9
|
}
|
|
11
10
|
if (elementType === 'PROGRESSBAR') {
|
|
12
|
-
return
|
|
11
|
+
return exports.POS_INSET[position];
|
|
13
12
|
}
|
|
14
13
|
if (elementType === 'NEXT' || elementType === 'PREV') {
|
|
15
14
|
return exports.POS_OUTSET_NAVIGATION[position];
|
|
@@ -19,7 +18,7 @@ function getPosition(position, designType, size, elementType) {
|
|
|
19
18
|
// return POS_OUTSET_PAGINATION[position][designType][size];
|
|
20
19
|
}
|
|
21
20
|
if (elementType === 'GROUP') {
|
|
22
|
-
return
|
|
21
|
+
return exports.POS_INSET[position];
|
|
23
22
|
}
|
|
24
23
|
return {};
|
|
25
24
|
}
|
|
@@ -147,46 +146,14 @@ var POS_OUTSET_PAGINATION = {
|
|
|
147
146
|
}
|
|
148
147
|
};
|
|
149
148
|
exports.POS_INSET = {
|
|
150
|
-
INSET1: {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
SMALL: { top: GAP, left: '50%', transform: 'translateX(-50%)' }
|
|
159
|
-
},
|
|
160
|
-
INSET3: {
|
|
161
|
-
LARGE: { top: GAP, right: GAP },
|
|
162
|
-
MEDIUM: { top: GAP, right: GAP },
|
|
163
|
-
SMALL: { top: GAP, right: GAP }
|
|
164
|
-
},
|
|
165
|
-
INSET4: {
|
|
166
|
-
LARGE: { top: '50%', right: GAP, transform: 'translateY(-50%)' },
|
|
167
|
-
MEDIUM: { top: '50%', right: GAP, transform: 'translateY(-50%)' },
|
|
168
|
-
SMALL: { top: '50%', right: GAP, transform: 'translateY(-50%)' }
|
|
169
|
-
},
|
|
170
|
-
INSET5: {
|
|
171
|
-
LARGE: { bottom: GAP, right: GAP },
|
|
172
|
-
MEDIUM: { bottom: GAP, right: GAP },
|
|
173
|
-
SMALL: { bottom: GAP, right: GAP }
|
|
174
|
-
},
|
|
175
|
-
INSET6: {
|
|
176
|
-
LARGE: { bottom: GAP, left: '50%', transform: 'translateX(-50%)' },
|
|
177
|
-
MEDIUM: { bottom: GAP, left: '50%', transform: 'translateX(-50%)' },
|
|
178
|
-
SMALL: { bottom: GAP, left: '50%', transform: 'translateX(-50%)' }
|
|
179
|
-
},
|
|
180
|
-
INSET7: {
|
|
181
|
-
LARGE: { left: GAP, bottom: GAP },
|
|
182
|
-
MEDIUM: { left: GAP, bottom: GAP },
|
|
183
|
-
SMALL: { left: GAP, bottom: GAP }
|
|
184
|
-
},
|
|
185
|
-
INSET8: {
|
|
186
|
-
LARGE: { top: '50%', left: GAP, transform: 'translateY(-50%)' },
|
|
187
|
-
MEDIUM: { top: '50%', left: GAP, transform: 'translateY(-50%)' },
|
|
188
|
-
SMALL: { top: '50%', left: GAP, transform: 'translateY(-50%)' }
|
|
189
|
-
}
|
|
149
|
+
INSET1: { top: GAP, left: GAP },
|
|
150
|
+
INSET2: { top: GAP, left: '50%', transform: 'translateX(-50%)' },
|
|
151
|
+
INSET3: { top: GAP, right: GAP },
|
|
152
|
+
INSET4: { top: '50%', right: GAP, transform: 'translateY(-50%)' },
|
|
153
|
+
INSET5: { bottom: GAP, right: GAP },
|
|
154
|
+
INSET6: { bottom: GAP, left: '50%', transform: 'translateX(-50%)' },
|
|
155
|
+
INSET7: { left: GAP, bottom: GAP },
|
|
156
|
+
INSET8: { top: '50%', left: GAP, transform: 'translateY(-50%)' }
|
|
190
157
|
};
|
|
191
158
|
exports.POS_OUTSET_NAVIGATION = {
|
|
192
159
|
OUTSET1: { bottom: 20 },
|
|
@@ -76,42 +76,16 @@ var useFlexGridLayout = function (_a) {
|
|
|
76
76
|
alignItems: isSOUTH ? 'flex-start' : isNORTH ? 'flex-end' : 'center',
|
|
77
77
|
justifyContent: isEAST ? 'flex-start' : isWEST ? 'flex-end' : 'center'
|
|
78
78
|
};
|
|
79
|
-
// CCB의 중앙 위치 계산
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
// CCB의 실제 크기와 중앙 위치 계산
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
var positions = {
|
|
90
|
-
OUTSET1: { top: -50, left: ccbLeft },
|
|
91
|
-
OUTSET2: { top: -50, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
|
|
92
|
-
OUTSET3: { top: -50, right: ccbRight },
|
|
93
|
-
OUTSET4: { top: ccbTop, left: 'calc(-100% + 50px)' },
|
|
94
|
-
OUTSET5: { top: "".concat(ccbCenterY, "px"), right: 50, transform: 'translateY(-50%)' },
|
|
95
|
-
OUTSET6: { bottom: ccbBottom, right: 50 },
|
|
96
|
-
OUTSET7: { bottom: -50, right: ccbRight },
|
|
97
|
-
OUTSET8: { bottom: -50, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
|
|
98
|
-
OUTSET9: { bottom: -50, left: ccbLeft },
|
|
99
|
-
OUTSET10: { bottom: ccbBottom, left: -50 },
|
|
100
|
-
OUTSET11: { top: "".concat(ccbCenterY, "px"), left: -50, transform: 'translateY(-50%)' },
|
|
101
|
-
OUTSET12: { top: ccbTop, left: -50 },
|
|
102
|
-
INSET1: { top: ccbTop + GAP, left: ccbLeft + GAP },
|
|
103
|
-
INSET2: { top: ccbTop + GAP, left: "".concat(ccbCenterX, "px"), transform: 'translateX(-50%)' },
|
|
104
|
-
INSET3: { top: ccbTop + GAP, right: ccbRight + GAP },
|
|
105
|
-
INSET4: { top: "".concat(ccbCenterY, "px"), right: ccbRight + GAP, transform: 'translateY(-50%)' },
|
|
106
|
-
INSET5: { bottom: ccbBottom + GAP, right: ccbRight + GAP },
|
|
107
|
-
INSET6: {
|
|
108
|
-
bottom: ccbBottom + GAP,
|
|
109
|
-
left: "".concat(ccbCenterX, "px"),
|
|
110
|
-
transform: 'translateX(-50%)'
|
|
111
|
-
},
|
|
112
|
-
INSET7: { bottom: ccbBottom + GAP, left: ccbLeft + GAP },
|
|
113
|
-
INSET8: { top: "".concat(ccbCenterY, "px"), left: ccbLeft + GAP, transform: 'translateY(-50%)' }
|
|
114
|
-
};
|
|
79
|
+
// // CCB의 중앙 위치 계산
|
|
80
|
+
// const ccbTop = parseFloat(ccbInset.top) || 0;
|
|
81
|
+
// const ccbRight = parseFloat(ccbInset.right) || 0;
|
|
82
|
+
// const ccbBottom = parseFloat(ccbInset.bottom) || 0;
|
|
83
|
+
// const ccbLeft = parseFloat(ccbInset.left) || 0;
|
|
84
|
+
// // CCB의 실제 크기와 중앙 위치 계산
|
|
85
|
+
// const ccbWidth = layoutSize.width - ccbLeft - ccbRight;
|
|
86
|
+
// const ccbHeight = layoutSize.height - ccbTop - ccbBottom;
|
|
87
|
+
// const ccbCenterX = ccbLeft + ccbWidth / 2;
|
|
88
|
+
// const ccbCenterY = ccbTop + ccbHeight / 2;
|
|
115
89
|
var pos = (0, elementPositions_1.getPosition)(position, designType, size, elementType);
|
|
116
90
|
return __assign(__assign({}, base), pos);
|
|
117
91
|
};
|