realchart 1.4.29 → 1.4.30
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/gauge.d.ts +6 -0
- package/gauge.js +2 -2
- package/gauge.mjs +2 -2
- package/heatmap.js +1 -1
- package/heatmap.mjs +1 -1
- package/ie/gauge.ie.js +2 -2
- package/ie/heatmap.ie.js +1 -1
- package/ie/index.ie.js +2 -2
- package/ie/pictogram.ie.js +1 -1
- package/ie/split.ie.js +1 -1
- package/ie/treemap.ie.js +1 -1
- package/ie/vector.ie.js +1 -1
- package/ie/wordcloud.ie.js +1 -1
- package/index.d.ts +71 -3
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
- package/pictogram.js +1 -1
- package/pictogram.mjs +1 -1
- package/split.js +1 -1
- package/split.mjs +1 -1
- package/treemap.js +1 -1
- package/treemap.mjs +1 -1
- package/vector.js +1 -1
- package/vector.mjs +1 -1
- package/wordcloud.js +1 -1
- package/wordcloud.mjs +1 -1
package/ie/pictogram.ie.js
CHANGED
package/ie/split.ie.js
CHANGED
package/ie/treemap.ie.js
CHANGED
package/ie/vector.ie.js
CHANGED
package/ie/wordcloud.ie.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -9254,7 +9254,7 @@ declare class CategoryAxisLabel extends AxisLabel<CategoryAxisLabelOptions> {
|
|
|
9254
9254
|
* {@link options} 모델은 {@link https://realchart.co.kr/docs/api/options/AxisGridOptions AxisGridOptions}이다.
|
|
9255
9255
|
*/
|
|
9256
9256
|
declare class CategoryAxisGrid extends AxisGrid<AxisGridOptions> {
|
|
9257
|
-
getPositions(axis: CategoryAxis): number[];
|
|
9257
|
+
getPositions(axis: CategoryAxis, length: number): number[];
|
|
9258
9258
|
}
|
|
9259
9259
|
/**
|
|
9260
9260
|
* 카테고리 축 모델.<br/>
|
|
@@ -9294,6 +9294,10 @@ declare class CategoryAxis extends Axis<CategoryAxisOptions> {
|
|
|
9294
9294
|
private _catLen;
|
|
9295
9295
|
_pts: number[];
|
|
9296
9296
|
_tstep: number;
|
|
9297
|
+
/** 연속 정수 구간이 데이터 대비 과도할 때 linear 축처럼 수치 비율로 배치. */
|
|
9298
|
+
private _numericScale;
|
|
9299
|
+
private static readonly NUMERIC_SCALE_SPAN_THRESHOLD;
|
|
9300
|
+
private static readonly NUMERIC_SCALE_SPAN_FACTOR;
|
|
9297
9301
|
get tick(): CategoryAxisTick;
|
|
9298
9302
|
/**
|
|
9299
9303
|
* @append
|
|
@@ -9352,6 +9356,8 @@ declare class CategoryAxis extends Axis<CategoryAxisOptions> {
|
|
|
9352
9356
|
getLabelX(length: number, pos: number): number;
|
|
9353
9357
|
_type(): string;
|
|
9354
9358
|
unitPad(): number;
|
|
9359
|
+
/** numeric scale 모드 여부 (linear 배치). grid 등에서 사용. */
|
|
9360
|
+
isNumericScale(): boolean;
|
|
9355
9361
|
continuous(): boolean;
|
|
9356
9362
|
_prepareZoom(): AxisZoom;
|
|
9357
9363
|
protected _createGrid(): CategoryAxisGrid;
|
|
@@ -9367,6 +9373,8 @@ declare class CategoryAxis extends Axis<CategoryAxisOptions> {
|
|
|
9367
9373
|
};
|
|
9368
9374
|
protected _doBuildTicks(min: number, max: number, length: number, phase: number): IAxisTick[];
|
|
9369
9375
|
_calcPoints(length: number, phase: number): void;
|
|
9376
|
+
private $_scaleNumericPts;
|
|
9377
|
+
private $_updateMarkPoints;
|
|
9370
9378
|
getPos(length: number, value: number): number;
|
|
9371
9379
|
valueAt(length: number, pos: number): number;
|
|
9372
9380
|
getUnitLen(length: number, value: number): number;
|
|
@@ -9377,6 +9385,38 @@ declare class CategoryAxis extends Axis<CategoryAxisOptions> {
|
|
|
9377
9385
|
min: number;
|
|
9378
9386
|
max: number;
|
|
9379
9387
|
};
|
|
9388
|
+
private $_hasExplicitCategories;
|
|
9389
|
+
/** minValue·maxValue로 tick 범위가 명시된 경우. */
|
|
9390
|
+
private $_hasDefinedTickRange;
|
|
9391
|
+
/**
|
|
9392
|
+
* 데이터 범위에 minValue/maxValue를 반영한다.<br/>
|
|
9393
|
+
* 슬롯 모드에서 둘 다 지정되면 카테고리 tick 범위로 hard clamp하고,
|
|
9394
|
+
* numeric scale에서는 LinearAxis처럼 명시 범위를 확장만 한다.
|
|
9395
|
+
* (hard clamp 시 maxValue보다 큰 데이터가 getPos NaN → 미표시/오류)
|
|
9396
|
+
*/
|
|
9397
|
+
private $_applyRangeOptions;
|
|
9398
|
+
/** 명시 categories에서 유효한 슬롯 인덱스인지. */
|
|
9399
|
+
private $_isValidCategoryIndex;
|
|
9400
|
+
/**
|
|
9401
|
+
* explicit categories + 수치 data일 때 numeric scale 여부.<br/>
|
|
9402
|
+
* 인덱스가 categories 개수를 넘는 것(6, 7…)은 슬롯 확장이고,
|
|
9403
|
+
* 387749 같은 큰 수치만 linear 축으로 처리한다.
|
|
9404
|
+
*/
|
|
9405
|
+
private $_needsNumericScaleForExplicitCategories;
|
|
9406
|
+
private $_shouldUseNumericScale;
|
|
9407
|
+
/**
|
|
9408
|
+
* categories 미지정 + 수치 값만 있을 때 min~max 전체 정수 구간을 펼치면
|
|
9409
|
+
* (예: -130~130000 → 13만 슬롯) 렌더 비용이 폭증한다.
|
|
9410
|
+
* linear 축처럼 수치 비율로 위치를 계산한다.
|
|
9411
|
+
* minValue/maxValue가 명시돼도 span이 크면 동일하게 numeric scale을 사용한다.
|
|
9412
|
+
*/
|
|
9413
|
+
private $_resolveNumericScale;
|
|
9414
|
+
private $_doBuildNumericTicks;
|
|
9415
|
+
private $_buildNumericTickValues;
|
|
9416
|
+
private $_getNumericPos;
|
|
9417
|
+
private $_numericValueAt;
|
|
9418
|
+
/** 데이터 값 → pts 배열 슬롯 인덱스(0 기준). 유효하지 않으면 -1. */
|
|
9419
|
+
private $_slotIndex;
|
|
9380
9420
|
private $_getSpanFromPts;
|
|
9381
9421
|
private $_getDividerPosFromPts;
|
|
9382
9422
|
private $_getCategoryEdgePos;
|
|
@@ -10056,6 +10096,8 @@ declare class PlottingItemCollection extends ChartItemCollection<PlottingItem> {
|
|
|
10056
10096
|
connect(chart: IChart): void;
|
|
10057
10097
|
prepareRender(): void;
|
|
10058
10098
|
prepareAfter(): void;
|
|
10099
|
+
updateOptions(source: any, render: boolean): void;
|
|
10100
|
+
private $_rebuildSeriesList;
|
|
10059
10101
|
private $_loadItem;
|
|
10060
10102
|
private $_add;
|
|
10061
10103
|
}
|
|
@@ -10308,7 +10350,8 @@ declare abstract class SeriesGroup<T extends Series = Series, OP extends SeriesG
|
|
|
10308
10350
|
_getVisiblePoints(): DataPoint[];
|
|
10309
10351
|
getLayoutMax(): number;
|
|
10310
10352
|
protected _doInit(op: OP): void;
|
|
10311
|
-
protected
|
|
10353
|
+
protected _doLoad(op: OP, source: any): void;
|
|
10354
|
+
updateOptions(source?: OP, render?: boolean): this;
|
|
10312
10355
|
protected _doSaveArray(prop: string, value: any[]): any[];
|
|
10313
10356
|
_prepareRender(): void;
|
|
10314
10357
|
_connect(chart: IChart): void;
|
|
@@ -10317,7 +10360,7 @@ declare abstract class SeriesGroup<T extends Series = Series, OP extends SeriesG
|
|
|
10317
10360
|
protected abstract _canContain(ser: Series): boolean;
|
|
10318
10361
|
_setIndex(index: number): void;
|
|
10319
10362
|
protected _doPrepareSeries(series: T[]): void;
|
|
10320
|
-
private
|
|
10363
|
+
private _syncChildren;
|
|
10321
10364
|
private $_add;
|
|
10322
10365
|
private $_collectValues;
|
|
10323
10366
|
private $_collectPoints;
|
|
@@ -11199,6 +11242,8 @@ declare abstract class AxisTick<OP extends AxisTickOptions = AxisTickOptions> ex
|
|
|
11199
11242
|
canUseNumSymbols(): boolean;
|
|
11200
11243
|
_getLength(): number;
|
|
11201
11244
|
_getGap(): number;
|
|
11245
|
+
isShowLast(): boolean;
|
|
11246
|
+
isShowFirst(): boolean;
|
|
11202
11247
|
protected _doSetSimple(src: any): boolean;
|
|
11203
11248
|
protected _doPrepareRender(chart: IChart): void;
|
|
11204
11249
|
}
|
|
@@ -11807,6 +11852,29 @@ interface AxisTickOptions extends AxisItemOptions {
|
|
|
11807
11852
|
* @default 3 픽셀
|
|
11808
11853
|
*/
|
|
11809
11854
|
gap?: number;
|
|
11855
|
+
/**
|
|
11856
|
+
* true면 다른 설정과 상관없이 첫번째 tick은 항상 표시된다.<br/>
|
|
11857
|
+
* category 축의 {@link https://realchart.co.kr/config/config/xAxis/category/tick#step tick step} 등으로 생략되더라도
|
|
11858
|
+
* 첫 tick을 유지한다.<br/>
|
|
11859
|
+
* linear, log, time 축에서는 `true`로 명시했을 때만
|
|
11860
|
+
* 범위(trim) 계산 시 첫 tick을 제거하지 않는다.
|
|
11861
|
+
*
|
|
11862
|
+
* @default category 축 true. linear, log, time 축은 undefined.
|
|
11863
|
+
*/
|
|
11864
|
+
showFirst?: boolean;
|
|
11865
|
+
/**
|
|
11866
|
+
* 마지막 tick 라벨 표시 여부.<br/>
|
|
11867
|
+
* `true`이면 category 축의 {@link https://realchart.co.kr/config/config/xAxis/category/tick#step tick step} 등으로
|
|
11868
|
+
* 생략되더라도 마지막 tick을 추가한다.<br/>
|
|
11869
|
+
* `false`이면 step에 포함되어 있어도 마지막 tick을 표시하지 않는다.<br/>
|
|
11870
|
+
* 미지정(undefined)이면 step 등 기존 규칙만 따른다.
|
|
11871
|
+
* cartesian, polar 차트 모두 동일하게 적용된다.<br/>
|
|
11872
|
+
* linear, log, time 축에서는 `true`로 명시했을 때만
|
|
11873
|
+
* 범위(trim) 계산 시 마지막 tick을 제거하지 않는다.
|
|
11874
|
+
*
|
|
11875
|
+
* @default undefined
|
|
11876
|
+
*/
|
|
11877
|
+
showLast?: boolean;
|
|
11810
11878
|
}
|
|
11811
11879
|
/**
|
|
11812
11880
|
* major grid 사이 보조 격자선(minor grid line) 설정 옵션.<br/>
|