ados-rcm 1.1.402 → 1.1.404
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/AModule/AUtils/bound.d.ts +10 -2
- package/dist/index.cjs.js +92 -92
- package/dist/index.es.js +5274 -5203
- package/package.json +1 -1
@@ -17,6 +17,7 @@ export declare const textMeasurement: {
|
|
17
17
|
value: string;
|
18
18
|
timestamp: number;
|
19
19
|
};
|
20
|
+
_charWidthMap: Map<string, number>;
|
20
21
|
/**
|
21
22
|
* 캐시 초기화
|
22
23
|
*/
|
@@ -25,6 +26,13 @@ export declare const textMeasurement: {
|
|
25
26
|
* 문서의 기본 폰트 스타일 가져오기 (캐싱 적용)
|
26
27
|
*/
|
27
28
|
getDefaultFont(): string;
|
29
|
+
/**
|
30
|
+
* 개별 문자의 너비 측정 (캐싱 적용)
|
31
|
+
* @param char 측정할 문자
|
32
|
+
* @param font 폰트 정보
|
33
|
+
* @returns 문자 너비
|
34
|
+
*/
|
35
|
+
measureCharWidth(char: string, font: string): number;
|
28
36
|
/**
|
29
37
|
* React 노드에서 텍스트 콘텐츠를 추출
|
30
38
|
* @param node React 노드
|
@@ -32,7 +40,7 @@ export declare const textMeasurement: {
|
|
32
40
|
*/
|
33
41
|
extractTextFromNode(node: React.ReactNode): string;
|
34
42
|
/**
|
35
|
-
* 텍스트 너비 측정 (
|
43
|
+
* 텍스트 너비 측정 (정확도 향상 버전)
|
36
44
|
* @param text 측정할 텍스트
|
37
45
|
* @param font 폰트 스타일
|
38
46
|
* @returns 텍스트 너비
|
@@ -54,7 +62,7 @@ export declare const textMeasurement: {
|
|
54
62
|
*/
|
55
63
|
measureRenderedOptionWidth<T>(option: T, renderer: (option: T) => React.ReactNode): number;
|
56
64
|
/**
|
57
|
-
* Select 컴포넌트의 최적 너비 계산 (
|
65
|
+
* Select 컴포넌트의 최적 너비 계산 (정확성 향상 버전)
|
58
66
|
*/
|
59
67
|
calculateOptimalSelectWidth<T>({ elementRef, options, selectedOption, selectedOptions, placeholder, optionRenderer, type, isMulti, }: {
|
60
68
|
elementRef: React.RefObject<HTMLElement>;
|