realmap 1.0.10 → 1.0.12
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/band.js +2 -2
- package/band.mjs +2 -2
- package/chart.js +1 -1
- package/chart.mjs +1 -1
- package/editing.js +1 -1
- package/editing.mjs +1 -1
- package/export.js +1 -1
- package/export.mjs +1 -1
- package/feature.d.ts +1 -1
- package/feature.js +2 -2
- package/feature.mjs +2 -2
- package/heatmap.js +2 -2
- package/heatmap.mjs +2 -2
- package/index.d.ts +486 -202
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
- package/realmap-style.css +12 -1
- package/sankey.js +2 -2
- package/sankey.mjs +2 -2
- package/table.js +2 -2
- package/table.mjs +2 -2
- package/tiledweb.js +1 -1
- package/tiledweb.mjs +1 -1
- package/track.js +2 -2
- package/track.mjs +2 -2
- package/vector.js +2 -2
- package/vector.mjs +2 -2
package/index.d.ts
CHANGED
|
@@ -252,32 +252,32 @@ interface IPaddings {
|
|
|
252
252
|
/**
|
|
253
253
|
* @enum
|
|
254
254
|
*
|
|
255
|
-
* Legend나 ColorScale 등
|
|
255
|
+
* Legend나 ColorScale 등 맵차트 구성 요소들의 표시 위치.<br/>
|
|
256
256
|
* 위치를 지정한 후 다른 속성들로 정렬시킬 수 있다.
|
|
257
257
|
*/
|
|
258
258
|
declare const _ChartItemLocation: {
|
|
259
259
|
/**
|
|
260
|
-
*
|
|
260
|
+
* 맵차트 본체 아래 표시한다.
|
|
261
261
|
*
|
|
262
262
|
*/
|
|
263
263
|
readonly BOTTOM: "bottom";
|
|
264
264
|
/**
|
|
265
|
-
*
|
|
265
|
+
* 맵차트 타이틀 아래 표시한다.
|
|
266
266
|
*
|
|
267
267
|
*/
|
|
268
268
|
readonly TOP: "top";
|
|
269
269
|
/**
|
|
270
|
-
*
|
|
270
|
+
* 맵차트 본체 오른쪽에 표시한다.
|
|
271
271
|
*
|
|
272
272
|
*/
|
|
273
273
|
readonly RIGHT: "right";
|
|
274
274
|
/**
|
|
275
|
-
*
|
|
275
|
+
* 맵차트 본체 왼쪽에 표시한다.
|
|
276
276
|
*
|
|
277
277
|
*/
|
|
278
278
|
readonly LEFT: "left";
|
|
279
279
|
/**
|
|
280
|
-
*
|
|
280
|
+
* 맵차트 본체 영역 내부에 표시한다.
|
|
281
281
|
*
|
|
282
282
|
*/
|
|
283
283
|
readonly BODY: "body";
|
|
@@ -291,8 +291,17 @@ type Positions = 'top' | 'right' | 'bottom' | 'left';
|
|
|
291
291
|
interface ConfigObject {
|
|
292
292
|
[key: string]: any;
|
|
293
293
|
}
|
|
294
|
+
|
|
295
|
+
type ShapeDrawer = (rd: number, rd2: number) => (string | number)[];
|
|
294
296
|
type MapCoord = [number, number];
|
|
295
|
-
type
|
|
297
|
+
type MapRect = {
|
|
298
|
+
h1: number;
|
|
299
|
+
h2: number;
|
|
300
|
+
v1: number;
|
|
301
|
+
v2: number;
|
|
302
|
+
};
|
|
303
|
+
type MapArc = MapCoord[];
|
|
304
|
+
type MapPolygon = MapArc[];
|
|
296
305
|
type MapProps = any;
|
|
297
306
|
|
|
298
307
|
/**
|
|
@@ -350,19 +359,19 @@ interface MapInsetDisplay {
|
|
|
350
359
|
* 지정하지 않으면 1.
|
|
351
360
|
* 0보다 큰 값이어야 한다.
|
|
352
361
|
*/
|
|
353
|
-
scale?: number;
|
|
362
|
+
readonly scale?: number;
|
|
354
363
|
/**
|
|
355
364
|
* inset area의 [왼쪽, 위쪽] 기준으로, 표시 위치 [경도, 위도]를 도(°) 단위로 지정한다.<br/>
|
|
356
365
|
* [주의] {@page children}으로 적용될 때는 이 값 대신 {@page offset}을 반드시 지정해야 한다.
|
|
357
366
|
*/
|
|
358
|
-
coord?: MapCoord;
|
|
367
|
+
readonly coord?: MapCoord;
|
|
359
368
|
/**
|
|
360
369
|
* coord로 지정한 inset 위치에 더 추가되는 [경도, 위도] 값이거나
|
|
361
370
|
* coord가 지정되지 않은 경우 원래 위치에서 떨어진 위치 값.<br/>
|
|
362
371
|
* 라이브러리에서 제공하는 미리 정의된 inset 위치를 조정하는 값으로 사용할 수 있다.
|
|
363
372
|
* [주의] {@page children}으로 적용될 때는 {@page coord} 대신 반듯 이 값을 지정해야 한다.
|
|
364
373
|
*/
|
|
365
|
-
offset?: MapCoord;
|
|
374
|
+
readonly offset?: MapCoord;
|
|
366
375
|
/**
|
|
367
376
|
* inset을 구분하는 경계선을 도(°)단위로 지정한다.<br/>
|
|
368
377
|
* 값들은 space나 ','로 분리해서 x, y 순서대로 위치를 지정하고,
|
|
@@ -376,7 +385,7 @@ interface MapInsetDisplay {
|
|
|
376
385
|
* ex) '-0.1 h+0.05 +0.1 h+0.1 w+0.2 h' // 제주도 위쪽에 꺽인 line을 표시한다.
|
|
377
386
|
* '-0.2 -0.1 -0.2 h+0.1' // 울릉도 좌측에 직선으로 표시한다.
|
|
378
387
|
*/
|
|
379
|
-
border?: MapCoord[] | string;
|
|
388
|
+
readonly border?: MapCoord[] | string;
|
|
380
389
|
/**
|
|
381
390
|
* inset을 감싸서 구분하는 사각형을 도(°)단위로 지정한다.<br/>
|
|
382
391
|
* 이 값이 지정되면 {@page border}는 무시된다.<br/>
|
|
@@ -387,15 +396,21 @@ interface MapInsetDisplay {
|
|
|
387
396
|
* '0.05 0.01 0.03' // 상 0.05°, 우 0.01°, 하 0.03, 좌 0.01°
|
|
388
397
|
* '0.05 0.01 0.03 0.02' // 상, 우, 하, 좌
|
|
389
398
|
*/
|
|
390
|
-
frame?: string;
|
|
399
|
+
readonly frame?: string;
|
|
391
400
|
/**
|
|
392
401
|
* border나 frame에 적용할 스타일셋.<br/>
|
|
393
402
|
* 기본으로 'rm-map-series-inset' 클래스 선택자가 적용된다.
|
|
394
403
|
*/
|
|
395
|
-
style?: SVGStyleOrClass;
|
|
404
|
+
readonly style?: SVGStyleOrClass;
|
|
405
|
+
/**
|
|
406
|
+
* 명시적 false로 지정하면 이 inset이 포함하는 영역을 맵에서 제거한다.<br/>
|
|
407
|
+
* 대개 두 번째 map에서 사용된다.
|
|
408
|
+
*/
|
|
409
|
+
readonly visible?: boolean;
|
|
396
410
|
}
|
|
397
411
|
/**
|
|
398
412
|
* 본토에서 멀리 떨어진 영역들을 당겨서 표시하는 설정.<br/>
|
|
413
|
+
* [주의] 아래쪽 계산값들을 제외하곤 모두 readonly로 취급해야 한다.
|
|
399
414
|
*
|
|
400
415
|
* @css 'rm-map-series-inset'
|
|
401
416
|
*/
|
|
@@ -406,7 +421,8 @@ interface MapInset extends MapInsetDisplay {
|
|
|
406
421
|
* {@page parent}가 지정되지 않으면
|
|
407
422
|
* 자식들을 모두 함께 이동시킨다.
|
|
408
423
|
*/
|
|
409
|
-
area: string;
|
|
424
|
+
readonly area: string;
|
|
425
|
+
readonly name?: string;
|
|
410
426
|
/**
|
|
411
427
|
* 이 area가 존재하지 않고,
|
|
412
428
|
* {@page parent}가 지정되지 않으면
|
|
@@ -414,28 +430,37 @@ interface MapInset extends MapInsetDisplay {
|
|
|
414
430
|
* [주의] {@page frame}이나 {@page border}의 기준이 되는 child area의 id를 첫번째 항목으로 설정해야 한다.
|
|
415
431
|
* [주의] parent 하나에 한 번만 지정할 수 있다.
|
|
416
432
|
*/
|
|
417
|
-
children?: string[];
|
|
433
|
+
readonly children?: string[];
|
|
418
434
|
/**
|
|
419
435
|
* {@page area}가 존재하지 않을 때,
|
|
420
|
-
* 이
|
|
436
|
+
* 이 속성에 해당하는 area를 찾아서 {@page polygons}에 해당하는 영역들을 이동시킨다.<br/>
|
|
421
437
|
* 콤마로 분리해서 둘 이상의 area를 지정할 수 있는데, 순서대로 해당되는 영역이 존재하면 사용한다.
|
|
438
|
+
* [주의] parent 하나에 한 번만 지정할 수 있다.
|
|
422
439
|
*/
|
|
423
|
-
parent?: string;
|
|
440
|
+
readonly parent?: string;
|
|
424
441
|
/**
|
|
425
442
|
* {@page area}가 존재하지 않고, {@page parent}가 지정됐을 때,
|
|
426
|
-
* 이
|
|
443
|
+
* 이 속성에 지정하는 영역들을 동시에 이동시킨다.<br/>
|
|
427
444
|
* [주의] {@page frame}이나 {@page border}의 기준이 되는 polygon의 index를 첫번째 항목으로 설정해야 한다.
|
|
428
445
|
* [주의] {@page parent}가 복수개로 지정되면 이 속성도 [[], [],..] 형태로 복수 개 지정해야 한다.
|
|
429
446
|
* [주의] parent 하나에 한 번만 지정할 수 있다.
|
|
430
447
|
*/
|
|
431
|
-
polygons?: number[] | number[][] | number;
|
|
448
|
+
readonly polygons?: number[] | number[][] | number;
|
|
449
|
+
/**
|
|
450
|
+
* @private
|
|
451
|
+
* 계산된 값들.
|
|
452
|
+
*/
|
|
453
|
+
off?: MapCoord;
|
|
454
|
+
box?: MapCoord[];
|
|
455
|
+
pts?: any[];
|
|
456
|
+
bounds?: MapRect;
|
|
432
457
|
}
|
|
433
458
|
type MapSourceMeta = {
|
|
434
459
|
license?: {
|
|
435
460
|
license?: string;
|
|
436
461
|
author?: string;
|
|
437
462
|
url?: string;
|
|
438
|
-
etc?: "
|
|
463
|
+
etc?: "맵차트 최적화를 위해 좌표계 변환 및 Feature Polygon 수정";
|
|
439
464
|
};
|
|
440
465
|
dokdo?: {
|
|
441
466
|
group?: string;
|
|
@@ -444,18 +469,23 @@ type MapSourceMeta = {
|
|
|
444
469
|
};
|
|
445
470
|
dummies?: string[];
|
|
446
471
|
};
|
|
472
|
+
/**
|
|
473
|
+
* 접경선 정보.<br/>
|
|
474
|
+
* 연결된 선으로 표시되므로, 반드시 접경선이 그려지는 순서대로 양쪽 area(들)을 지정해야 한다.
|
|
475
|
+
*/
|
|
476
|
+
type MapBorderSource = [string | [string], string | [string]];
|
|
447
477
|
/**
|
|
448
478
|
* 맵시리즈에서 사용할 기본 맵을 지정한다.<br/>
|
|
449
479
|
*/
|
|
450
480
|
interface MapSource {
|
|
451
481
|
/**
|
|
452
482
|
* 맵 이름.<br/>
|
|
453
|
-
*
|
|
454
|
-
*
|
|
483
|
+
* 맵차트에 여러 개 맵이 지정될 수 있으며,
|
|
484
|
+
* 맵차트 시리즈 등에서 맵을 참조할 때 사용된다.
|
|
455
485
|
*/
|
|
456
486
|
name?: string;
|
|
457
487
|
/**
|
|
458
|
-
* 명시적 false로 지정하면
|
|
488
|
+
* 명시적 false로 지정하면 맵차트에서 맵으로 사용되지 않는다.<br/>
|
|
459
489
|
*
|
|
460
490
|
* @default true
|
|
461
491
|
*/
|
|
@@ -481,10 +511,15 @@ interface MapSource {
|
|
|
481
511
|
*/
|
|
482
512
|
nameKey?: string;
|
|
483
513
|
/**
|
|
484
|
-
*
|
|
514
|
+
* 맵차트 맵 모델을 구성할 때 제외시킬 영역들의 id 목록.<br/>
|
|
485
515
|
*/
|
|
486
516
|
exclude?: string[];
|
|
487
|
-
|
|
517
|
+
/**
|
|
518
|
+
* 맵 인셋 목록을 지정한다.<br/>
|
|
519
|
+
* 이름을 문자열로 지정하면 라이브러기가 기본 제공하는 인셋들이 사용된다.
|
|
520
|
+
* 또, 이름앞에 '-'를 추가하면 visible이 false로 설정된다.
|
|
521
|
+
*/
|
|
522
|
+
insets?: (string | MapInset)[];
|
|
488
523
|
/**
|
|
489
524
|
* 맵 상하좌우 주변에 추가할 영역의 크기를 도(°) 단위로 지정한다.<br/>
|
|
490
525
|
* css padding이나 margin 지정 방식과 동일하게 지정한댜.<br/>
|
|
@@ -509,7 +544,12 @@ interface MapSource {
|
|
|
509
544
|
*/
|
|
510
545
|
useOffset?: boolean | MapCoord;
|
|
511
546
|
/**
|
|
512
|
-
*
|
|
547
|
+
* 부극 취고위까지 지도에 포함되면 90도까지 그려진 것으로 간주한다.<br/>
|
|
548
|
+
* 명시적 false로 지정하면 계산된 영역까지만 포함한다.
|
|
549
|
+
*/
|
|
550
|
+
alignArctic?: boolean;
|
|
551
|
+
/**
|
|
552
|
+
* 내부 경계(internal boundary)선 정보를 별도로 생성할 지 여부.<br/>
|
|
513
553
|
*/
|
|
514
554
|
needInternal?: boolean;
|
|
515
555
|
/**
|
|
@@ -517,26 +557,49 @@ interface MapSource {
|
|
|
517
557
|
*/
|
|
518
558
|
excludeInternal?: string[];
|
|
519
559
|
/**
|
|
520
|
-
*
|
|
521
|
-
* 명시적 false로 지정하면 계산된 영역까지만 포함한다.
|
|
560
|
+
* 외부 경계선 정보를 별도로 생성할 지 여부.<br/>
|
|
522
561
|
*/
|
|
523
|
-
|
|
562
|
+
needExternal?: boolean;
|
|
563
|
+
/**
|
|
564
|
+
* {@page needInternal 내부 경계선}에서 제외할 영역 목록.<br/>
|
|
565
|
+
*/
|
|
566
|
+
excludeExternal?: string[];
|
|
567
|
+
/**
|
|
568
|
+
* 접경선 목록.<br/>
|
|
569
|
+
*/
|
|
570
|
+
borders?: [{
|
|
571
|
+
name: string;
|
|
572
|
+
border: MapBorderSource;
|
|
573
|
+
closed?: boolean;
|
|
574
|
+
}];
|
|
524
575
|
}
|
|
525
576
|
declare abstract class MapSourceItem {
|
|
526
577
|
id: string;
|
|
527
|
-
|
|
528
|
-
constructor(id: string, props: MapProps);
|
|
578
|
+
constructor(id: string);
|
|
529
579
|
}
|
|
530
580
|
declare class AreaItem extends MapSourceItem {
|
|
581
|
+
props: MapProps;
|
|
531
582
|
polygon: MapPolygon;
|
|
532
583
|
polygons: MapPolygon[];
|
|
533
584
|
internal?: MapPolygon[];
|
|
534
585
|
internals?: MapPolygon[][];
|
|
586
|
+
external?: MapPolygon[];
|
|
587
|
+
externals?: MapPolygon[][];
|
|
535
588
|
dummy: boolean;
|
|
589
|
+
constructor(id: string, props: MapProps);
|
|
590
|
+
}
|
|
591
|
+
declare class MapBorderInfo {
|
|
592
|
+
name: string;
|
|
593
|
+
closed: boolean;
|
|
594
|
+
border: [string[], string[]];
|
|
595
|
+
constructor(name: string, source: MapBorderSource, closed: boolean);
|
|
596
|
+
}
|
|
597
|
+
declare class BorderItem extends MapSourceItem {
|
|
598
|
+
polygon: MapPolygon;
|
|
599
|
+
constructor(id: string, polygon: MapPolygon);
|
|
536
600
|
}
|
|
537
601
|
declare abstract class MapSourceImpl extends RmObject {
|
|
538
|
-
static createStockInset(area: string, display?: MapInsetDisplay): MapInset;
|
|
539
|
-
private _index;
|
|
602
|
+
static createStockInset(area: string, display?: boolean | MapInsetDisplay): MapInset;
|
|
540
603
|
readonly name: string;
|
|
541
604
|
readonly enabled: boolean;
|
|
542
605
|
readonly idKey: string;
|
|
@@ -546,7 +609,9 @@ declare abstract class MapSourceImpl extends RmObject {
|
|
|
546
609
|
readonly dummies: string[];
|
|
547
610
|
readonly useOffset: boolean | MapCoord;
|
|
548
611
|
readonly internals: boolean;
|
|
612
|
+
readonly externals: boolean;
|
|
549
613
|
readonly alignArctic: boolean;
|
|
614
|
+
readonly borders: MapBorderInfo[];
|
|
550
615
|
items: MapSourceItem[];
|
|
551
616
|
insets: {
|
|
552
617
|
[area: string]: MapInset;
|
|
@@ -605,7 +670,7 @@ interface AnnotationOptions extends ChartItemOptions {
|
|
|
605
670
|
*/
|
|
606
671
|
name?: string;
|
|
607
672
|
/**
|
|
608
|
-
* 어노테이션 배치 기준이 되는
|
|
673
|
+
* 어노테이션 배치 기준이 되는 맵차트 구성 요소.<br/>
|
|
609
674
|
* 현재, 같은 영역(body 혹은 chart)에 포함된 {@link config.base.gauge 게이지}나 다른 어노테이션의 {@link name 이름}을 지정할 수 있다.
|
|
610
675
|
*
|
|
611
676
|
*/
|
|
@@ -893,7 +958,7 @@ declare const _ClickAction: {
|
|
|
893
958
|
readonly NONE: "none";
|
|
894
959
|
readonly SELECT: "select";
|
|
895
960
|
/**
|
|
896
|
-
*
|
|
961
|
+
* 맵차트가 zoom 가능한 상태일 때 zoom-in 한다.
|
|
897
962
|
*/
|
|
898
963
|
readonly ZOOM: "zoom";
|
|
899
964
|
/**
|
|
@@ -921,7 +986,7 @@ declare const _DblClickAction: {
|
|
|
921
986
|
readonly NONE: "none";
|
|
922
987
|
readonly SELECT: "select";
|
|
923
988
|
/**
|
|
924
|
-
*
|
|
989
|
+
* 맵차트가 zoom 가능한 상태일 때 zoom-in 한다.
|
|
925
990
|
*/
|
|
926
991
|
readonly ZOOM: "zoom";
|
|
927
992
|
/**
|
|
@@ -965,7 +1030,7 @@ interface OnClickArgs extends CommonCallbackArgs {
|
|
|
965
1030
|
area?: string;
|
|
966
1031
|
}
|
|
967
1032
|
/**
|
|
968
|
-
*
|
|
1033
|
+
* 맵차트 전체에 영향을 미치는 옵션들.<br />
|
|
969
1034
|
*
|
|
970
1035
|
* @config chart.chart
|
|
971
1036
|
*/
|
|
@@ -1013,7 +1078,7 @@ interface ChartOptionsOptions extends ChartItemOptions {
|
|
|
1013
1078
|
*/
|
|
1014
1079
|
widgetGap?: number;
|
|
1015
1080
|
/**
|
|
1016
|
-
* div의 크기가 변경될 때,
|
|
1081
|
+
* div의 크기가 변경될 때, 맵차트를 해당 크기에 맞게 조정할지 여부
|
|
1017
1082
|
*
|
|
1018
1083
|
* @default false
|
|
1019
1084
|
*/
|
|
@@ -1028,8 +1093,8 @@ interface ChartOptionsOptions extends ChartItemOptions {
|
|
|
1028
1093
|
onSelectionChanged?: (args: any) => void;
|
|
1029
1094
|
}
|
|
1030
1095
|
/**
|
|
1031
|
-
*
|
|
1032
|
-
* 기본적으로
|
|
1096
|
+
* 맵차트 제목(title) 설정 모델.<br/>
|
|
1097
|
+
* 기본적으로 맵차트 중앙 상단에 표시되지만 {@link align}, {@link verticalAlign} 등으로 위치를 변경할 수 있다.<br/>
|
|
1033
1098
|
*
|
|
1034
1099
|
* {@page guide.title 타이틀 개요} 페이지를 참조한다.
|
|
1035
1100
|
* @config chart.title
|
|
@@ -1050,7 +1115,7 @@ interface TitleOptions extends ChartItemOptions {
|
|
|
1050
1115
|
/**
|
|
1051
1116
|
* 정렬 기준.<br/>
|
|
1052
1117
|
* 시리즈들이 그려지는 plotting 영역이나,
|
|
1053
|
-
*
|
|
1118
|
+
* 맵차트 전체 영역을 기준으로 할 수 있다.
|
|
1054
1119
|
* 또, {@link config.subtitle 부제목}인 경우 제목을 기준으로 위치를 지정할 수 있다.
|
|
1055
1120
|
*
|
|
1056
1121
|
* @default 'map'
|
|
@@ -1073,7 +1138,7 @@ interface TitleOptions extends ChartItemOptions {
|
|
|
1073
1138
|
*/
|
|
1074
1139
|
backgroundStyle?: SVGStyleOrClass;
|
|
1075
1140
|
/**
|
|
1076
|
-
* 주 제목과 부 제목이 표시되는 영역과
|
|
1141
|
+
* 주 제목과 부 제목이 표시되는 영역과 맵차트 본체 등 과의 간격을 픽셀 단위로 지정한다.<br/>
|
|
1077
1142
|
* 주 제목이 표시되면 (부 제목의 값은 무시되고)주 제목의 값을 사용하고,
|
|
1078
1143
|
* 부 제목만 표시될 때는 부 제목의 값을 사용한다.
|
|
1079
1144
|
*
|
|
@@ -1106,7 +1171,7 @@ declare const _SubtitlePosition: {
|
|
|
1106
1171
|
/** @dummy */
|
|
1107
1172
|
type SubtitlePosition = typeof _SubtitlePosition[keyof typeof _SubtitlePosition];
|
|
1108
1173
|
/**
|
|
1109
|
-
*
|
|
1174
|
+
* 맵차트 제목 주위에 표시되는 부제목 옵션.<br/>
|
|
1110
1175
|
* 기본적으로 주제목(title)의 설정을 따르고, 몇가지 속성들이 추가된다.<br/>
|
|
1111
1176
|
* 별도 설정이 없으면 표시되지 않는다.
|
|
1112
1177
|
*
|
|
@@ -1147,7 +1212,7 @@ interface SubtitleOptions extends TitleOptions {
|
|
|
1147
1212
|
verticalAlign?: VerticalAlign;
|
|
1148
1213
|
}
|
|
1149
1214
|
/**
|
|
1150
|
-
*
|
|
1215
|
+
* 맵차트 개발 제작자 등을 표시하는
|
|
1151
1216
|
* 크레딧 영역에 대한 설정 모델.
|
|
1152
1217
|
*/
|
|
1153
1218
|
interface CreditsOptions extends ChartItemOptions {
|
|
@@ -1199,7 +1264,7 @@ interface CreditsOptions extends ChartItemOptions {
|
|
|
1199
1264
|
offsetY?: number;
|
|
1200
1265
|
/**
|
|
1201
1266
|
* {@link floating}이 true가 아니고, 중앙이 아닌 곳에 표시될 때,
|
|
1202
|
-
*
|
|
1267
|
+
* 맵차트 나머지 영역과의 간격을 픽셀로 지정한다.<br/>
|
|
1203
1268
|
* {@page verticalAlign}이 'middle'이면 수평 간격, 아니면 수직 간격에 적용된다.
|
|
1204
1269
|
*
|
|
1205
1270
|
* @default 4
|
|
@@ -1453,7 +1518,7 @@ interface OnZoomChangedArgs extends CommonCallbackArgs {
|
|
|
1453
1518
|
oldZoom: number;
|
|
1454
1519
|
}
|
|
1455
1520
|
/**
|
|
1456
|
-
*
|
|
1521
|
+
* 맵차트 본체(body) 설정 모델.<br/>
|
|
1457
1522
|
* 투영 옵션과 지도 제어 옵션들을 설정할 수 있다.<br/>
|
|
1458
1523
|
* @config chart.body
|
|
1459
1524
|
*/
|
|
@@ -1741,13 +1806,13 @@ interface MapWidgetOptions extends ChartItemOptions {
|
|
|
1741
1806
|
*/
|
|
1742
1807
|
location?: ChartItemLocation;
|
|
1743
1808
|
/**
|
|
1744
|
-
* 범례 또는 scale과 (location이 body일 때)body 또는
|
|
1809
|
+
* 범례 또는 scale과 (location이 body일 때)body 또는 맵차트 경계 사이의 수평 간격.<br/>
|
|
1745
1810
|
*
|
|
1746
1811
|
* @default 0
|
|
1747
1812
|
*/
|
|
1748
1813
|
offsetX?: number;
|
|
1749
1814
|
/**
|
|
1750
|
-
* 범례 또는 scale과 (location이 body일 때)body 또는
|
|
1815
|
+
* 범례 또는 scale과 (location이 body일 때)body 또는 맵차트 경계 사이의 수직 간격.<br/>
|
|
1751
1816
|
*
|
|
1752
1817
|
* @default 0
|
|
1753
1818
|
*/
|
|
@@ -1790,22 +1855,14 @@ interface MapWidgetGroupOptions extends MapWidgetOptions {
|
|
|
1790
1855
|
interface DataPointArgs extends CommonCallbackArgs {
|
|
1791
1856
|
series: object;
|
|
1792
1857
|
count: number;
|
|
1793
|
-
|
|
1794
|
-
yMin: number;
|
|
1795
|
-
yMax: number;
|
|
1796
|
-
xMin: number;
|
|
1797
|
-
xMax: number;
|
|
1798
|
-
zMin: number;
|
|
1799
|
-
zMax: number;
|
|
1858
|
+
id: string;
|
|
1800
1859
|
index: number;
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
zValue: any;
|
|
1808
|
-
labelIndex: number;
|
|
1860
|
+
name?: string;
|
|
1861
|
+
color?: string;
|
|
1862
|
+
className?: string;
|
|
1863
|
+
value?: any;
|
|
1864
|
+
labelIndex?: number;
|
|
1865
|
+
coord?: MapCoord;
|
|
1809
1866
|
source: any;
|
|
1810
1867
|
}
|
|
1811
1868
|
interface DataPointListkArgs extends CommonCallbackArgs {
|
|
@@ -1835,7 +1892,7 @@ interface ZoomToAreaOptions {
|
|
|
1835
1892
|
}
|
|
1836
1893
|
|
|
1837
1894
|
/**
|
|
1838
|
-
*
|
|
1895
|
+
* 맵차트 내보내기 설정 모델
|
|
1839
1896
|
* @config chart.exporting
|
|
1840
1897
|
*/
|
|
1841
1898
|
interface ExporterOptions extends ChartItemOptions {
|
|
@@ -1844,7 +1901,7 @@ interface ExporterOptions extends ChartItemOptions {
|
|
|
1844
1901
|
*/
|
|
1845
1902
|
visible?: boolean;
|
|
1846
1903
|
/**
|
|
1847
|
-
* 내보내기 버튼을 사용해 내보낸
|
|
1904
|
+
* 내보내기 버튼을 사용해 내보낸 맵차트에 사용할 확장자 없는 파일 이름.\
|
|
1848
1905
|
* 'export' 함수를 호출할 때 fileName을 지정하지 않을 경우 이 속성이 적용된다.
|
|
1849
1906
|
* fileName을 지정하지 않을 경우 realmap.type으로 다운로드 된다.
|
|
1850
1907
|
*
|
|
@@ -1907,21 +1964,21 @@ type ExportType = typeof _ExportType[keyof typeof _ExportType];
|
|
|
1907
1964
|
*/
|
|
1908
1965
|
interface ExportOptions {
|
|
1909
1966
|
/**
|
|
1910
|
-
* 내보낸
|
|
1967
|
+
* 내보낸 맵차트에 사용할 확장자.\
|
|
1911
1968
|
* type을 지정하지 않을 경우 png로 내보내기 된다.\
|
|
1912
1969
|
* @config
|
|
1913
1970
|
* // @TODO https://github.com/realgrid/realreport-chart/issues/549
|
|
1914
1971
|
*/
|
|
1915
1972
|
type?: ExportType;
|
|
1916
1973
|
/**
|
|
1917
|
-
* 내보낸
|
|
1974
|
+
* 내보낸 맵차트에 사용할 확장자 없는 파일명.
|
|
1918
1975
|
* fileName을 지정하지 않을 경우 realmap.type으로 다운로드 된다.
|
|
1919
1976
|
* @config
|
|
1920
1977
|
*/
|
|
1921
1978
|
fileName?: string;
|
|
1922
1979
|
}
|
|
1923
1980
|
/**
|
|
1924
|
-
* 외부 모듈로 구현되는
|
|
1981
|
+
* 외부 모듈로 구현되는 맵차트 내보내기 기능 명세.
|
|
1925
1982
|
*/
|
|
1926
1983
|
interface ChartExporter {
|
|
1927
1984
|
exportToImage: (dom: HTMLElement, options: ExportOptions, config: ExporterOptions) => void;
|
|
@@ -2362,6 +2419,7 @@ declare class RmElement extends RmObject {
|
|
|
2362
2419
|
static DEBUGGING: boolean;
|
|
2363
2420
|
static ASSET_KEY: string;
|
|
2364
2421
|
static TEMP_KEY: string;
|
|
2422
|
+
static createElement(doc: Document, tag: string): SVGElement;
|
|
2365
2423
|
static shrink(elts: RmElement[], count: number): void;
|
|
2366
2424
|
static expand<T extends RmElement>(parent: RmElement, elts: T[], count: number, creator: () => T): void;
|
|
2367
2425
|
static fit<T extends RmElement>(doc: Document, parent: RmElement, elts: T[], count: number, creator: {
|
|
@@ -2725,7 +2783,7 @@ type Shape = typeof _Shapes[keyof typeof _Shapes];
|
|
|
2725
2783
|
|
|
2726
2784
|
type PointHoverCallback = (args: DataPointArgs) => void;
|
|
2727
2785
|
type PointClickCallback = (args: DataPointArgs) => boolean;
|
|
2728
|
-
type PointStyleCallback = (args: DataPointArgs) => SVGStyleOrClass;
|
|
2786
|
+
type PointStyleCallback = (args: DataPointArgs) => SVGStyleOrClass | undefined;
|
|
2729
2787
|
/**
|
|
2730
2788
|
* @enum
|
|
2731
2789
|
*/
|
|
@@ -2877,15 +2935,15 @@ interface DataPointCalloutOptions extends ChartItemOptions {
|
|
|
2877
2935
|
layoutOnly?: boolean;
|
|
2878
2936
|
}
|
|
2879
2937
|
/**
|
|
2880
|
-
* 시리즈는 {@page data}로 지정된 값들을 데이터포인트로 표시하는
|
|
2881
|
-
*
|
|
2882
|
-
*
|
|
2938
|
+
* 시리즈는 {@page data}로 지정된 값들을 데이터포인트로 표시하는 맵차트의 핵심 구성 요소이다.<br/>
|
|
2939
|
+
* 맵차트 설정의 다른 부분이나 API에 참조하기 위해서는 {@page name}을 반드시 지정해야 햔다.
|
|
2940
|
+
* 맵차트 생성 시 {@page config.series.#type} 을 지정하지 않으면 {@page config.series.bar 'bar'} 시리즈로 생성된다.<br/>
|
|
2883
2941
|
*
|
|
2884
2942
|
* @config chart.series[base]
|
|
2885
2943
|
*/
|
|
2886
2944
|
interface SeriesOptions extends ChartItemOptions {
|
|
2887
2945
|
/**
|
|
2888
|
-
*
|
|
2946
|
+
* 맵차트 설정 객체에 지정하는 시리즈 종류.<br/>
|
|
2889
2947
|
*/
|
|
2890
2948
|
type?: string;
|
|
2891
2949
|
/**
|
|
@@ -2901,7 +2959,7 @@ interface SeriesOptions extends ChartItemOptions {
|
|
|
2901
2959
|
label?: string;
|
|
2902
2960
|
/**
|
|
2903
2961
|
* 명시적으로 이 속성을 지정하면,
|
|
2904
|
-
* 관련된 맵이
|
|
2962
|
+
* 관련된 맵이 맵차트에 활성됐을 때만 시리즈가 표시된다.
|
|
2905
2963
|
*/
|
|
2906
2964
|
map?: string | number;
|
|
2907
2965
|
/**
|
|
@@ -2919,7 +2977,7 @@ interface SeriesOptions extends ChartItemOptions {
|
|
|
2919
2977
|
* 데이터포인트 목록을 생성하는 데 참조되는 데이터셋.<br/>
|
|
2920
2978
|
* {@page g.createChartAsync createChartAsync}를 호출해서 비동기로
|
|
2921
2979
|
* 맵차트를 생성할 때는 {@page dataUrl}로 원격 데이터 소스를 지정할 수 있다.
|
|
2922
|
-
* [주의] 처음 load 후 data의 내용을 변경해도
|
|
2980
|
+
* [주의] 처음 load 후 data의 내용을 변경해도 맵차트에 반영되지 않는다.
|
|
2923
2981
|
*/
|
|
2924
2982
|
data?: any;
|
|
2925
2983
|
/**
|
|
@@ -2927,7 +2985,7 @@ interface SeriesOptions extends ChartItemOptions {
|
|
|
2927
2985
|
* {@page g.createChartAsync createChartAsync} 호출 시, 해당 url로 GET 요청을 전송하여 데이터를 다운받고,
|
|
2928
2986
|
* 해당 시리즈의 data 속성에 저장한다.<br/>
|
|
2929
2987
|
* {@page data}가 설정되면 이 속성은 무시된다.
|
|
2930
|
-
* 또, 비동기 함수가 아닌 {@page g.createChart createChart}로
|
|
2988
|
+
* 또, 비동기 함수가 아닌 {@page g.createChart createChart}로 맵차트를 생성할 때 이 속성으로 data를 설정하려는 경우
|
|
2931
2989
|
* 콘솔에 경고 메시지가 표시된다.
|
|
2932
2990
|
*/
|
|
2933
2991
|
dataUrl?: string;
|
|
@@ -3007,6 +3065,10 @@ interface SeriesOptions extends ChartItemOptions {
|
|
|
3007
3065
|
* 차트 설정 로드 시 실행되는 animation 종류.
|
|
3008
3066
|
*/
|
|
3009
3067
|
loadAnimation?: 'default' | 'reveal' | 'grow' | 'spread' | 'fadein';
|
|
3068
|
+
/**
|
|
3069
|
+
* true로 설정하면 hovering을 포함한 포인터 상호 작용에 비활성화 된다.<br/>
|
|
3070
|
+
*/
|
|
3071
|
+
disabled?: boolean;
|
|
3010
3072
|
/**
|
|
3011
3073
|
* @ignore 미구현
|
|
3012
3074
|
* 데이터포인트 hover 효과.<br/>
|
|
@@ -3073,7 +3135,7 @@ interface SparkSeriesCategory {
|
|
|
3073
3135
|
}
|
|
3074
3136
|
/**
|
|
3075
3137
|
* 특정 위치에 연관된 값들을 단순 차트(spark chart)로 표시한다.<br/>
|
|
3076
|
-
* bar, line,
|
|
3138
|
+
* bar, line, pie 차트가 제공된다.
|
|
3077
3139
|
*/
|
|
3078
3140
|
interface SparkSeriesOptions extends ValueSeriesOptions {
|
|
3079
3141
|
/**
|
|
@@ -3089,7 +3151,7 @@ interface SparkSeriesOptions extends ValueSeriesOptions {
|
|
|
3089
3151
|
valueFields?: string[];
|
|
3090
3152
|
/**
|
|
3091
3153
|
* true로 지정되고 {@page categories}가 지정되면
|
|
3092
|
-
*
|
|
3154
|
+
* 맵차트 legend에 category별로 항목이 표시된다.
|
|
3093
3155
|
*
|
|
3094
3156
|
* @default undefined
|
|
3095
3157
|
*/
|
|
@@ -3563,13 +3625,6 @@ interface RouteSeriesOptions extends SeriesOptions {
|
|
|
3563
3625
|
*/
|
|
3564
3626
|
bendFactor: number;
|
|
3565
3627
|
}
|
|
3566
|
-
interface MapSeriesLabelOptions extends DataPointLabelOptions {
|
|
3567
|
-
/**
|
|
3568
|
-
* @default false
|
|
3569
|
-
*/
|
|
3570
|
-
visible?: boolean;
|
|
3571
|
-
hoverColor?: string;
|
|
3572
|
-
}
|
|
3573
3628
|
interface DrilldownOptions extends ChartItemOptions {
|
|
3574
3629
|
/**
|
|
3575
3630
|
* true가 아니면 지정하면 클릭 등으로 사용자가 drilldown할 수 없다.<br/>
|
|
@@ -3585,16 +3640,63 @@ interface DrilldownOptions extends ChartItemOptions {
|
|
|
3585
3640
|
autoMapChange?: boolean;
|
|
3586
3641
|
}
|
|
3587
3642
|
/**
|
|
3588
|
-
*
|
|
3643
|
+
* 맵 시리즈 내외부 접경선 표시 설정 옵션.<br/>
|
|
3589
3644
|
* [topoJSON](https://github.com/topojson/topojson-specification?tab=readme-ov-file) 소스로
|
|
3590
|
-
* 작성된 맵인 경우
|
|
3645
|
+
* 작성된 맵인 경우 내외부 접경선을 별도의 스타일로 구분해서 표시할 수 있다.
|
|
3591
3646
|
*/
|
|
3592
|
-
interface
|
|
3647
|
+
interface MapBordersOptions extends ChartItemOptions {
|
|
3593
3648
|
/**
|
|
3594
3649
|
* @default false
|
|
3595
3650
|
*/
|
|
3596
3651
|
visible?: boolean;
|
|
3597
3652
|
}
|
|
3653
|
+
/**
|
|
3654
|
+
* 맵 시리즈 내외부 접경선 표시 설정 옵션.<br/>
|
|
3655
|
+
* [topoJSON](https://github.com/topojson/topojson-specification?tab=readme-ov-file) 소스로
|
|
3656
|
+
* 작성된 맵인 경우 내외부 접경선을 별도의 스타일로 구분해서 표시할 수 있다.
|
|
3657
|
+
*/
|
|
3658
|
+
interface MapBorderOptions extends ChartItemOptions {
|
|
3659
|
+
/**
|
|
3660
|
+
* border 목록일 때, 각 목록을 구분하는 이름.<br/>
|
|
3661
|
+
*/
|
|
3662
|
+
name?: string;
|
|
3663
|
+
}
|
|
3664
|
+
interface InsetLabelArgs extends CommonCallbackArgs {
|
|
3665
|
+
inset: MapInset;
|
|
3666
|
+
}
|
|
3667
|
+
/**
|
|
3668
|
+
* map 시리즈 area의 자식 영역들로 구성된 inset에 표시할 label 설정 모델.<br/>
|
|
3669
|
+
*/
|
|
3670
|
+
interface InsetLabelOptions extends IconedTextOptions {
|
|
3671
|
+
/**
|
|
3672
|
+
* 이 속성이 true이거나, undefined이면서 pointLabel이 true일 때 표시된다.<br/>
|
|
3673
|
+
*
|
|
3674
|
+
* @default undefined
|
|
3675
|
+
*/
|
|
3676
|
+
visible?: boolean;
|
|
3677
|
+
/**
|
|
3678
|
+
* 계산되는 기본 text 대신, data point label로 표시될 text 리턴.<br/>
|
|
3679
|
+
* undefined나 null을 리턴하면 {@page textField} 등을 사용한 기존에 표시될 텍스트를 사용한다.
|
|
3680
|
+
* 빈 문자열 등 정상적인 문자열을 리턴하면 그 문자열대로 표시된다.
|
|
3681
|
+
* {@page prefix}나 포맷 속성 등은 적용되지 않는다.
|
|
3682
|
+
*/
|
|
3683
|
+
textCallback?: (args: InsetLabelArgs) => string;
|
|
3684
|
+
/**
|
|
3685
|
+
* 데이터 포인트별 label 표시 여부를 리턴하는 콜백.
|
|
3686
|
+
*/
|
|
3687
|
+
visibleCallback?: (args: InsetLabelArgs) => boolean;
|
|
3688
|
+
/**
|
|
3689
|
+
* 데이터 포인트별로 추가 적용되는 스타일을 리턴한다.
|
|
3690
|
+
*/
|
|
3691
|
+
styleCallback?: (args: InsetLabelArgs) => SVGStyleOrClass;
|
|
3692
|
+
}
|
|
3693
|
+
interface MapSeriesLabelOptions extends DataPointLabelOptions {
|
|
3694
|
+
/**
|
|
3695
|
+
* @default false
|
|
3696
|
+
*/
|
|
3697
|
+
visible?: boolean;
|
|
3698
|
+
hoverColor?: string;
|
|
3699
|
+
}
|
|
3598
3700
|
declare const MapSeriesType = "map";
|
|
3599
3701
|
/**
|
|
3600
3702
|
* Map area 영역들을 칠하는 시리즈.<br/>
|
|
@@ -3607,6 +3709,14 @@ declare const MapSeriesType = "map";
|
|
|
3607
3709
|
*/
|
|
3608
3710
|
interface MapSeriesOptions extends ValueSeriesOptions {
|
|
3609
3711
|
type?: typeof MapSeriesType;
|
|
3712
|
+
/**
|
|
3713
|
+
* {@page config.series.map.pointLabel#visible} 기본값이 false이다.
|
|
3714
|
+
*/
|
|
3715
|
+
pointLabel?: MapSeriesLabelOptions | boolean;
|
|
3716
|
+
/**
|
|
3717
|
+
* inset 라벨 설정 옵션.<br/>
|
|
3718
|
+
*/
|
|
3719
|
+
insetLabel?: InsetLabelOptions | boolean;
|
|
3610
3720
|
/**
|
|
3611
3721
|
* true로 지정하면 데이터포인트로 지정되지 않은 area들에 대해,
|
|
3612
3722
|
* map 모델의 속성들을 이용해서 각 area에 해당하는 data point들을 자동 생성한다.<br/>
|
|
@@ -3616,11 +3726,10 @@ interface MapSeriesOptions extends ValueSeriesOptions {
|
|
|
3616
3726
|
* 맵 area와 연결할 키값들을 지정한다.<br/>
|
|
3617
3727
|
* 두 값을 배열로 지정하면 첫번째 문자열은 맵소스 "properties"의 속성명,
|
|
3618
3728
|
* 두번째는 데이터포인트의 속성명이다.
|
|
3619
|
-
* 값을 하나만 지정하면 양쪽 같은 속성명으로 연결한다.<br/>
|
|
3620
|
-
* 이 값이 지정되지 않으면 데이터포인트의 "id" 또는 idField 속성으로 지정한 속성값과 맵소스의 "rm-id" 또는 "id" 속성값으로 연결한다.
|
|
3729
|
+
* 값을 하나만 지정하거나 문자열로 지정하면 양쪽 같은 속성명으로 연결한다.<br/>
|
|
3730
|
+
* 이 값이 지정되지 않으면 데이터포인트의 "id" 또는 {@page idField} 속성으로 지정한 속성값과 맵소스의 "rm-id" 또는 "id" 속성값으로 연결한다.
|
|
3621
3731
|
*/
|
|
3622
3732
|
mapKeys?: string | [string, string];
|
|
3623
|
-
middleKeys?: [string, string];
|
|
3624
3733
|
/**
|
|
3625
3734
|
* 데이터포인트가 연결되지 않은 area의 스타일.<br/>
|
|
3626
3735
|
*
|
|
@@ -3657,15 +3766,30 @@ interface MapSeriesOptions extends ValueSeriesOptions {
|
|
|
3657
3766
|
* @default true
|
|
3658
3767
|
*/
|
|
3659
3768
|
allAreas?: boolean;
|
|
3769
|
+
/**
|
|
3770
|
+
* 표시하지 않는 영역들을 지정한다.<br/>
|
|
3771
|
+
* {@page mapKeys} 속성으로 지정된 key나 'id' 또는 {@page idField}로 지정된 값(들)로 지정한다.
|
|
3772
|
+
*/
|
|
3773
|
+
hiddenAreas?: string | string[];
|
|
3660
3774
|
/**
|
|
3661
3775
|
* 내부 접경선 표시 설정 옵션.<br/>
|
|
3662
3776
|
*/
|
|
3663
|
-
internalBorder?:
|
|
3777
|
+
internalBorder?: MapBordersOptions;
|
|
3778
|
+
/**
|
|
3779
|
+
* 외부 접경선 표시 설정 옵션.<br/>
|
|
3780
|
+
*/
|
|
3781
|
+
externalBorder?: MapBordersOptions;
|
|
3782
|
+
/**
|
|
3783
|
+
* 특정 영역들의 경계선 옵션 목록.<br/>
|
|
3784
|
+
*/
|
|
3785
|
+
mapBorders?: string | MapBorderOptions | (string | MapBorderOptions)[];
|
|
3664
3786
|
colorRange?: ColorRange;
|
|
3665
3787
|
/**
|
|
3666
|
-
* 차트에 설정된 color scale 아이디 혹은
|
|
3788
|
+
* 차트에 설정된 color scale 아이디 혹은 인덱스.<br/>
|
|
3789
|
+
* 명시적 null을 지정하면 컬러스케일에 연결되지 않는다.
|
|
3790
|
+
* 다른 잘못된 값이면 첫번째 스케일에 연결된다.
|
|
3667
3791
|
*/
|
|
3668
|
-
colorScale?: string | number;
|
|
3792
|
+
colorScale?: string | number | null;
|
|
3669
3793
|
drilldown?: DrilldownOptions;
|
|
3670
3794
|
/**
|
|
3671
3795
|
* @ignore
|
|
@@ -3703,9 +3827,11 @@ interface FeatureSeriesOptions extends ValueSeriesOptions {
|
|
|
3703
3827
|
selectable?: boolean;
|
|
3704
3828
|
colorRange?: ColorRange;
|
|
3705
3829
|
/**
|
|
3706
|
-
* 차트에 설정된 color scale 아이디 혹은
|
|
3830
|
+
* 차트에 설정된 color scale 아이디 혹은 인덱스.<br/>
|
|
3831
|
+
* 명시적 null을 지정하면 컬러스케일에 연결되지 않는다.
|
|
3832
|
+
* 다른 잘못된 값이면 첫번째 스케일에 연결된다.
|
|
3707
3833
|
*/
|
|
3708
|
-
colorScale?: string | number;
|
|
3834
|
+
colorScale?: string | number | null;
|
|
3709
3835
|
/**
|
|
3710
3836
|
* @ignore
|
|
3711
3837
|
*/
|
|
@@ -3777,7 +3903,13 @@ interface ImageSeriesOptions extends SeriesOptions {
|
|
|
3777
3903
|
* 각 데이터포인트의 imageUrl의 root url.
|
|
3778
3904
|
*/
|
|
3779
3905
|
rootUrl?: string;
|
|
3906
|
+
/**
|
|
3907
|
+
* 이미지 너비.<br/>
|
|
3908
|
+
*/
|
|
3780
3909
|
imageWidth?: number;
|
|
3910
|
+
/**
|
|
3911
|
+
* 이미지 높이.<br/>
|
|
3912
|
+
*/
|
|
3781
3913
|
imageHeight?: number;
|
|
3782
3914
|
/**
|
|
3783
3915
|
* 데이터포인트 {@page shape 도형} 회전 각도.<br/>
|
|
@@ -3833,16 +3965,38 @@ interface PinSeriesOptions extends MarkerSeriesOptions {
|
|
|
3833
3965
|
*/
|
|
3834
3966
|
position?: PointViewPosition;
|
|
3835
3967
|
/**
|
|
3836
|
-
* 차트에 설정된 color scale 아이디 혹은
|
|
3968
|
+
* 차트에 설정된 color scale 아이디 혹은 인덱스.<br/>
|
|
3969
|
+
* 명시적 null을 지정하면 컬러스케일에 연결되지 않는다.
|
|
3970
|
+
* 다른 잘못된 값이면 첫번째 스케일에 연결된다.
|
|
3837
3971
|
*/
|
|
3838
|
-
colorScale?: string | number;
|
|
3972
|
+
colorScale?: string | number | null;
|
|
3973
|
+
}
|
|
3974
|
+
interface FigureSeriesImageOptions extends ChartItemOptions {
|
|
3975
|
+
/**
|
|
3976
|
+
* 이미지 경로.<br/>
|
|
3977
|
+
*/
|
|
3978
|
+
url?: string;
|
|
3979
|
+
/**
|
|
3980
|
+
* 이미지 너비.<br/>
|
|
3981
|
+
*/
|
|
3982
|
+
width?: number;
|
|
3983
|
+
/**
|
|
3984
|
+
* 이미지 높이.<br/>
|
|
3985
|
+
*/
|
|
3986
|
+
height?: number;
|
|
3987
|
+
/**
|
|
3988
|
+
* 이 값을 0보다 크고 1보다 작은 값으로 지정하면,
|
|
3989
|
+
* 데이터포인트 최대값을 기준으로 기본 크기에 대한 상대 크기로 표시된다.<br/>
|
|
3990
|
+
* 시리즈의 minSize가 설정된 경우에만 동작한다.<br/>
|
|
3991
|
+
*/
|
|
3992
|
+
minSize?: number;
|
|
3839
3993
|
}
|
|
3840
3994
|
declare const FigureSeriesType = "figure";
|
|
3841
3995
|
/**
|
|
3842
3996
|
* Figure 시리즈.<br/>
|
|
3843
3997
|
* {@page figure} 속성에 표시하려는 사용자 정의 도형의 svg path를 지정한다.
|
|
3844
|
-
* 또, 도형 안에 text
|
|
3845
|
-
* {@page style}에 padding을 지정해서 text 위치를 조정할 수 있다.
|
|
3998
|
+
* 또, 도형 안에 text나 이미지를 표시할 수 있으며,
|
|
3999
|
+
* {@page style}에 padding을 지정해서 text나 이미지 위치를 조정할 수 있다.
|
|
3846
4000
|
*
|
|
3847
4001
|
* @fiddle series/figure-series Figure 시리즈 데모
|
|
3848
4002
|
*
|
|
@@ -3850,22 +4004,63 @@ declare const FigureSeriesType = "figure";
|
|
|
3850
4004
|
*/
|
|
3851
4005
|
interface FigureSeriesOptions extends ValueSeriesOptions {
|
|
3852
4006
|
type?: typeof FigureSeriesType;
|
|
3853
|
-
|
|
4007
|
+
figures?: {
|
|
4008
|
+
[id: string]: {
|
|
4009
|
+
path: string;
|
|
4010
|
+
box?: [number, number] | number;
|
|
4011
|
+
style?: SVGStyleOrClass;
|
|
4012
|
+
};
|
|
4013
|
+
};
|
|
4014
|
+
/**
|
|
4015
|
+
* 데이터포인트 figure로 표시할 svg path 'd' 속성 값.<br/>
|
|
4016
|
+
* 'path'와 'style'을 별도로 지정하는 객체로 지정할 수도 있다.
|
|
4017
|
+
* '#'로 시작하는 문자열은 차트나 {@page figures}에 등록한 figure id를 지정한다.
|
|
4018
|
+
* 문자열 배열로 별도로 그려지는 두 path를 지정한다. 각 path에는 별도의 style을 지정할 수 있다.
|
|
4019
|
+
*/
|
|
4020
|
+
figure?: string | (string | {
|
|
4021
|
+
path: string;
|
|
4022
|
+
style: SVGStyleOrClass;
|
|
4023
|
+
})[];
|
|
4024
|
+
figureBox?: [number, number] | number;
|
|
4025
|
+
/**
|
|
4026
|
+
* figure 표시 너비.<br/>
|
|
4027
|
+
* {@page figureBox}에 figure의 원 크기를 지정하지 않으면 무시된다.
|
|
4028
|
+
* 또, height를 지정하지 않으면 이 값과 figureBox의 비율에 맞게 height가 자동 설정된다.
|
|
4029
|
+
*/
|
|
4030
|
+
width?: number;
|
|
4031
|
+
/**
|
|
4032
|
+
* figure 표시 높이.<br/>
|
|
4033
|
+
* {@page figureBox}에 figure의 원 크기를 지정하지 않으면 무시된다.
|
|
4034
|
+
* 또, width를 지정하지 않으면 이 값과 figureBox의 비율에 맞게 width가 자동 설정된다.
|
|
4035
|
+
*/
|
|
4036
|
+
height?: number;
|
|
3854
4037
|
/**
|
|
3855
4038
|
* 내부 원에 표시할 텍스트.<br/>
|
|
3856
4039
|
*/
|
|
3857
4040
|
rotation?: number;
|
|
3858
4041
|
/**
|
|
3859
|
-
*
|
|
3860
|
-
* 문자열로 지정하면 label
|
|
4042
|
+
* figure 내부에 표시할 label 설정 옵션.<br/>
|
|
4043
|
+
* 문자열로 지정하면 label 옵션의 text 속성으로 설정된다..
|
|
3861
4044
|
*/
|
|
3862
4045
|
innerLabel?: IconedTextOptions | string;
|
|
3863
4046
|
/**
|
|
3864
|
-
*
|
|
4047
|
+
* figure 내부에 표시할 image 설정 옵션.<br/>
|
|
4048
|
+
* 문자열로 지정하면 이미지 옵션의 url 속성으로 지정된다.
|
|
4049
|
+
*/
|
|
4050
|
+
innerImage?: FigureSeriesImageOptions | string;
|
|
4051
|
+
/**
|
|
4052
|
+
* figure 표시 위치.<br/>
|
|
3865
4053
|
*
|
|
3866
4054
|
* @default top
|
|
3867
4055
|
*/
|
|
3868
4056
|
position?: PointViewPosition;
|
|
4057
|
+
/**
|
|
4058
|
+
* 이 값을 0보다 크고 1보다 작은 값으로 지정하면,
|
|
4059
|
+
* 데이터포인트 최대값을 기준으로 기본 크기에 대한 상대 크기로 표시된다.<br/>
|
|
4060
|
+
*
|
|
4061
|
+
* @default undefined
|
|
4062
|
+
*/
|
|
4063
|
+
minSize?: number;
|
|
3869
4064
|
}
|
|
3870
4065
|
/**
|
|
3871
4066
|
* Vector 머리 표시 종류.<br/>
|
|
@@ -4534,8 +4729,8 @@ type LegendItemsAlign = typeof _LegendItemsAligns[keyof typeof _LegendItemsAlign
|
|
|
4534
4729
|
*/
|
|
4535
4730
|
declare const _LegendLayout: {
|
|
4536
4731
|
/**
|
|
4537
|
-
* legend가
|
|
4538
|
-
* legend가
|
|
4732
|
+
* legend가 맵차트 좌우에 배치되면 item들을 수직으로 배치하고,
|
|
4733
|
+
* legend가 맵차트 상하에 배치되면 item들을 수평으로 배치한다.
|
|
4539
4734
|
*/
|
|
4540
4735
|
readonly AUTO: "auto";
|
|
4541
4736
|
/**
|
|
@@ -4550,7 +4745,7 @@ declare const _LegendLayout: {
|
|
|
4550
4745
|
/** @dummy */
|
|
4551
4746
|
type LegendLayout = typeof _LegendLayout[keyof typeof _LegendLayout];
|
|
4552
4747
|
/**
|
|
4553
|
-
*
|
|
4748
|
+
* 맵차트 시리즈 구성을 직관적으로 이해할 수 있도록 도와주는 범례 설정 모델.<br/>
|
|
4554
4749
|
* visible 기본값이 undefined이고,
|
|
4555
4750
|
* 따로 지정하지 않으면 시리즈가 둘 이상 포함돼야 legend가 표시된다.<br/>
|
|
4556
4751
|
* {@link guide.legend 범례 개요} 페이지를 참조한다.
|
|
@@ -4662,7 +4857,7 @@ declare class LegendItem extends ChartItem<ChartItemOptions> {
|
|
|
4662
4857
|
text(): string;
|
|
4663
4858
|
}
|
|
4664
4859
|
/**
|
|
4665
|
-
*
|
|
4860
|
+
* 맵차트 시리즈 구성을 직관적으로 이해할 수 있도록 도와주는 범례 설정 모델.<br/>
|
|
4666
4861
|
* visible 기본값이 undefined이고,
|
|
4667
4862
|
* 따로 지정하지 않으면 시리즈가 둘 이상 포함돼야 legend가 표시된다.<br/>
|
|
4668
4863
|
* {@link guide.legend 범례 개요} 페이지를 참조한다.
|
|
@@ -4687,12 +4882,13 @@ declare class Legend extends MapSimpleWidget<LegendOptions> {
|
|
|
4687
4882
|
isVisible(): boolean;
|
|
4688
4883
|
protected _doInit(op: LegendOptions): void;
|
|
4689
4884
|
protected _doApply(options: LegendOptions): void;
|
|
4690
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
4885
|
+
protected _doPrepareRender(chart: IChart, op: LegendOptions): void;
|
|
4691
4886
|
}
|
|
4692
4887
|
declare class LegendCollection extends MapWidgetCollection<Legend> {
|
|
4693
4888
|
protected _collectionProp(): string;
|
|
4694
4889
|
protected _canEmpty(): boolean;
|
|
4695
4890
|
protected _createWidget(chart: IChart): Legend;
|
|
4891
|
+
prepareRender(): void;
|
|
4696
4892
|
}
|
|
4697
4893
|
|
|
4698
4894
|
/**
|
|
@@ -4728,6 +4924,7 @@ declare class MapArea extends RmObject implements ISelectionSource {
|
|
|
4728
4924
|
private _info;
|
|
4729
4925
|
private _path;
|
|
4730
4926
|
private _internal;
|
|
4927
|
+
private _external;
|
|
4731
4928
|
h1: number;
|
|
4732
4929
|
h2: number;
|
|
4733
4930
|
v1: number;
|
|
@@ -4752,6 +4949,7 @@ declare class MapArea extends RmObject implements ISelectionSource {
|
|
|
4752
4949
|
name: string;
|
|
4753
4950
|
get path(): string;
|
|
4754
4951
|
get internal(): string;
|
|
4952
|
+
get external(): string;
|
|
4755
4953
|
get selected(): boolean;
|
|
4756
4954
|
displayText(): string;
|
|
4757
4955
|
/**
|
|
@@ -4777,11 +4975,23 @@ declare class MapArea extends RmObject implements ISelectionSource {
|
|
|
4777
4975
|
y1: number;
|
|
4778
4976
|
y2: number;
|
|
4779
4977
|
};
|
|
4780
|
-
readPath(prj: MapProjection
|
|
4781
|
-
|
|
4978
|
+
readPath(prj: MapProjection, info: {
|
|
4979
|
+
internals: boolean;
|
|
4980
|
+
externals: boolean;
|
|
4981
|
+
}): string;
|
|
4982
|
+
private $_readInternal;
|
|
4983
|
+
private $_readExternal;
|
|
4782
4984
|
getCenter(): MapCoord;
|
|
4783
4985
|
_clone(): MapArea;
|
|
4784
4986
|
}
|
|
4987
|
+
declare class MapBorder extends RmObject {
|
|
4988
|
+
source: BorderItem;
|
|
4989
|
+
private _path;
|
|
4990
|
+
constructor(source: BorderItem);
|
|
4991
|
+
get path(): string;
|
|
4992
|
+
reset(): void;
|
|
4993
|
+
readPath(prj: MapProjection): void;
|
|
4994
|
+
}
|
|
4785
4995
|
interface IMapOwner {
|
|
4786
4996
|
getProjection(second: boolean): MapProjection;
|
|
4787
4997
|
projectionChanged(): void;
|
|
@@ -4800,6 +5010,7 @@ declare class MapModel extends RmObject {
|
|
|
4800
5010
|
private _second;
|
|
4801
5011
|
private _areas;
|
|
4802
5012
|
private _areaMap;
|
|
5013
|
+
private _borders;
|
|
4803
5014
|
_insets: MapInset[];
|
|
4804
5015
|
_useOffset: boolean | MapCoord;
|
|
4805
5016
|
private _mapAreaFinder;
|
|
@@ -4831,6 +5042,8 @@ declare class MapModel extends RmObject {
|
|
|
4831
5042
|
set hiddenAreas(value: string[]);
|
|
4832
5043
|
get alignArctic(): any;
|
|
4833
5044
|
get hasInternals(): boolean;
|
|
5045
|
+
get hasExternals(): boolean;
|
|
5046
|
+
get hasBorders(): MapBorderInfo[];
|
|
4834
5047
|
get isWorld(): boolean;
|
|
4835
5048
|
get(index: number): MapArea;
|
|
4836
5049
|
areaOf(id: any): MapArea;
|
|
@@ -4844,6 +5057,8 @@ declare class MapModel extends RmObject {
|
|
|
4844
5057
|
*/
|
|
4845
5058
|
reset(): void;
|
|
4846
5059
|
isVisible(area: string): boolean;
|
|
5060
|
+
insetAt(coord: MapCoord): MapInset;
|
|
5061
|
+
getBorder(name: string): MapBorder;
|
|
4847
5062
|
/**
|
|
4848
5063
|
* 투영전에 지도 bounds를 계산한다.
|
|
4849
5064
|
* projection offset을 설정하려면 투영하기 전에 지도 경계값이 필요하다.
|
|
@@ -4901,7 +5116,7 @@ declare class DataPointLabel<OP extends DataPointLabelOptions = DataPointLabelOp
|
|
|
4901
5116
|
isVisible(): boolean;
|
|
4902
5117
|
getDefaultIconPos(): IconPosition;
|
|
4903
5118
|
protected _doSetSimple(op: OP, src: any): boolean;
|
|
4904
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
5119
|
+
protected _doPrepareRender(chart: IChart, op: OP): void;
|
|
4905
5120
|
}
|
|
4906
5121
|
declare class DataPointAnchorPoint<OP extends CalloutAnchorPointOptions = CalloutAnchorPointOptions> extends ChartItem<OP> {
|
|
4907
5122
|
static defaults: CalloutAnchorPointOptions;
|
|
@@ -4926,6 +5141,7 @@ interface ISeries<T extends DataPoint = DataPoint> {
|
|
|
4926
5141
|
_latFielder?: (src: any) => number;
|
|
4927
5142
|
_valuesFielder?: (src: any) => any[];
|
|
4928
5143
|
_colorFielder: (src: any) => string;
|
|
5144
|
+
coordOfArea(id: string): MapCoord;
|
|
4929
5145
|
getColorScale(): string | number;
|
|
4930
5146
|
initPoints(source: any[]): T[];
|
|
4931
5147
|
followTooltipPointer(): boolean;
|
|
@@ -4992,7 +5208,7 @@ declare abstract class Series<OP extends SeriesOptions = SeriesOptions> extends
|
|
|
4992
5208
|
/**
|
|
4993
5209
|
* 시리즈 이름.<br/>
|
|
4994
5210
|
* 시리즈 생성시 지정된 후 변경할 수 없다.
|
|
4995
|
-
*
|
|
5211
|
+
* 맵차트의 다른 구성 요소에서 이 시리즈를 참조할 때 사용되며,
|
|
4996
5212
|
* 레전드나 툴팁에서 시리즈를 나타내는 텍스트로도 사용된다.
|
|
4997
5213
|
*
|
|
4998
5214
|
* @config
|
|
@@ -5035,8 +5251,8 @@ declare abstract class Series<OP extends SeriesOptions = SeriesOptions> extends
|
|
|
5035
5251
|
}): DataPoint[];
|
|
5036
5252
|
getPointText(p: DataPoint, index: number, label: any): string;
|
|
5037
5253
|
getPointArgs(p: DataPoint): DataPointArgs;
|
|
5038
|
-
getPointStyle(p: DataPoint):
|
|
5039
|
-
getPointLabelStyle(p: DataPoint):
|
|
5254
|
+
getPointStyle(p: DataPoint): SVGStyleOrClass;
|
|
5255
|
+
getPointLabelStyle(p: DataPoint): SVGStyleOrClass;
|
|
5040
5256
|
getRangedColor(p: DataPoint): string;
|
|
5041
5257
|
isPointLabelsVisible(): boolean;
|
|
5042
5258
|
isPointLabelVisible(p: DataPoint): boolean;
|
|
@@ -5049,7 +5265,6 @@ declare abstract class Series<OP extends SeriesOptions = SeriesOptions> extends
|
|
|
5049
5265
|
protected _defLabelOff(): number;
|
|
5050
5266
|
setCalcedColor(cs: CSSStyleDeclaration, prop: string): void;
|
|
5051
5267
|
coordOfArea(id: string): MapCoord;
|
|
5052
|
-
getCoord(p: DataPoint): MapCoord;
|
|
5053
5268
|
pointById(id: string): DataPoint;
|
|
5054
5269
|
canAddAnimation(): boolean;
|
|
5055
5270
|
canRemoveAnimation(): boolean;
|
|
@@ -5092,7 +5307,7 @@ declare abstract class Series<OP extends SeriesOptions = SeriesOptions> extends
|
|
|
5092
5307
|
_prepareRender(): void;
|
|
5093
5308
|
protected _doAfterRender(): void;
|
|
5094
5309
|
protected _doMapChanged(): void;
|
|
5095
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
5310
|
+
protected _doPrepareRender(chart: IChart, op: OP): void;
|
|
5096
5311
|
protected abstract _createPoint(source: any): DataPoint;
|
|
5097
5312
|
protected $_addPoint(source: any, i: number): DataPoint;
|
|
5098
5313
|
protected _createFielder(f: any): (v: any) => any;
|
|
@@ -5115,6 +5330,7 @@ declare abstract class Series<OP extends SeriesOptions = SeriesOptions> extends
|
|
|
5115
5330
|
declare abstract class ValuePoint extends DataPoint {
|
|
5116
5331
|
value: number;
|
|
5117
5332
|
protected _readObject(series: ISeries, v: any): void;
|
|
5333
|
+
protected _assignTo(proxy: any): any;
|
|
5118
5334
|
getValue(): number;
|
|
5119
5335
|
getBaseValue(): number;
|
|
5120
5336
|
}
|
|
@@ -5251,6 +5467,12 @@ declare class DataPoint implements ISelectionSource {
|
|
|
5251
5467
|
* 데이터포인트 표시 위치.<br/>
|
|
5252
5468
|
*/
|
|
5253
5469
|
coord: MapCoord;
|
|
5470
|
+
/**
|
|
5471
|
+
* @private
|
|
5472
|
+
*
|
|
5473
|
+
* 인셋에 포함된 경우 인셋의 offset.<br/>
|
|
5474
|
+
*/
|
|
5475
|
+
inset: MapCoord;
|
|
5254
5476
|
/**
|
|
5255
5477
|
* 본래 위치와 다른 곳에 데이터포인트 정보를 표시할 때,
|
|
5256
5478
|
* 해당하는 위치까지의 경로를 표시한다.<br/>
|
|
@@ -5351,11 +5573,17 @@ interface AssetItemOptions {
|
|
|
5351
5573
|
/**
|
|
5352
5574
|
* 에셋 id.<br/>
|
|
5353
5575
|
* 시리즈나 축에서 이 에셋 항목을 참조할 때 사용하는 키로서
|
|
5354
|
-
*
|
|
5576
|
+
* 맵차트 내에서 유일한 문자열로 반드시 지정해야 한다.
|
|
5355
5577
|
*
|
|
5356
5578
|
*/
|
|
5357
5579
|
id: string;
|
|
5358
5580
|
}
|
|
5581
|
+
interface ShapeAssetOptions extends AssetItemOptions {
|
|
5582
|
+
path?: string;
|
|
5583
|
+
}
|
|
5584
|
+
interface ImageAssetOptions extends AssetItemOptions {
|
|
5585
|
+
url?: string;
|
|
5586
|
+
}
|
|
5359
5587
|
interface GradientOptions extends AssetItemOptions {
|
|
5360
5588
|
/**
|
|
5361
5589
|
* 색을 배열로 지정하거나,
|
|
@@ -5462,7 +5690,7 @@ interface ColorListOptions extends AssetItemOptions {
|
|
|
5462
5690
|
*/
|
|
5463
5691
|
colors?: string[];
|
|
5464
5692
|
}
|
|
5465
|
-
type AssetOptionsType = LinearGradientOptions | RadialGradientOptions | PatternOptions | ColorListOptions | ImageListOptions;
|
|
5693
|
+
type AssetOptionsType = ShapeAssetOptions | ImageAssetOptions | LinearGradientOptions | RadialGradientOptions | PatternOptions | ColorListOptions | ImageListOptions;
|
|
5466
5694
|
|
|
5467
5695
|
declare abstract class AssetItem<T extends AssetItemOptions> {
|
|
5468
5696
|
source: T;
|
|
@@ -5490,8 +5718,8 @@ declare class AssetCollection {
|
|
|
5490
5718
|
}
|
|
5491
5719
|
|
|
5492
5720
|
/**
|
|
5493
|
-
*
|
|
5494
|
-
* 기본적으로
|
|
5721
|
+
* 맵차트 제작 주체 등을 표시하는 영역에 대한 모델.<br/>
|
|
5722
|
+
* 기본적으로 맵차트 오른쪽 아래에 표시되지만, {@link align}, {@link verticalAlign} 등으로 위치를 지정할 수 있다.
|
|
5495
5723
|
* {@link url}을 설정하면 마우스 클릭 시 새창을 열고 해당 위치로 이동시킨다.
|
|
5496
5724
|
*/
|
|
5497
5725
|
declare class Credits extends ChartItem<CreditsOptions> {
|
|
@@ -5514,8 +5742,8 @@ interface ScaleOptions extends MapSimpleWidgetOptions {
|
|
|
5514
5742
|
*/
|
|
5515
5743
|
declare const _ColorScaleLayout: {
|
|
5516
5744
|
/**
|
|
5517
|
-
* color scale이
|
|
5518
|
-
* color scale이
|
|
5745
|
+
* color scale이 맵차트 좌우에 배치되면 item들을 수직으로 배치하고,
|
|
5746
|
+
* color scale이 맵차트 상하에 배치되면 item들을 수평으로 배치한다.
|
|
5519
5747
|
*/
|
|
5520
5748
|
readonly AUTO: "auto";
|
|
5521
5749
|
/**
|
|
@@ -6204,7 +6432,7 @@ declare class MapScale extends ScaleBase<MapScaleOptions> {
|
|
|
6204
6432
|
_type(): string;
|
|
6205
6433
|
protected _getScaledSeries(chart: IChart): ISeries;
|
|
6206
6434
|
protected _doApply(options: MapScaleOptions): void;
|
|
6207
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
6435
|
+
protected _doPrepareRender(chart: IChart, op: MapScaleOptions): void;
|
|
6208
6436
|
private $_calcScale;
|
|
6209
6437
|
}
|
|
6210
6438
|
|
|
@@ -6214,9 +6442,9 @@ declare class MapScale extends ScaleBase<MapScaleOptions> {
|
|
|
6214
6442
|
interface MapSourceOptions extends MapSource {
|
|
6215
6443
|
}
|
|
6216
6444
|
/**
|
|
6217
|
-
*
|
|
6445
|
+
* 맵차트의 기준이 되는 맵과 관련 속성 및 시리즈와 게이지의 기본 타입을 결정하는 중요한 몇가지 속성들과
|
|
6218
6446
|
* 하위 구성 요소들에 대한 옵션들을 설정한다.<br/>
|
|
6219
|
-
*
|
|
6447
|
+
* 맵차트 생성 시 이 옵션 객체를 구성해서 전달해야 한다.
|
|
6220
6448
|
*
|
|
6221
6449
|
* ```js
|
|
6222
6450
|
* const chart = RealMap.createChart(doc, 'div', {
|
|
@@ -6250,12 +6478,12 @@ interface ChartConfiguration {
|
|
|
6250
6478
|
* 한 주의 시작 요일.<br/>
|
|
6251
6479
|
* ex) 0: 일요일, 1: 월요일
|
|
6252
6480
|
*
|
|
6253
|
-
* [주의]
|
|
6481
|
+
* [주의] 맵차트 로딩 후 변경할 수 없다.
|
|
6254
6482
|
*
|
|
6255
6483
|
*/
|
|
6256
6484
|
startOfWeek?: number;
|
|
6257
6485
|
/**
|
|
6258
|
-
*
|
|
6486
|
+
* 맵차트 영역 전체에 연관되는 속성들을 설정한다.<br/>
|
|
6259
6487
|
*/
|
|
6260
6488
|
chart?: ChartOptionsOptions;
|
|
6261
6489
|
/**
|
|
@@ -6267,15 +6495,15 @@ interface ChartConfiguration {
|
|
|
6267
6495
|
*/
|
|
6268
6496
|
assets?: AssetOptionsType | AssetOptionsType[];
|
|
6269
6497
|
/**
|
|
6270
|
-
* {@page guide.title
|
|
6498
|
+
* {@page guide.title 맵차트 타이틀} 표시 영역.<br/>
|
|
6271
6499
|
*/
|
|
6272
6500
|
title?: TitleOptions | string;
|
|
6273
6501
|
/**
|
|
6274
|
-
* {@page guide.title
|
|
6502
|
+
* {@page guide.title 맵차트 타이틀} 주변에 추가롤 표시되는 부제목 영역.<br/>
|
|
6275
6503
|
*/
|
|
6276
6504
|
subtitle?: SubtitleOptions | string;
|
|
6277
6505
|
/**
|
|
6278
|
-
*
|
|
6506
|
+
* 맵차트의 기준이 될 지도 소스 및 관련 옵션.<br/>
|
|
6279
6507
|
* 배열로 둘 이상의 맵을 지정할 수 있다.
|
|
6280
6508
|
*/
|
|
6281
6509
|
map?: MapSourceOptions | MapSourceOptions[];
|
|
@@ -6315,11 +6543,11 @@ interface ChartConfiguration {
|
|
|
6315
6543
|
bubbleScales?: BubbleScaleOptions | BubbleScaleOptions[];
|
|
6316
6544
|
mapScale?: MapScale;
|
|
6317
6545
|
/**
|
|
6318
|
-
*
|
|
6546
|
+
* 맵차트가 {@page guide.zoom zoom} 가능할 때 zomm 버튼들이 표시되는 패널.<br/>
|
|
6319
6547
|
*/
|
|
6320
6548
|
zoomPanel?: ZoomPanelOptions | boolean;
|
|
6321
6549
|
/**
|
|
6322
|
-
*
|
|
6550
|
+
* 맵차트가 {@page guide.drilldown 드릴다운} 상태일 때 뒤로 가기 버튼(들)이 표시되는 패널.<br/>
|
|
6323
6551
|
*/
|
|
6324
6552
|
drilldownPanel?: DrilldownPanelOptions | boolean;
|
|
6325
6553
|
/**
|
|
@@ -6385,12 +6613,13 @@ declare class BubbleScale extends ScaleBase<BubbleScaleOptions> {
|
|
|
6385
6613
|
isVertical(): boolean;
|
|
6386
6614
|
protected _getScaledSeries(chart: IChart): ISeries;
|
|
6387
6615
|
protected _doApply(options: BubbleScaleOptions): void;
|
|
6388
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
6616
|
+
protected _doPrepareRender(chart: IChart, op: BubbleScaleOptions): void;
|
|
6389
6617
|
private $_buildSteps;
|
|
6390
6618
|
}
|
|
6391
6619
|
declare class BubbleScaleCollection extends MapWidgetCollection<BubbleScale> {
|
|
6392
6620
|
protected _collectionProp(): string;
|
|
6393
6621
|
protected _createWidget(chart: IChart): BubbleScale;
|
|
6622
|
+
beforeRender(): void;
|
|
6394
6623
|
}
|
|
6395
6624
|
|
|
6396
6625
|
interface IColorRanger {
|
|
@@ -6483,7 +6712,7 @@ declare class ColorScale extends ScaleBase<ColorScaleOptions> implements IColorR
|
|
|
6483
6712
|
protected _doApply(options: ColorScaleOptions): void;
|
|
6484
6713
|
protected _getScaledSeries(chart: IChart): ISeries;
|
|
6485
6714
|
private $_parseColorStops;
|
|
6486
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
6715
|
+
protected _doPrepareRender(chart: IChart, op: ColorScaleOptions): void;
|
|
6487
6716
|
_buildSteps(): void;
|
|
6488
6717
|
private $_parseValue;
|
|
6489
6718
|
private $_normalizeMin;
|
|
@@ -6495,10 +6724,11 @@ declare class ColorScaleCollection extends MapWidgetCollection<ColorScale> {
|
|
|
6495
6724
|
getLegendSources(): ILegendSource[];
|
|
6496
6725
|
protected _collectionProp(): string;
|
|
6497
6726
|
protected _createWidget(chart: IChart): ColorScale;
|
|
6727
|
+
beforeRender(): void;
|
|
6498
6728
|
}
|
|
6499
6729
|
|
|
6500
6730
|
/**
|
|
6501
|
-
*
|
|
6731
|
+
* 맵차트 내보내기 관련 설정 모델.
|
|
6502
6732
|
*/
|
|
6503
6733
|
declare class Exporter extends ChartItem<ExporterOptions> {
|
|
6504
6734
|
static defaults: ExporterOptions;
|
|
@@ -6537,7 +6767,7 @@ declare class MapAxisGrid extends ChartItem<MapAxisGridOptions> {
|
|
|
6537
6767
|
getLonStep(): number;
|
|
6538
6768
|
getLatStep(): number;
|
|
6539
6769
|
protected _doApply(options: MapAxisGridOptions): void;
|
|
6540
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
6770
|
+
protected _doPrepareRender(chart: IChart, op: MapAxisOptions): void;
|
|
6541
6771
|
private $_defaultStep;
|
|
6542
6772
|
}
|
|
6543
6773
|
/**
|
|
@@ -6698,8 +6928,8 @@ declare class DrilldownPanel extends BodyPanel<DrilldownPanelOptions> {
|
|
|
6698
6928
|
}
|
|
6699
6929
|
|
|
6700
6930
|
/**
|
|
6701
|
-
*
|
|
6702
|
-
* 기본적으로
|
|
6931
|
+
* 맵차트 제목(title) 설정 모델.<br/>
|
|
6932
|
+
* 기본적으로 맵차트 중앙 상단에 표시되지만 {@link align}, {@link verticalAlign} 등으로 위치를 변경할 수 있다.<br/>
|
|
6703
6933
|
* {@link guide.title 타이틀 개요} 페이지를 참조한다.
|
|
6704
6934
|
*
|
|
6705
6935
|
* @config chart.title
|
|
@@ -6710,7 +6940,7 @@ declare class Title<OP extends TitleOptions = TitleOptions> extends ChartItem<OP
|
|
|
6710
6940
|
protected _doSetSimple(op: OP, src: any): boolean;
|
|
6711
6941
|
}
|
|
6712
6942
|
/**
|
|
6713
|
-
*
|
|
6943
|
+
* 맵차트 부제목(subtitle) 설정 모델.<br/>
|
|
6714
6944
|
* 기본적으로 주 제목(title)의 설정을 따르고, 몇가지 속성들이 추가된다.<br/>
|
|
6715
6945
|
* {@link guide.subtitle 부제목 개요} 페이지를 참조한다.
|
|
6716
6946
|
*
|
|
@@ -6731,8 +6961,30 @@ declare class MapSeriesPoint extends ValuePoint {
|
|
|
6731
6961
|
declare class MapSeriesDrilldown extends ChartItem<DrilldownOptions> {
|
|
6732
6962
|
static defaults: DrilldownOptions;
|
|
6733
6963
|
}
|
|
6734
|
-
declare class
|
|
6735
|
-
|
|
6964
|
+
declare class MapSeriesBorder extends ChartItem<MapBorderOptions> {
|
|
6965
|
+
name: string;
|
|
6966
|
+
series: MapSeries;
|
|
6967
|
+
static defaults: MapBorderOptions;
|
|
6968
|
+
border: MapBorder;
|
|
6969
|
+
constructor(name: string, series: MapSeries);
|
|
6970
|
+
getPath(): string;
|
|
6971
|
+
protected _doSetSimple(op: MapBorderOptions, src: any): boolean;
|
|
6972
|
+
}
|
|
6973
|
+
declare class MapSeriesBorders extends ChartItem<MapBordersOptions> {
|
|
6974
|
+
name: string;
|
|
6975
|
+
series: MapSeries;
|
|
6976
|
+
static defaults: MapBordersOptions;
|
|
6977
|
+
constructor(name: string, series: MapSeries);
|
|
6978
|
+
}
|
|
6979
|
+
declare class InsetLabel extends IconedText<InsetLabelOptions> {
|
|
6980
|
+
static defaults: InsetLabelOptions;
|
|
6981
|
+
private _args;
|
|
6982
|
+
constructor(chart: IChart);
|
|
6983
|
+
getInsetText(inset: MapInset): string;
|
|
6984
|
+
getInsetLabelStyle(inset: MapInset): SVGStyleOrClass;
|
|
6985
|
+
isInsetLabelVisible(inset: MapInset): boolean;
|
|
6986
|
+
isVisible(): boolean;
|
|
6987
|
+
getDefaultIconPos(): IconPosition;
|
|
6736
6988
|
}
|
|
6737
6989
|
/**
|
|
6738
6990
|
* Map 시리즈 모델.<br/>
|
|
@@ -6747,19 +6999,29 @@ declare class MapSeries extends ValueSeries<MapSeriesOptions> {
|
|
|
6747
6999
|
private _detail;
|
|
6748
7000
|
private _detailed;
|
|
6749
7001
|
private _drilldown;
|
|
7002
|
+
private _insetLabel;
|
|
6750
7003
|
private _internalBorder;
|
|
7004
|
+
private _externalBorder;
|
|
6751
7005
|
private _areaPts;
|
|
6752
7006
|
private _minValue;
|
|
6753
7007
|
private _maxValue;
|
|
6754
7008
|
private _colorObj;
|
|
6755
7009
|
private _colorRanger;
|
|
6756
7010
|
private _useMapData;
|
|
7011
|
+
private _areaMap;
|
|
7012
|
+
private _hiddenAreas;
|
|
7013
|
+
private _mapBorders;
|
|
7014
|
+
private _saveBorders;
|
|
6757
7015
|
get areaCount(): number;
|
|
6758
7016
|
get parent(): MapSeries;
|
|
6759
7017
|
get detail(): MapSeries;
|
|
6760
7018
|
get drilldown(): MapSeriesDrilldown;
|
|
6761
|
-
get
|
|
7019
|
+
get insetLabel(): InsetLabel;
|
|
7020
|
+
get internalBorder(): MapSeriesBorders;
|
|
7021
|
+
get externalBorder(): MapSeriesBorders;
|
|
6762
7022
|
get color(): Color;
|
|
7023
|
+
getMapBorders(): MapSeriesBorder[];
|
|
7024
|
+
isHiddenArea(areaId: string): MapArea;
|
|
6763
7025
|
getHistory(): MapSeries[];
|
|
6764
7026
|
get(second: boolean, index: number): MapArea;
|
|
6765
7027
|
pointOf(area: MapArea): MapSeriesPoint;
|
|
@@ -6776,7 +7038,7 @@ declare class MapSeries extends ValueSeries<MapSeriesOptions> {
|
|
|
6776
7038
|
protected _createLabel(chart: IChart): DataPointLabel;
|
|
6777
7039
|
private $_createDetail;
|
|
6778
7040
|
protected _doLoad(options: ChartItemOptions, source: any): void;
|
|
6779
|
-
protected _doApply(
|
|
7041
|
+
protected _doApply(op: MapSeriesOptions): void;
|
|
6780
7042
|
needMapScale(): boolean;
|
|
6781
7043
|
canAddAnimation(): boolean;
|
|
6782
7044
|
canRemoveAnimation(): boolean;
|
|
@@ -6786,11 +7048,12 @@ declare class MapSeries extends ValueSeries<MapSeriesOptions> {
|
|
|
6786
7048
|
protected _createPoint(source: any): MapSeriesPoint;
|
|
6787
7049
|
protected _getPointArgs(args: DataPointArgs, p: MapSeriesPoint): DataPointArgs;
|
|
6788
7050
|
_prepareRender(): void;
|
|
6789
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
7051
|
+
protected _doPrepareRender(chart: IChart, op: MapSeriesOptions): void;
|
|
6790
7052
|
protected _doLoadPoints(src: any): void;
|
|
6791
7053
|
setCalcedColor(cs: CSSStyleDeclaration, prop: string): void;
|
|
6792
7054
|
getColorScale(): string | number;
|
|
6793
7055
|
canSelect(): boolean;
|
|
7056
|
+
private $_loadBorders;
|
|
6794
7057
|
}
|
|
6795
7058
|
|
|
6796
7059
|
declare class MapBackground extends ChartItem<MapBackgroundOptions> {
|
|
@@ -6805,7 +7068,7 @@ interface IBodyTransform {
|
|
|
6805
7068
|
vy: number;
|
|
6806
7069
|
}
|
|
6807
7070
|
/**
|
|
6808
|
-
* 시리즈, annotation, axis grid 및 guide 등이 표시되는
|
|
7071
|
+
* 시리즈, annotation, axis grid 및 guide 등이 표시되는 맵차트 주 영역 모델.<br/>
|
|
6809
7072
|
* {@page options 설정} 모델은 {@page op.BodyOptions}이다.
|
|
6810
7073
|
*/
|
|
6811
7074
|
declare class Body extends ChartItem<BodyOptions> implements IAnnotationOwner {
|
|
@@ -7035,7 +7298,7 @@ declare class ChartObject extends RmEventProvider<IMapChartEvents> implements IC
|
|
|
7035
7298
|
selectionItemAdded(item: ISelectionSource): void;
|
|
7036
7299
|
selectionItemRemoved(item: ISelectionSource): void;
|
|
7037
7300
|
selectionCleared(): void;
|
|
7038
|
-
get type(): "map" | "
|
|
7301
|
+
get type(): "map" | "point" | "image" | "line" | "figure" | "bar" | "pie" | "waffle" | "bubble" | "route" | "feature" | "pin" | "vector" | "heatmap" | "panel" | "gauge" | "clock";
|
|
7039
7302
|
get chartOptions(): ChartOptions;
|
|
7040
7303
|
get legend(): Legend;
|
|
7041
7304
|
get credits(): Credits;
|
|
@@ -7194,7 +7457,7 @@ declare class ChartItem<OP extends ChartItemOptions = ChartItemOptions> extends
|
|
|
7194
7457
|
* 모델 설정 값들을 변경한다.<br/>
|
|
7195
7458
|
*
|
|
7196
7459
|
* @param source 설정 옵션들이 포함된 json 객체
|
|
7197
|
-
* @param render true로 지정하면 옵션 변경 시
|
|
7460
|
+
* @param render true로 지정하면 옵션 변경 시 맵차트를 다시 그린다. 기본갑 true
|
|
7198
7461
|
* @returns 모델 객체 자신
|
|
7199
7462
|
*/
|
|
7200
7463
|
updateOptions(source?: OP, render?: boolean): this;
|
|
@@ -7203,7 +7466,7 @@ declare class ChartItem<OP extends ChartItemOptions = ChartItemOptions> extends
|
|
|
7203
7466
|
*
|
|
7204
7467
|
* @param prop 설정 항목 이름
|
|
7205
7468
|
* @param value 설정 값
|
|
7206
|
-
* @param render true로 지정하면 옵션 변경 시
|
|
7469
|
+
* @param render true로 지정하면 옵션 변경 시 맵차트를 다시 그린다. 기본갑 true
|
|
7207
7470
|
* @returns 모델 객체 자신
|
|
7208
7471
|
*/
|
|
7209
7472
|
updateOption(prop: keyof OP, value: any, render?: boolean): this;
|
|
@@ -7211,7 +7474,7 @@ declare class ChartItem<OP extends ChartItemOptions = ChartItemOptions> extends
|
|
|
7211
7474
|
* boolean 타입의 모델 설정 값을 반대 값으로 변경한다.<br/>
|
|
7212
7475
|
*
|
|
7213
7476
|
* @param prop 설정 항목 이름
|
|
7214
|
-
* @param render true로 지정하면 옵션 변경 시
|
|
7477
|
+
* @param render true로 지정하면 옵션 변경 시 맵차트를 다시 그린다. 기본갑 true
|
|
7215
7478
|
* @returns 모델 객체 자신
|
|
7216
7479
|
*/
|
|
7217
7480
|
toggleOption(prop: keyof OP, render?: boolean): this;
|
|
@@ -7219,21 +7482,21 @@ declare class ChartItem<OP extends ChartItemOptions = ChartItemOptions> extends
|
|
|
7219
7482
|
* 명시적으로 설정된 모델 설정 값을 제거해서 모델의 기본 값이 적용되도록 한다.<br/>
|
|
7220
7483
|
*
|
|
7221
7484
|
* @param prop 설정 항목 이름
|
|
7222
|
-
* @param render true로 지정하면 옵션 변경 시
|
|
7485
|
+
* @param render true로 지정하면 옵션 변경 시 맵차트를 다시 그린다. 기본갑 true
|
|
7223
7486
|
* @returns 모델 객체 자신
|
|
7224
7487
|
*/
|
|
7225
7488
|
removeOption(prop: keyof OP, render?: boolean): this;
|
|
7226
7489
|
/**
|
|
7227
7490
|
* 명시적으로 설정된 모든 모델 설정 값들을 제거한다..<br/>
|
|
7228
7491
|
*
|
|
7229
|
-
* @param render true로 지정하면 옵션 변경 시
|
|
7492
|
+
* @param render true로 지정하면 옵션 변경 시 맵차트를 다시 그린다. 기본갑 true
|
|
7230
7493
|
* @returns 모델 객체 자신
|
|
7231
7494
|
*/
|
|
7232
7495
|
clearOptions(render?: boolean): this;
|
|
7233
7496
|
/**
|
|
7234
7497
|
* 명시적으로 모델에 설정된 모든 style 값들을 제거한다.<br/>
|
|
7235
7498
|
*
|
|
7236
|
-
* @param render true로 지정하면 옵션 변경 시
|
|
7499
|
+
* @param render true로 지정하면 옵션 변경 시 맵차트를 다시 그린다. 기본갑 false
|
|
7237
7500
|
* @returns
|
|
7238
7501
|
*/
|
|
7239
7502
|
clearStyle(render?: boolean): this;
|
|
@@ -7242,7 +7505,7 @@ declare class ChartItem<OP extends ChartItemOptions = ChartItemOptions> extends
|
|
|
7242
7505
|
*
|
|
7243
7506
|
* @param prop css 스타일 항목 이름.
|
|
7244
7507
|
* @param value 적용할 스타일 값.
|
|
7245
|
-
* @param render true로 지정하면 옵션 변경 시
|
|
7508
|
+
* @param render true로 지정하면 옵션 변경 시 맵차트를 다시 그린다. 기본갑 true
|
|
7246
7509
|
* @returns
|
|
7247
7510
|
*/
|
|
7248
7511
|
setStyle(prop: string, value: any, render?: boolean): this;
|
|
@@ -7250,7 +7513,7 @@ declare class ChartItem<OP extends ChartItemOptions = ChartItemOptions> extends
|
|
|
7250
7513
|
* 여러 항목의 모델 css style 값들을 json 객체로 지정해서 동시에 변경한다.<br/>
|
|
7251
7514
|
*
|
|
7252
7515
|
* @param styles 스타일 항목들과 값들이 설정된 json 객체
|
|
7253
|
-
* @param render true로 지정하면 옵션 변경 시
|
|
7516
|
+
* @param render true로 지정하면 옵션 변경 시 맵차트를 다시 그린다. 기본갑 true
|
|
7254
7517
|
* @returns
|
|
7255
7518
|
*/
|
|
7256
7519
|
setStyles(styles: any, render?: boolean): this;
|
|
@@ -7268,7 +7531,7 @@ declare class ChartItem<OP extends ChartItemOptions = ChartItemOptions> extends
|
|
|
7268
7531
|
protected _doSave(target: object): void;
|
|
7269
7532
|
/** @internal */
|
|
7270
7533
|
protected _doUpdate(source: any): void;
|
|
7271
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
7534
|
+
protected _doPrepareRender(chart: IChart, op: OP): void;
|
|
7272
7535
|
protected _doAfterRender(): void;
|
|
7273
7536
|
}
|
|
7274
7537
|
declare abstract class ChartItemCollection<T extends ChartItem> {
|
|
@@ -7312,7 +7575,7 @@ declare abstract class IconedText<OP extends IconedTextOptions = IconedTextOptio
|
|
|
7312
7575
|
private _root;
|
|
7313
7576
|
abstract getDefaultIconPos(): IconPosition;
|
|
7314
7577
|
getIconPos(): IconPosition;
|
|
7315
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
7578
|
+
protected _doPrepareRender(chart: IChart, op: IconedTextOptions): void;
|
|
7316
7579
|
getUrl(url: string): string;
|
|
7317
7580
|
}
|
|
7318
7581
|
declare class MapWidgetBackground extends ChartItem<MapWidgetBackgroundOptions> {
|
|
@@ -7348,7 +7611,7 @@ declare abstract class MapWidget<OP extends MapWidgetOptions = MapWidgetOptions>
|
|
|
7348
7611
|
_setIndex(value: number): void;
|
|
7349
7612
|
getDefaultDisplay(caption: MapWidgetCaption): MapWidgetCaptionDisplay;
|
|
7350
7613
|
protected _doInit(op: MapWidgetOptions): void;
|
|
7351
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
7614
|
+
protected _doPrepareRender(chart: IChart, op: OP): void;
|
|
7352
7615
|
}
|
|
7353
7616
|
declare abstract class MapSimpleWidget<OP extends MapSimpleWidgetOptions = MapSimpleWidgetOptions> extends MapWidget<OP> {
|
|
7354
7617
|
}
|
|
@@ -7368,6 +7631,9 @@ declare abstract class MapWidgetCollection<T extends MapWidget = MapWidget> exte
|
|
|
7368
7631
|
protected _visibles: T[];
|
|
7369
7632
|
getVisibles(loc: ChartItemLocation): T[];
|
|
7370
7633
|
get(name: string | number, loc: ChartItemLocation): T;
|
|
7634
|
+
find(name: string | number, force: boolean): T;
|
|
7635
|
+
beforeRender(): void;
|
|
7636
|
+
protected _collectVisibles(): void;
|
|
7371
7637
|
prepareRender(): void;
|
|
7372
7638
|
load(src: any): void;
|
|
7373
7639
|
protected abstract _collectionProp(): string;
|
|
@@ -7386,14 +7652,14 @@ declare abstract class ScaleBase<OP extends ScaleOptions = ScaleOptions> extends
|
|
|
7386
7652
|
static defaults: ScaleOptions;
|
|
7387
7653
|
protected _series: ISeries;
|
|
7388
7654
|
get series(): ISeries<DataPoint>;
|
|
7389
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
7655
|
+
protected _doPrepareRender(chart: IChart, op: OP): void;
|
|
7390
7656
|
protected abstract _getScaledSeries(chart: IChart): ISeries;
|
|
7391
7657
|
}
|
|
7392
7658
|
|
|
7393
7659
|
/**
|
|
7394
7660
|
* Annotation 모델들의 기반 클래스.<br/>
|
|
7395
7661
|
* {@page options 옵션} 모델은 {@page op.AnnotationOptions}이고,
|
|
7396
|
-
* {@page config
|
|
7662
|
+
* {@page config 맵차트 설정}에서 {@page config.annotation 'annotation'} 항목으로 설정한다.
|
|
7397
7663
|
* ```js
|
|
7398
7664
|
* const config = {
|
|
7399
7665
|
* annotation: [{
|
|
@@ -7449,7 +7715,7 @@ declare abstract class Annotation<OP extends AnnotationOptions = AnnotationOptio
|
|
|
7449
7715
|
refresh(): void;
|
|
7450
7716
|
_load(source: any): OP;
|
|
7451
7717
|
protected _doApply(options: AnnotationOptions): void;
|
|
7452
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
7718
|
+
protected _doPrepareRender(chart: IChart, op: AnnotationOptions): void;
|
|
7453
7719
|
}
|
|
7454
7720
|
/**
|
|
7455
7721
|
* @internal
|
|
@@ -7478,12 +7744,12 @@ declare class AnnotationCollection extends ChartItemCollection<Annotation> {
|
|
|
7478
7744
|
}
|
|
7479
7745
|
|
|
7480
7746
|
/**
|
|
7481
|
-
*
|
|
7747
|
+
* 맵차트 생성 이후 호출되는 콜백의 매개변수로 사용된다.
|
|
7482
7748
|
*/
|
|
7483
7749
|
interface LoadCallbackArgs extends CommonCallbackArgs {
|
|
7484
7750
|
}
|
|
7485
7751
|
/**
|
|
7486
|
-
* RealMap 라이브러리의
|
|
7752
|
+
* RealMap 라이브러리의 맵차트 모델.<br/>
|
|
7487
7753
|
*/
|
|
7488
7754
|
declare class MapChart {
|
|
7489
7755
|
_obj: ChartObject;
|
|
@@ -7511,21 +7777,21 @@ declare class MapChart {
|
|
|
7511
7777
|
*/
|
|
7512
7778
|
get map(): MapModel;
|
|
7513
7779
|
/**
|
|
7514
|
-
*
|
|
7780
|
+
* 맵차트 타이틀 모델.
|
|
7515
7781
|
*/
|
|
7516
7782
|
get title(): Title;
|
|
7517
7783
|
/**
|
|
7518
|
-
*
|
|
7784
|
+
* 맵차트 부제목 모델.
|
|
7519
7785
|
*/
|
|
7520
7786
|
get subtitle(): Subtitle;
|
|
7521
7787
|
/**
|
|
7522
|
-
*
|
|
7788
|
+
* 맵차트에 설정된 첫번째 시리즈.<br/>
|
|
7523
7789
|
* {@link guide.series 시리즈 개요} 및
|
|
7524
7790
|
* {@link config.base.series 시리즈 설정}을 참조한다.
|
|
7525
7791
|
*/
|
|
7526
7792
|
get series(): Series;
|
|
7527
7793
|
/**
|
|
7528
|
-
*
|
|
7794
|
+
* 맵차트에 설정된 첫번째 맵시리즈.<br/>
|
|
7529
7795
|
* {@link guide.series 시리즈 개요} 및
|
|
7530
7796
|
* {@link config.base.series 시리즈 설정}을 참조한다.
|
|
7531
7797
|
*/
|
|
@@ -7567,11 +7833,11 @@ declare class MapChart {
|
|
|
7567
7833
|
*/
|
|
7568
7834
|
get selection(): MapSelection;
|
|
7569
7835
|
/**
|
|
7570
|
-
*
|
|
7836
|
+
* 맵차트 내보내기 관련 설정 모델.
|
|
7571
7837
|
*/
|
|
7572
7838
|
get exporter(): Exporter;
|
|
7573
7839
|
/**
|
|
7574
|
-
*
|
|
7840
|
+
* 맵차트 축의 기준이 되는 맵 모델을 지정한다.<br/>
|
|
7575
7841
|
* 매개변수를 지정하지 않거나 잘못된 값을 넘기면 첫번째 enabled인 맵으로 설정된다.
|
|
7576
7842
|
*/
|
|
7577
7843
|
setBaseMap(indexOrName?: number | string): void;
|
|
@@ -7599,34 +7865,34 @@ declare class MapChart {
|
|
|
7599
7865
|
getAnnotation(name: string): Annotation;
|
|
7600
7866
|
/**
|
|
7601
7867
|
* 기존 모델 설정을 모두 제거하고 초기화 한 후,
|
|
7602
|
-
* config로 전달된 설정에 따라
|
|
7868
|
+
* config로 전달된 설정에 따라 맵차트를 새로 구성한다.<br/>
|
|
7603
7869
|
* 기존에 생성되었던 시리즈나 게이지들과 축들이 모두 제거되고 새로 생성된다.
|
|
7604
7870
|
*
|
|
7605
|
-
* @param config
|
|
7871
|
+
* @param config 맵차트 설정 정보
|
|
7606
7872
|
*/
|
|
7607
7873
|
load(config: ChartConfiguration, loadAnimation?: boolean, callback?: (param: LoadCallbackArgs) => void): MapChart;
|
|
7608
7874
|
/**
|
|
7609
7875
|
* load 메서드의 async 버전. <br/>
|
|
7610
7876
|
*
|
|
7611
7877
|
* 기존 모델 설정을 모두 제거하고 초기화 한 후,
|
|
7612
|
-
* config로 전달된 설정에 따라
|
|
7878
|
+
* config로 전달된 설정에 따라 맵차트를 새로 구성한다.<br/>
|
|
7613
7879
|
* 기존에 생성되었던 시리즈나 게이지들과 축들이 모두 제거되고 새로 생성된다.
|
|
7614
7880
|
*
|
|
7615
7881
|
* 또한 map과 series 옵션에 url 속성이 있는 경우, 해당 url에서 데이터를 가져온 다음, <br/>
|
|
7616
7882
|
* 각 옵션의 map 또는 data 속성을 채운다.
|
|
7617
7883
|
*
|
|
7618
|
-
* @param config
|
|
7884
|
+
* @param config 맵차트 설정 정보
|
|
7619
7885
|
*/
|
|
7620
7886
|
loadAsync(config: ChartConfiguration, loadAnimation?: boolean, callback?: () => void): Promise<MapChart>;
|
|
7621
7887
|
/**
|
|
7622
|
-
* {@link load}와 달리 기존 모델을 유지하면서
|
|
7888
|
+
* {@link load}와 달리 기존 모델을 유지하면서 맵차트 설정 일부를 반영한다.<br/>
|
|
7623
7889
|
*
|
|
7624
7890
|
* @param options 설정 객체
|
|
7625
7891
|
* @param render true로 지정하면 다시 그리도록 요청한다.
|
|
7626
7892
|
*/
|
|
7627
7893
|
updateOptions(options: ChartConfiguration, render?: boolean): void;
|
|
7628
7894
|
/**
|
|
7629
|
-
* 현재 표시 중인
|
|
7895
|
+
* 현재 표시 중인 맵차트를 PNG, JPG 또는 SVG 벡터 이미지로 다운로드한다.
|
|
7630
7896
|
*
|
|
7631
7897
|
* ```js
|
|
7632
7898
|
* chart.export({
|
|
@@ -7639,11 +7905,11 @@ declare class MapChart {
|
|
|
7639
7905
|
*/
|
|
7640
7906
|
export(options: ExportOptions): void;
|
|
7641
7907
|
/**
|
|
7642
|
-
* 다음 rendering frame을 기다리지 않고,
|
|
7643
|
-
*
|
|
7908
|
+
* 다음 rendering frame을 기다리지 않고, 맵차트를 즉시 다시 그린다.<br/>
|
|
7909
|
+
* 맵차트 rendering 작업은 자원 소모가 많고 소용 시간도 적지 않으므로,
|
|
7644
7910
|
* data나 여러 모델을 수정하는 경우 모든 작업이 완료된 후 한 번 호출해야 한다.
|
|
7645
7911
|
* 가능하면 이 함수는 호출하지 않고
|
|
7646
|
-
*
|
|
7912
|
+
* 맵차트 기본 동작(다음 frame에 이전 변경 사항들을 모아서 한 번 rendering)으로 실행되게 해야 한다.
|
|
7647
7913
|
*/
|
|
7648
7914
|
render(now?: boolean): void;
|
|
7649
7915
|
setParam(param: string, value: any, redraw?: boolean): void;
|
|
@@ -7663,7 +7929,7 @@ declare class MapChart {
|
|
|
7663
7929
|
*/
|
|
7664
7930
|
removeSeries(series: string | Series, animate?: boolean): void;
|
|
7665
7931
|
/**
|
|
7666
|
-
*
|
|
7932
|
+
* 맵차트 설정의 map.points로 지정한 위치를 리턴한다.
|
|
7667
7933
|
*
|
|
7668
7934
|
* @param id 포인트 키.
|
|
7669
7935
|
* @returns [lon, lat]
|
|
@@ -7694,7 +7960,7 @@ declare class Globals {
|
|
|
7694
7960
|
*/
|
|
7695
7961
|
static setLicenseKey(key: string): void;
|
|
7696
7962
|
/**
|
|
7697
|
-
* true로 지정하면
|
|
7963
|
+
* true로 지정하면 맵차트 요소별 디버그 경계를 표시한다.<br/>
|
|
7698
7964
|
* 기본은 false 상태다.
|
|
7699
7965
|
*
|
|
7700
7966
|
* ```js
|
|
@@ -7723,7 +7989,7 @@ declare class Globals {
|
|
|
7723
7989
|
*/
|
|
7724
7990
|
static setGlobals(globals: any): void;
|
|
7725
7991
|
/**
|
|
7726
|
-
*
|
|
7992
|
+
* 맵차트 설정 모델을 기반으로 svg를 생성한 후,
|
|
7727
7993
|
* 지정된 div 엘리먼트의 유일한 자식으로 포함시킨다.\
|
|
7728
7994
|
* div 전체 영역의 크기로 표시된다.
|
|
7729
7995
|
*
|
|
@@ -7733,14 +7999,14 @@ declare class Globals {
|
|
|
7733
7999
|
*
|
|
7734
8000
|
* @param doc
|
|
7735
8001
|
* @param container 컨트롤이 생성되는 div 엘리먼트나 id
|
|
7736
|
-
* @param config
|
|
8002
|
+
* @param config 맵차트 모델 설정 JSON
|
|
7737
8003
|
* @param animate 첫 로딩 animation을 실행한다.
|
|
7738
|
-
* @param callback
|
|
7739
|
-
* @returns 생성된
|
|
8004
|
+
* @param callback 맵차트가 모두 로드되고 첫 렌더링이 완료된 후 호출되는 콜백 함수.
|
|
8005
|
+
* @returns 생성된 맵차트 객체
|
|
7740
8006
|
*/
|
|
7741
8007
|
static createChart(doc: Document, container: string | HTMLDivElement, config: any, animate?: boolean, callback?: (param: LoadCallbackArgs) => void): MapChart;
|
|
7742
8008
|
/**
|
|
7743
|
-
* 지도 파일이나 데이터가 URL을 통해 제공되는 경우, 데이터를 모두 로드한 뒤
|
|
8009
|
+
* 지도 파일이나 데이터가 URL을 통해 제공되는 경우, 데이터를 모두 로드한 뒤 맵차트를 생성하도록 비동기 처리할 수 있다.
|
|
7744
8010
|
*
|
|
7745
8011
|
* ```js
|
|
7746
8012
|
* const config = {
|
|
@@ -7756,16 +8022,16 @@ declare class Globals {
|
|
|
7756
8022
|
*
|
|
7757
8023
|
* @param doc
|
|
7758
8024
|
* @param container 컨트롤이 생성되는 div 엘리먼트나 id
|
|
7759
|
-
* @param config
|
|
8025
|
+
* @param config 맵차트 모델 설정 JSON
|
|
7760
8026
|
* @param animate 첫 로딩 animation을 실행한다.
|
|
7761
|
-
* @param callback
|
|
7762
|
-
* @returns 생성된
|
|
8027
|
+
* @param callback 맵차트가 모두 로드되고 첫 렌더링이 완료된 후 호출되는 콜백 함수.
|
|
8028
|
+
* @returns 생성된 맵차트 객체
|
|
7763
8029
|
*/
|
|
7764
8030
|
static createChartAsync(doc: Document, container: string | HTMLDivElement, config: any, animate?: boolean, callback?: (param: LoadCallbackArgs) => void): Promise<MapChart>;
|
|
7765
8031
|
/**
|
|
7766
8032
|
* name에 해당하는 기본 제공 객체를 리턴한다.<br/>
|
|
7767
8033
|
*/
|
|
7768
|
-
static preset(name: string, info?: MapInsetDisplay): MapInset;
|
|
8034
|
+
static preset(name: string, info?: boolean | MapInsetDisplay): MapInset;
|
|
7769
8035
|
}
|
|
7770
8036
|
|
|
7771
8037
|
/**
|
|
@@ -8085,8 +8351,6 @@ declare class PolyLineElement extends PathElement {
|
|
|
8085
8351
|
setLines(pts: (number | MapCoord | IPoint)[], curved: boolean): void;
|
|
8086
8352
|
}
|
|
8087
8353
|
|
|
8088
|
-
type ShapeDrawer = (rd: number, rd2: number) => (string | number)[];
|
|
8089
|
-
|
|
8090
8354
|
declare class HoverAnimation extends RmAnimation {
|
|
8091
8355
|
private _series;
|
|
8092
8356
|
_focused: boolean;
|
|
@@ -8118,7 +8382,6 @@ declare class PointLabelContainer extends LayerElement {
|
|
|
8118
8382
|
private _maps;
|
|
8119
8383
|
constructor(doc: Document, styleName: string);
|
|
8120
8384
|
isEmpty(): boolean;
|
|
8121
|
-
clear(): void;
|
|
8122
8385
|
private $_prepareLabel;
|
|
8123
8386
|
prepare(doc: Document, owner: SeriesView): void;
|
|
8124
8387
|
/**
|
|
@@ -8204,6 +8467,7 @@ declare abstract class SeriesView<T extends Series = Series> extends ChartElemen
|
|
|
8204
8467
|
_second: boolean;
|
|
8205
8468
|
_h1: number;
|
|
8206
8469
|
_h2: number;
|
|
8470
|
+
private _defs;
|
|
8207
8471
|
_pointLayer: LayerElement;
|
|
8208
8472
|
_pointContainer: PointContainer;
|
|
8209
8473
|
_calloutContainer: PointCalloutContainer;
|
|
@@ -8217,14 +8481,16 @@ declare abstract class SeriesView<T extends Series = Series> extends ChartElemen
|
|
|
8217
8481
|
_hoverPts: IPointView[];
|
|
8218
8482
|
protected _wBody: number;
|
|
8219
8483
|
protected _hBody: number;
|
|
8484
|
+
protected _dirty: boolean;
|
|
8220
8485
|
_scale: number;
|
|
8221
8486
|
protected _scaler: (coord: MapCoord) => MapCoord;
|
|
8222
8487
|
_aniOpacity: number;
|
|
8223
|
-
constructor(doc: Document, className: string, needLabels
|
|
8488
|
+
constructor(doc: Document, className: string, needLabels: boolean, useDefs: boolean);
|
|
8224
8489
|
get owner(): ISeriesViewOwner;
|
|
8490
|
+
secondLabelContainer(): LayerElement;
|
|
8225
8491
|
protected _setCalcedColor(model: T, dom: Element): void;
|
|
8226
8492
|
protected _setModelColor(color: string): void;
|
|
8227
|
-
|
|
8493
|
+
prepareModel(doc: Document, model: T): void;
|
|
8228
8494
|
prepareLayout(doc: Document): void;
|
|
8229
8495
|
render(wBody: number, hBody: number): void;
|
|
8230
8496
|
reset(): void;
|
|
@@ -8247,7 +8513,9 @@ declare abstract class SeriesView<T extends Series = Series> extends ChartElemen
|
|
|
8247
8513
|
protected abstract _doRender(width: number, height: number): void;
|
|
8248
8514
|
protected abstract _doReset(): void;
|
|
8249
8515
|
protected get growRate(): number;
|
|
8516
|
+
protected _createLabelContainer(doc: Document, className: string): PointLabelContainer;
|
|
8250
8517
|
_animating(): boolean;
|
|
8518
|
+
protected _addDef(elt: SVGElement, name: string): SVGElement;
|
|
8251
8519
|
protected _getPointPositioner(pos: PointViewPosition, autoPos: string): PointPositioner;
|
|
8252
8520
|
protected _getLabelPositioner(pos: PointLabelPosition, autoPos: string): LabelPositioner;
|
|
8253
8521
|
protected _labelViews(): PointLabelContainer;
|
|
@@ -8278,7 +8546,7 @@ declare abstract class MarkerSeriesPointView<T extends MarkerSeriesPoint = Marke
|
|
|
8278
8546
|
}
|
|
8279
8547
|
declare abstract class MarkerSeriesView<T extends MarkerSeries = MarkerSeries> extends SeriesView<T> {
|
|
8280
8548
|
protected _markers: PointViewPool<MarkerSeriesPointView<MarkerSeriesPoint>>;
|
|
8281
|
-
constructor(doc: Document, styleName: string);
|
|
8549
|
+
constructor(doc: Document, styleName: string, needLabels: boolean, useDefs: boolean);
|
|
8282
8550
|
protected abstract _createMarkers(container: RmElement): PointViewPool<MarkerSeriesPointView<MarkerSeriesPoint>>;
|
|
8283
8551
|
getHintDistance(): number;
|
|
8284
8552
|
protected _getPointPool(): PointViewPool<PointElement>;
|
|
@@ -8563,7 +8831,6 @@ declare class BubbleSeriesPoint extends MarkerSeriesPoint {
|
|
|
8563
8831
|
labelCount(): number;
|
|
8564
8832
|
protected _readObject(series: ISeries<BubbleSeriesPoint>, v: any): void;
|
|
8565
8833
|
protected _valuesChanged(prev: any): boolean;
|
|
8566
|
-
protected _assignTo(proxy: any): void;
|
|
8567
8834
|
}
|
|
8568
8835
|
/**
|
|
8569
8836
|
* Bubble 시리즈 모델.<br/>
|
|
@@ -8597,7 +8864,7 @@ declare class BubbleSeries extends MarkerSeries<BubbleSeriesOptions> {
|
|
|
8597
8864
|
pointLabelCount(): number;
|
|
8598
8865
|
getPointLabels(): DataPointLabel<DataPointLabelOptions>[];
|
|
8599
8866
|
protected _createPoint(source: any): BubbleSeriesPoint;
|
|
8600
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
8867
|
+
protected _doPrepareRender(chart: IChart, op: BubbleSeriesOptions): void;
|
|
8601
8868
|
}
|
|
8602
8869
|
|
|
8603
8870
|
declare class CircleGaugeItem<OP extends ChartItemOptions> extends ChartItem<OP> {
|
|
@@ -8864,10 +9131,17 @@ declare class ClockGauge extends Gauge<ClockGaugeOptions> {
|
|
|
8864
9131
|
* [name, lon, lat], [lon, lat]
|
|
8865
9132
|
*/
|
|
8866
9133
|
declare class FigureSeriesPoint extends MarkerSeriesPoint {
|
|
9134
|
+
/**
|
|
9135
|
+
* 시리즈에 등록된 figure id를 지정한다.<br/>
|
|
9136
|
+
*/
|
|
8867
9137
|
figure: string;
|
|
8868
9138
|
position: PointViewPosition;
|
|
8869
9139
|
protected _readObject(series: ISeries<FigureSeriesPoint>, v: any): void;
|
|
8870
9140
|
}
|
|
9141
|
+
declare class FigureSeriesImage extends ChartItem<FigureSeriesImageOptions> {
|
|
9142
|
+
static defaults: FigureSeriesImageOptions;
|
|
9143
|
+
getSize(): ISize;
|
|
9144
|
+
}
|
|
8871
9145
|
/**
|
|
8872
9146
|
* Figure 시리즈 모델.<br/>
|
|
8873
9147
|
* {@page op.SeriesOptions#type}은 {@page config.series.figure 'figure'}이고,
|
|
@@ -8877,13 +9151,23 @@ declare class FigureSeries extends ValueSeries<FigureSeriesOptions> {
|
|
|
8877
9151
|
static type: string;
|
|
8878
9152
|
static defaults: FigureSeriesOptions;
|
|
8879
9153
|
private _innerLabel;
|
|
9154
|
+
private _innerImage;
|
|
9155
|
+
private _figureBox;
|
|
8880
9156
|
protected _doInit(op: FigureSeriesOptions): void;
|
|
8881
|
-
getFigure(p: FigureSeriesPoint): string;
|
|
8882
9157
|
get innerLabel(): DataPointLabel<DataPointLabelOptions>;
|
|
9158
|
+
get innerImage(): FigureSeriesImage;
|
|
9159
|
+
get path(): string | (string | {
|
|
9160
|
+
path: string;
|
|
9161
|
+
style: SVGStyleOrClass;
|
|
9162
|
+
})[];
|
|
9163
|
+
get figureBox(): [number, number];
|
|
9164
|
+
getFigureSize(): ISize;
|
|
9165
|
+
getImageSize(): ISize;
|
|
8883
9166
|
protected _doApply(options: FigureSeriesOptions): void;
|
|
8884
9167
|
protected _createPoint(source: any): FigureSeriesPoint;
|
|
8885
9168
|
protected _defLabelOff(): number;
|
|
8886
9169
|
protected _doLoadPoints(src: any): void;
|
|
9170
|
+
private $_calcBox;
|
|
8887
9171
|
}
|
|
8888
9172
|
|
|
8889
9173
|
/**
|
|
@@ -9021,7 +9305,7 @@ declare class PieSeries extends SparkSeries<PieSeriesOptions> {
|
|
|
9021
9305
|
protected _createPoint(source: any): PieSeriesPoint;
|
|
9022
9306
|
protected _defLabelOff(): number;
|
|
9023
9307
|
protected _doApply(options: PieSeriesOptions): void;
|
|
9024
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
9308
|
+
protected _doPrepareRender(chart: IChart, op: PieSeriesOptions): void;
|
|
9025
9309
|
private $_parseThresholds;
|
|
9026
9310
|
}
|
|
9027
9311
|
|
|
@@ -9068,7 +9352,7 @@ declare class PinSeries extends MarkerSeries<PinSeriesOptions> {
|
|
|
9068
9352
|
max: number;
|
|
9069
9353
|
};
|
|
9070
9354
|
getRangedColor(p: PinSeriesPoint): string;
|
|
9071
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
9355
|
+
protected _doPrepareRender(chart: IChart, op: PinSeriesOptions): void;
|
|
9072
9356
|
}
|
|
9073
9357
|
|
|
9074
9358
|
/**
|
|
@@ -9171,7 +9455,7 @@ declare class WaffleSeries extends SparkSeries<WaffleSeriesOptions> {
|
|
|
9171
9455
|
hCell: number;
|
|
9172
9456
|
gap: number;
|
|
9173
9457
|
};
|
|
9174
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
9458
|
+
protected _doPrepareRender(chart: IChart, op: WaffleSeriesOptions): void;
|
|
9175
9459
|
private $_caculate;
|
|
9176
9460
|
private $_rows;
|
|
9177
9461
|
private $_cols;
|
|
@@ -9246,7 +9530,7 @@ declare class HtmlAnnotation extends Annotation<HtmlAnnotationOptions> {
|
|
|
9246
9530
|
private $_apply;
|
|
9247
9531
|
protected _isVisible(): boolean;
|
|
9248
9532
|
protected _doSetSimple(op: HtmlAnnotationOptions, src: any): boolean;
|
|
9249
|
-
protected _doPrepareRender(chart: IChart): void;
|
|
9533
|
+
protected _doPrepareRender(chart: IChart, op: HtmlAnnotationOptions): void;
|
|
9250
9534
|
}
|
|
9251
9535
|
|
|
9252
9536
|
declare abstract class SeriesAnimation {
|