@operato/image-marker 8.0.0-alpha.10 → 8.0.0-alpha.17
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/CHANGELOG.md +9 -0
- package/dist/src/ox-image-marker.d.ts +3 -0
- package/dist/src/ox-image-marker.js +213 -110
- package/dist/src/ox-image-marker.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/ox-image-marker.ts +239 -114
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [8.0.0-alpha.17](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.16...v8.0.0-alpha.17) (2024-10-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### :bug: Bug Fix
|
|
10
|
+
|
|
11
|
+
* ox-image-marker ([7393507](https://github.com/hatiolab/operato/commit/73935070ba969772cdf6e8c1eff90b0379f535b1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [8.0.0-alpha.10](https://github.com/hatiolab/operato/compare/v8.0.0-alpha.9...v8.0.0-alpha.10) (2024-09-18)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -17,43 +17,111 @@ let OxImageMarker = class OxImageMarker extends BaseImageMarker {
|
|
|
17
17
|
this.offsetY = 0;
|
|
18
18
|
// 마우스 이동 이벤트 핸들러 (도형 그리기 중)
|
|
19
19
|
this.onMouseMove = (event) => {
|
|
20
|
-
if (!this.drawing
|
|
20
|
+
if (!this.drawing)
|
|
21
21
|
return;
|
|
22
22
|
const { x, y } = this.getSvgPoint(event);
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
23
|
+
// 최소 거리 확인 (예: 5px 이상이어야 도형을 생성)
|
|
24
|
+
const minDistance = 5;
|
|
25
|
+
const distance = Math.sqrt(Math.pow(x - this.startX, 2) + Math.pow(y - this.startY, 2));
|
|
26
|
+
if (!this.selectedShape && distance >= minDistance) {
|
|
27
|
+
// 거리가 충분할 때만 새로운 도형을 생성
|
|
28
|
+
let newShape;
|
|
29
|
+
switch (this.currentShapeType) {
|
|
30
|
+
case 'rectangle':
|
|
31
|
+
newShape = {
|
|
32
|
+
id: Date.now().toString(),
|
|
33
|
+
type: 'rectangle',
|
|
34
|
+
x: this.startX,
|
|
35
|
+
y: this.startY,
|
|
36
|
+
width: 0,
|
|
37
|
+
height: 0
|
|
38
|
+
};
|
|
39
|
+
break;
|
|
40
|
+
case 'circle':
|
|
41
|
+
newShape = {
|
|
42
|
+
id: Date.now().toString(),
|
|
43
|
+
type: 'circle',
|
|
44
|
+
cx: this.startX,
|
|
45
|
+
cy: this.startY,
|
|
46
|
+
r: 0
|
|
47
|
+
};
|
|
48
|
+
break;
|
|
49
|
+
case 'triangle':
|
|
50
|
+
newShape = {
|
|
51
|
+
id: Date.now().toString(),
|
|
52
|
+
type: 'triangle',
|
|
53
|
+
x1: this.startX,
|
|
54
|
+
y1: this.startY,
|
|
55
|
+
width: 0,
|
|
56
|
+
height: 0,
|
|
57
|
+
points: `${this.startX},${this.startY} ${this.startX},${this.startY} ${this.startX},${this.startY}`
|
|
58
|
+
};
|
|
59
|
+
break;
|
|
60
|
+
case 'line':
|
|
61
|
+
newShape = {
|
|
62
|
+
id: Date.now().toString(),
|
|
63
|
+
type: 'line',
|
|
64
|
+
x1: this.startX,
|
|
65
|
+
y1: this.startY,
|
|
66
|
+
width: 0,
|
|
67
|
+
height: 0
|
|
68
|
+
};
|
|
69
|
+
break;
|
|
70
|
+
case 'arrow':
|
|
71
|
+
newShape = {
|
|
72
|
+
id: Date.now().toString(),
|
|
73
|
+
type: 'arrow',
|
|
74
|
+
x1: this.startX,
|
|
75
|
+
y1: this.startY,
|
|
76
|
+
width: 0,
|
|
77
|
+
height: 0
|
|
78
|
+
};
|
|
79
|
+
break;
|
|
80
|
+
default:
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
this.selectedShape = newShape;
|
|
84
|
+
this.shapes = [...this.shapes, newShape]; // 새로운 도형 추가
|
|
85
|
+
}
|
|
86
|
+
if (this.selectedShape) {
|
|
87
|
+
// 선택된 도형의 크기를 업데이트
|
|
88
|
+
switch (this.selectedShape.type) {
|
|
89
|
+
case 'rectangle':
|
|
90
|
+
// x, y를 업데이트하여 음의 방향으로 드래그할 때도 사각형이 올바르게 그려지도록 함
|
|
91
|
+
this.selectedShape.x = Math.min(x, this.startX);
|
|
92
|
+
this.selectedShape.y = Math.min(y, this.startY);
|
|
93
|
+
this.selectedShape.width = Math.abs(x - this.startX);
|
|
94
|
+
this.selectedShape.height = Math.abs(y - this.startY);
|
|
95
|
+
break;
|
|
96
|
+
case 'circle':
|
|
97
|
+
const dx = x - this.selectedShape.cx;
|
|
98
|
+
const dy = y - this.selectedShape.cy;
|
|
99
|
+
this.selectedShape.r = Math.sqrt(dx * dx + dy * dy);
|
|
100
|
+
break;
|
|
101
|
+
case 'triangle':
|
|
102
|
+
const x2 = x;
|
|
103
|
+
const y2 = y;
|
|
104
|
+
const x3 = this.startX - (x - this.startX);
|
|
105
|
+
const y3 = y;
|
|
106
|
+
this.selectedShape.points = `${this.startX},${this.startY} ${x2},${y2} ${x3},${y3}`;
|
|
107
|
+
break;
|
|
108
|
+
case 'line':
|
|
109
|
+
case 'arrow':
|
|
110
|
+
this.selectedShape.x2 = x;
|
|
111
|
+
this.selectedShape.y2 = y;
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
this.requestUpdate(); // 화면 업데이트
|
|
47
115
|
}
|
|
48
|
-
this.requestUpdate();
|
|
49
116
|
};
|
|
50
|
-
// 마우스 업 이벤트 핸들러 (도형 그리기 종료)
|
|
51
117
|
this.onMouseUp = () => {
|
|
52
118
|
this.drawing = false;
|
|
53
119
|
const svg = this.svg;
|
|
54
120
|
svg.removeEventListener('mousemove', this.onMouseMove);
|
|
55
121
|
svg.removeEventListener('mouseup', this.onMouseUp);
|
|
56
|
-
this.selectedShape
|
|
122
|
+
if (this.selectedShape) {
|
|
123
|
+
this.selectedShape.selected = true;
|
|
124
|
+
}
|
|
57
125
|
this.requestUpdate();
|
|
58
126
|
};
|
|
59
127
|
this.onShapeMouseMove = (event) => {
|
|
@@ -249,76 +317,25 @@ let OxImageMarker = class OxImageMarker extends BaseImageMarker {
|
|
|
249
317
|
}
|
|
250
318
|
}
|
|
251
319
|
startDrawing(event) {
|
|
252
|
-
this.drawing = true;
|
|
253
320
|
const { x, y } = this.getSvgPoint(event);
|
|
254
|
-
|
|
255
|
-
this.
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
x: this.startX,
|
|
272
|
-
y: this.startY,
|
|
273
|
-
width: 0,
|
|
274
|
-
height: 0
|
|
275
|
-
};
|
|
276
|
-
break;
|
|
277
|
-
case 'circle':
|
|
278
|
-
newShape = {
|
|
279
|
-
id: Date.now().toString(),
|
|
280
|
-
type: 'circle',
|
|
281
|
-
cx: this.startX,
|
|
282
|
-
cy: this.startY,
|
|
283
|
-
r: 0
|
|
284
|
-
};
|
|
285
|
-
break;
|
|
286
|
-
case 'triangle':
|
|
287
|
-
newShape = {
|
|
288
|
-
id: Date.now().toString(),
|
|
289
|
-
type: 'triangle',
|
|
290
|
-
x1: this.startX,
|
|
291
|
-
y1: this.startY,
|
|
292
|
-
width: 0,
|
|
293
|
-
height: 0,
|
|
294
|
-
points: `${this.startX},${this.startY} ${this.startX},${this.startY} ${this.startX},${this.startY}`
|
|
295
|
-
};
|
|
296
|
-
break;
|
|
297
|
-
case 'line':
|
|
298
|
-
newShape = {
|
|
299
|
-
id: Date.now().toString(),
|
|
300
|
-
type: 'line',
|
|
301
|
-
x1: this.startX,
|
|
302
|
-
y1: this.startY,
|
|
303
|
-
width: 0,
|
|
304
|
-
height: 0
|
|
305
|
-
};
|
|
306
|
-
break;
|
|
307
|
-
case 'arrow':
|
|
308
|
-
newShape = {
|
|
309
|
-
id: Date.now().toString(),
|
|
310
|
-
type: 'arrow',
|
|
311
|
-
x1: this.startX,
|
|
312
|
-
y1: this.startY,
|
|
313
|
-
width: 0,
|
|
314
|
-
height: 0
|
|
315
|
-
};
|
|
316
|
-
break;
|
|
317
|
-
default:
|
|
318
|
-
return;
|
|
321
|
+
// currentShapeType이 'text'일 경우에만 input을 보여 텍스트 입력을 받음
|
|
322
|
+
if (this.currentShapeType === 'text') {
|
|
323
|
+
const textElement = document.createElementNS('http://www.w3.org/2000/svg', 'text');
|
|
324
|
+
textElement.setAttribute('x', x.toString());
|
|
325
|
+
textElement.setAttribute('y', y.toString());
|
|
326
|
+
textElement.textContent = 'ABC'; /* should not be empty space */
|
|
327
|
+
this.svg.appendChild(textElement);
|
|
328
|
+
// input 요소 생성
|
|
329
|
+
requestAnimationFrame(() => {
|
|
330
|
+
this.showTextInput(textElement, null, { x, y });
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
// 'text'가 아닌 경우 기존 도형 그리기 동작 유지
|
|
335
|
+
this.startX = x;
|
|
336
|
+
this.startY = y;
|
|
337
|
+
this.drawing = true;
|
|
319
338
|
}
|
|
320
|
-
this.selectedShape = newShape;
|
|
321
|
-
this.shapes = [...this.shapes, newShape];
|
|
322
339
|
}
|
|
323
340
|
setMode(mode, shapeType) {
|
|
324
341
|
this.currentMode = mode;
|
|
@@ -337,19 +354,18 @@ let OxImageMarker = class OxImageMarker extends BaseImageMarker {
|
|
|
337
354
|
renderShape(shape) {
|
|
338
355
|
const commonAttrs = {
|
|
339
356
|
stroke: shape.selected ? 'blue' : 'red',
|
|
340
|
-
'stroke-width':
|
|
357
|
+
'stroke-width': 1,
|
|
341
358
|
fill: 'transparent',
|
|
342
359
|
cursor: 'pointer'
|
|
343
360
|
};
|
|
344
361
|
switch (shape.type) {
|
|
345
362
|
case 'text':
|
|
346
363
|
return svg `
|
|
347
|
-
|
|
348
364
|
<text
|
|
349
365
|
x="${shape.x}"
|
|
350
366
|
y="${shape.y}"
|
|
351
367
|
fill="${commonAttrs.stroke}"
|
|
352
|
-
style="cursor: ${commonAttrs.cursor}; font-size: 16px;
|
|
368
|
+
style="cursor: ${commonAttrs.cursor}; font-size: 16px;"
|
|
353
369
|
@mousedown="${(e) => this.onShapeMouseDown(e, shape)}"
|
|
354
370
|
@dblclick="${(e) => this.onTextDoubleClick(e, shape)}"
|
|
355
371
|
>${shape.text}</text>
|
|
@@ -539,33 +555,120 @@ let OxImageMarker = class OxImageMarker extends BaseImageMarker {
|
|
|
539
555
|
}
|
|
540
556
|
onTextDoubleClick(event, shape) {
|
|
541
557
|
event.stopPropagation();
|
|
542
|
-
|
|
558
|
+
const textElement = event.target;
|
|
559
|
+
this.showTextInput(textElement, shape);
|
|
560
|
+
}
|
|
561
|
+
showTextInput(textElement, shape = null, options) {
|
|
562
|
+
// input 요소 생성
|
|
563
|
+
const input = document.createElement('input');
|
|
543
564
|
input.style.position = 'absolute';
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
565
|
+
// SVG 텍스트의 CTM 얻기
|
|
566
|
+
const ctm = textElement.getScreenCTM() || { a: 1, e: 0, d: 1, f: 0 };
|
|
567
|
+
const bbox = textElement.getBBox();
|
|
568
|
+
// 텍스트의 화면 위치 계산
|
|
569
|
+
const screenX = bbox.x * ctm.a + ctm.e;
|
|
570
|
+
const screenY = bbox.y * ctm.d + ctm.f;
|
|
571
|
+
// input 위치 조정 (scale과 transform을 고려한 정확한 좌표로 변환)
|
|
572
|
+
input.style.left = `${screenX}px`;
|
|
573
|
+
input.style.top = `${screenY}px`;
|
|
574
|
+
// 텍스트 폰트 스타일을 가져와 input에 적용
|
|
575
|
+
const computedStyle = window.getComputedStyle(textElement);
|
|
576
|
+
const fontSize = parseFloat(computedStyle.fontSize) * ctm.a;
|
|
577
|
+
const fontFamily = computedStyle.fontFamily;
|
|
578
|
+
const fontWeight = computedStyle.fontWeight;
|
|
579
|
+
const textColor = computedStyle.fill || computedStyle.color;
|
|
580
|
+
const lineHeight = parseFloat(computedStyle.lineHeight) * ctm.d;
|
|
581
|
+
// input 스타일을 텍스트와 일치시킴
|
|
582
|
+
input.style.fontSize = `${fontSize}px`;
|
|
583
|
+
input.style.fontFamily = fontFamily;
|
|
584
|
+
input.style.fontWeight = fontWeight;
|
|
585
|
+
input.style.color = textColor;
|
|
586
|
+
input.style.lineHeight = `${lineHeight}px`;
|
|
587
|
+
input.style.padding = '0';
|
|
588
|
+
input.style.margin = '0';
|
|
589
|
+
input.style.border = 'none';
|
|
590
|
+
input.style.outline = 'none';
|
|
591
|
+
input.style.background = 'transparent';
|
|
592
|
+
if (shape) {
|
|
593
|
+
input.value = shape.text || '';
|
|
594
|
+
}
|
|
595
|
+
// SVG 텍스트 숨김
|
|
596
|
+
textElement.style.visibility = 'hidden';
|
|
597
|
+
// input 요소를 추가하고, 텍스트 길이에 따라 너비 조정
|
|
547
598
|
document.body.appendChild(input);
|
|
548
|
-
|
|
599
|
+
this.adjustInputWidth(input); // 최초 너비 조정
|
|
600
|
+
requestAnimationFrame(() => input.focus());
|
|
601
|
+
// 입력 중에 동적으로 input의 너비 조정
|
|
602
|
+
input.addEventListener('input', () => {
|
|
603
|
+
this.adjustInputWidth(input);
|
|
604
|
+
});
|
|
549
605
|
input.addEventListener('keydown', e => {
|
|
550
606
|
if (e.key === 'Enter') {
|
|
551
|
-
|
|
607
|
+
const textValue = input.value.trim();
|
|
608
|
+
if (textValue) {
|
|
609
|
+
if (shape) {
|
|
610
|
+
shape.text = textValue;
|
|
611
|
+
}
|
|
612
|
+
else {
|
|
613
|
+
const newShape = {
|
|
614
|
+
id: Date.now().toString(),
|
|
615
|
+
type: 'text',
|
|
616
|
+
x: options.x,
|
|
617
|
+
y: options.y,
|
|
618
|
+
text: textValue
|
|
619
|
+
};
|
|
620
|
+
this.shapes = [...this.shapes, newShape];
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
else if (shape) {
|
|
624
|
+
this.shapes = this.shapes.filter(s => s.id !== shape.id);
|
|
625
|
+
}
|
|
552
626
|
document.body.removeChild(input);
|
|
553
|
-
|
|
627
|
+
if (!shape) {
|
|
628
|
+
this.svg.removeChild(textElement);
|
|
629
|
+
}
|
|
630
|
+
else {
|
|
631
|
+
textElement.style.visibility = 'visible';
|
|
632
|
+
}
|
|
554
633
|
this.requestUpdate();
|
|
555
634
|
}
|
|
556
635
|
else if (e.key === 'Escape') {
|
|
557
636
|
document.body.removeChild(input);
|
|
558
|
-
|
|
559
|
-
|
|
637
|
+
if (!shape) {
|
|
638
|
+
this.svg.removeChild(textElement);
|
|
639
|
+
}
|
|
640
|
+
else {
|
|
641
|
+
textElement.style.visibility = 'visible';
|
|
642
|
+
}
|
|
560
643
|
}
|
|
561
644
|
});
|
|
562
645
|
input.addEventListener('blur', () => {
|
|
563
646
|
requestAnimationFrame(() => {
|
|
564
|
-
|
|
565
|
-
|
|
647
|
+
if (!shape) {
|
|
648
|
+
this.svg.removeChild(textElement);
|
|
649
|
+
}
|
|
650
|
+
else {
|
|
651
|
+
textElement.style.visibility = 'visible';
|
|
652
|
+
}
|
|
653
|
+
if (input.parentElement) {
|
|
654
|
+
document.body.removeChild(input);
|
|
655
|
+
}
|
|
566
656
|
});
|
|
567
657
|
});
|
|
568
658
|
}
|
|
659
|
+
// 텍스트 길이에 맞춰 input 박스의 너비를 조정하는 함수 (최소 길이 유지)
|
|
660
|
+
adjustInputWidth(input) {
|
|
661
|
+
const minWidth = 50; // 최소 너비 (픽셀 단위로 설정)
|
|
662
|
+
const textWidth = this.measureTextWidth(input.value || input.placeholder, input);
|
|
663
|
+
input.style.width = `${Math.max(textWidth + 10, minWidth)}px`; // 텍스트 길이 + 여유 공간, 최소 너비 적용
|
|
664
|
+
}
|
|
665
|
+
// 텍스트 길이를 측정하는 함수
|
|
666
|
+
measureTextWidth(text, input) {
|
|
667
|
+
const canvas = document.createElement('canvas');
|
|
668
|
+
const context = canvas.getContext('2d');
|
|
669
|
+
context.font = window.getComputedStyle(input).font;
|
|
670
|
+
return context.measureText(text).width;
|
|
671
|
+
}
|
|
569
672
|
};
|
|
570
673
|
__decorate([
|
|
571
674
|
state()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ox-image-marker.js","sourceRoot":"","sources":["../../src/ox-image-marker.ts"],"names":[],"mappings":";AAAA,OAAO,wBAAwB,CAAA;AAE/B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AAC7C,OAAO,EAAY,KAAK,EAAE,aAAa,EAAS,MAAM,mBAAmB,CAAA;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAG/C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAG9C,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,eAAe;IAA3C;;QAgCY,gBAAW,GAAoB,QAAQ,CAAA;QACvC,kBAAa,GAAiB,IAAI,CAAA;QAE3C,YAAO,GAAG,KAAK,CAAA;QACf,WAAM,GAAG,CAAC,CAAA;QACV,WAAM,GAAG,CAAC,CAAA;QACV,YAAO,GAAG,CAAC,CAAA;QACX,YAAO,GAAG,CAAC,CAAA;QA4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A;gBACzC,KAAK,GAAG,IAAI,CAAA;YACd,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC;;AAtkBgB;IAAhB,KAAK,EAAE;uDAAqC;AAC5B;IAAhB,KAAK,EAAE;kDAAgD;AACvC;IAAhB,KAAK,EAAE;oDAA2C;AAjCxC,aAAa;IADzB,aAAa,CAAC,iBAAiB,CAAC;GACpB,aAAa,CAsmBzB","sourcesContent":["import './ox-image-marker-mode'\n\nimport { html, css, svg, nothing } from 'lit'\nimport { property, state, customElement, query } from 'lit/decorators.js'\nimport { ifDefined } from 'lit/directives/if-defined.js'\nimport { keyed } from 'lit/directives/keyed.js'\n\nimport { ImageMarkerMode, Shape, ShapeType } from './types'\nimport { BaseImageMarker } from './base-image-marker'\n\n@customElement('ox-image-marker')\nexport class OxImageMarker extends BaseImageMarker {\n static styles = [\n ...BaseImageMarker.styles,\n css`\n :host {\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n }\n\n ox-image-marker-mode {\n position: absolute;\n top: 0;\n right: 0;\n }\n\n svg {\n cursor: crosshair;\n }\n\n svg.dragging {\n cursor: move;\n }\n\n .resize-handle {\n cursor: nwse-resize;\n }\n `\n ]\n\n @state() private currentShapeType?: ShapeType\n @state() private currentMode: ImageMarkerMode = 'select'\n @state() private selectedShape: Shape | null = null\n\n private drawing = false\n private startX = 0\n private startY = 0\n private offsetX = 0\n private offsetY = 0\n\n render() {\n return html`\n <div class=\"container\">\n <svg\n @mousedown=${this.onSvgMouseDown}\n @wheel=${this.onWheel}\n @dblclick=${this.onDoubleClick}\n viewBox=${this.viewBox}\n >\n <image href=${this.imageUrl} @load=${this.onImageLoad}></image>\n ${this.shapes.map(shape => keyed(shape.id, this.renderShape(shape)))}\n </svg>\n </div>\n\n <ox-image-marker-mode\n currentMode=${this.currentMode}\n currentShapeType=${ifDefined(this.currentShapeType)}\n @mode-changed=${(e: CustomEvent) => {\n const { mode, shapeType } = e.detail\n this.setMode(mode, shapeType)\n }}\n @clicked-delete=${() => {\n if (this.selectedShape) {\n this.shapes = this.shapes.filter(s => s.id !== this.selectedShape!.id)\n this.requestUpdate()\n }\n }}\n @clicked-save=${() => {\n this.dispatchEvent(\n new CustomEvent('shapes-changed', {\n detail: this.shapes,\n bubbles: true,\n composed: true\n })\n )\n }}\n ></ox-image-marker-mode>\n `\n }\n\n protected onSvgMouseDown(event: MouseEvent) {\n const svg = this.svg\n\n this.selectedShape = null\n this.shapes = this.shapes.map(s => {\n return { ...s, selected: false }\n })\n\n this.selectedShape = null\n if (this.currentMode === 'move') {\n this.isPanning = true\n this.panStart = { x: event.clientX, y: event.clientY }\n svg.classList.add('dragging')\n svg.addEventListener('mousemove', this.onPanMouseMove)\n svg.addEventListener('mouseup', this.onPanMouseUp)\n } else if (this.currentMode === 'select') {\n this.startShapeDragging(event)\n svg.addEventListener('mousemove', this.onShapeMouseMove)\n svg.addEventListener('mouseup', this.onShapeMouseUp)\n } else if (this.currentMode === 'draw') {\n this.startDrawing(event)\n svg.addEventListener('mousemove', this.onMouseMove)\n svg.addEventListener('mouseup', this.onMouseUp)\n }\n }\n\n private startShapeDragging(event: MouseEvent) {\n const { x, y } = this.getSvgPoint(event)\n if (this.selectedShape) {\n this.offsetX = x - (this.selectedShape.x || this.selectedShape.cx || 0)\n this.offsetY = y - (this.selectedShape.y || this.selectedShape.cy || 0)\n }\n }\n\n private startDrawing(event: MouseEvent) {\n this.drawing = true\n const { x, y } = this.getSvgPoint(event)\n this.startX = x\n this.startY = y\n\n let newShape: Shape\n switch (this.currentShapeType) {\n case 'text':\n newShape = {\n id: Date.now().toString(),\n type: 'text',\n x: this.startX,\n y: this.startY,\n text: 'ABC'\n }\n break\n case 'rectangle':\n newShape = {\n id: Date.now().toString(),\n type: 'rectangle',\n x: this.startX,\n y: this.startY,\n width: 0,\n height: 0\n }\n break\n case 'circle':\n newShape = {\n id: Date.now().toString(),\n type: 'circle',\n cx: this.startX,\n cy: this.startY,\n r: 0\n }\n break\n case 'triangle':\n newShape = {\n id: Date.now().toString(),\n type: 'triangle',\n x1: this.startX,\n y1: this.startY,\n width: 0,\n height: 0,\n points: `${this.startX},${this.startY} ${this.startX},${this.startY} ${this.startX},${this.startY}`\n }\n break\n case 'line':\n newShape = {\n id: Date.now().toString(),\n type: 'line',\n x1: this.startX,\n y1: this.startY,\n width: 0,\n height: 0\n }\n break\n case 'arrow':\n newShape = {\n id: Date.now().toString(),\n type: 'arrow',\n x1: this.startX,\n y1: this.startY,\n width: 0,\n height: 0\n }\n break\n default:\n return\n }\n\n this.selectedShape = newShape\n this.shapes = [...this.shapes, newShape]\n }\n\n private setMode(mode: ImageMarkerMode, shapeType: ShapeType) {\n this.currentMode = mode\n this.currentShapeType = shapeType\n }\n\n // 마우스 이동 이벤트 핸들러 (도형 그리기 중)\n private onMouseMove = (event: MouseEvent) => {\n if (!this.drawing || !this.selectedShape) return\n const { x, y } = this.getSvgPoint(event)\n\n switch (this.selectedShape.type) {\n case 'text':\n break\n case 'rectangle':\n this.selectedShape.width = x - this.startX\n this.selectedShape.height = y - this.startY\n break\n case 'circle':\n const dx = x - this.selectedShape.cx!\n const dy = y - this.selectedShape.cy!\n this.selectedShape.r = Math.sqrt(dx * dx + dy * dy)\n break\n case 'triangle':\n const x2 = x\n const y2 = y\n const x3 = this.startX - (x - this.startX)\n const y3 = y\n this.selectedShape.points = `${this.startX},${this.startY} ${x2},${y2} ${x3},${y3}`\n break\n case 'line':\n case 'arrow':\n this.selectedShape.x2 = x\n this.selectedShape.y2 = y\n break\n }\n\n this.requestUpdate()\n }\n\n // 마우스 업 이벤트 핸들러 (도형 그리기 종료)\n private onMouseUp = () => {\n this.drawing = false\n const svg = this.svg as SVGSVGElement\n svg.removeEventListener('mousemove', this.onMouseMove)\n svg.removeEventListener('mouseup', this.onMouseUp)\n\n this.selectedShape!.selected = true\n this.requestUpdate()\n }\n\n // SVG 좌표계로 마우스 좌표 변환\n private getSvgPoint(event: MouseEvent) {\n const svg = this.svg\n const point = svg.createSVGPoint()\n point.x = event.clientX\n point.y = event.clientY\n const ctm = svg.getScreenCTM()!.inverse()\n return point.matrixTransform(ctm)\n }\n\n // 도형 렌더링 함수\n protected renderShape(shape: Shape) {\n const commonAttrs = {\n stroke: shape.selected ? 'blue' : 'red',\n 'stroke-width': shape.selected ? 2 : 1,\n fill: 'transparent',\n cursor: 'pointer'\n }\n\n switch (shape.type) {\n case 'text':\n return svg`\n \n <text\n x=\"${shape.x!}\"\n y=\"${shape.y!}\"\n fill=\"${commonAttrs.stroke}\"\n style=\"cursor: ${commonAttrs.cursor}; font-size: 16px; text-decoration: ${shape.selected ? 'underline' : 'none'};\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n @dblclick=\"${(e: MouseEvent) => this.onTextDoubleClick(e, shape)}\"\n >${shape.text}</text>\n `\n\n case 'rectangle':\n return svg`\n <rect\n x=\"${shape.x!}\"\n y=\"${shape.y!}\"\n width=\"${shape.width!}\"\n height=\"${shape.height!}\"\n stroke=\"${commonAttrs.stroke}\"\n stroke-width=\"${commonAttrs['stroke-width']}\"\n fill=\"${commonAttrs.fill}\"\n style=\"cursor: ${commonAttrs.cursor}\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n ></rect>\n ${shape.selected ? this.renderResizeHandles(shape) : ''}\n `\n\n case 'circle':\n return svg`\n <circle\n cx=\"${shape.cx!}\"\n cy=\"${shape.cy!}\"\n r=\"${shape.r!}\"\n stroke=\"${commonAttrs.stroke}\"\n stroke-width=\"${commonAttrs['stroke-width']}\"\n fill=\"${commonAttrs.fill}\"\n style=\"cursor: ${commonAttrs.cursor}\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n ></circle>\n ${shape.selected ? this.renderResizeHandles(shape) : ''}\n `\n\n case 'triangle':\n return svg`\n <polygon\n points=\"${shape.points!}\"\n stroke=\"${commonAttrs.stroke}\"\n stroke-width=\"${commonAttrs['stroke-width']}\"\n fill=\"${commonAttrs.fill}\"\n style=\"cursor: ${commonAttrs.cursor}\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n ></polygon>\n ${shape.selected ? this.renderResizeHandles(shape) : ''}\n `\n\n case 'line':\n return svg`\n <line\n x1=\"${shape.x1!}\"\n y1=\"${shape.y1!}\"\n x2=\"${shape.x2 ?? shape.x1}\"\n y2=\"${shape.y2 ?? shape.y1}\"\n stroke=\"${commonAttrs.stroke}\"\n stroke-width=\"${commonAttrs['stroke-width']}\"\n style=\"cursor: ${commonAttrs.cursor}\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n ></line>\n ${shape.selected ? this.renderResizeHandles(shape) : ''}\n `\n\n case 'arrow':\n return svg`\n <defs>\n <marker id=\"arrowhead-${shape.id}\" markerWidth=\"10\" markerHeight=\"7\" refX=\"10\" refY=\"3.5\" orient=\"auto\">\n <polygon points=\"0 0, 10 3.5, 0 7\" fill=\"${commonAttrs.stroke}\"></polygon>\n </marker>\n </defs>\n <line\n x1=\"${shape.x1!}\"\n y1=\"${shape.y1!}\"\n x2=\"${shape.x2 ?? shape.x1}\"\n y2=\"${shape.y2 ?? shape.y1}\"\n stroke=\"${commonAttrs.stroke}\"\n stroke-width=\"${commonAttrs['stroke-width']}\"\n marker-end=\"url(#arrowhead-${shape.id})\"\n style=\"cursor: ${commonAttrs.cursor}\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n ></line>\n ${shape.selected ? this.renderResizeHandles(shape) : ''}\n `\n\n default:\n return nothing\n }\n }\n\n private onShapeMouseDown(event: MouseEvent, shape: Shape) {\n event.stopPropagation()\n\n this.shapes = this.shapes.map(s => ({\n ...s,\n selected: s.id === shape.id\n }))\n\n this.selectedShape = this.shapes.find(s => s.id == shape.id)!\n\n // 마우스 클릭 좌표와 도형의 현재 좌표 차이 계산\n const { x, y } = this.getSvgPoint(event)\n\n switch (shape.type) {\n case 'text':\n case 'rectangle':\n case 'circle':\n this.offsetX = x - (shape.x || shape.cx || 0)\n this.offsetY = y - (shape.y || shape.cy || 0)\n break\n\n case 'triangle':\n const points = this.selectedShape.points!.split(' ').map(p => p.split(',').map(Number))\n const [px, py] = points[0] || [0, 0]\n\n this.offsetX = x - px\n this.offsetY = y - py\n\n break\n\n case 'line':\n case 'arrow':\n this.offsetX = x - shape.x1!\n this.offsetY = y - shape.y1!\n break\n }\n\n // 드래그 이벤트 리스너 추가\n const svg = this.svg as SVGSVGElement\n svg.addEventListener('mousemove', this.onShapeMouseMove)\n svg.addEventListener('mouseup', this.onShapeMouseUp)\n }\n\n private onShapeMouseMove = (event: MouseEvent) => {\n if (!this.selectedShape) {\n return\n }\n\n const { x, y } = this.getSvgPoint(event)\n\n // 마우스 이동에 따라 도형의 위치 업데이트\n switch (this.selectedShape.type) {\n case 'text':\n case 'rectangle':\n this.selectedShape.x = x - this.offsetX\n this.selectedShape.y = y - this.offsetY\n break\n case 'circle':\n this.selectedShape.cx = x - this.offsetX\n this.selectedShape.cy = y - this.offsetY\n break\n case 'triangle':\n const points = this.selectedShape.points!.split(' ').map(p => p.split(',').map(Number))\n const [ox, oy] = points[0]\n\n this.selectedShape.points = points\n .map(([px, py]) => [px - ox + x - this.offsetX, py - oy + y - this.offsetY].join(','))\n .join(' ')\n break\n case 'line':\n case 'arrow':\n const dxLine = x - this.offsetX\n const dyLine = y - this.offsetY\n const deltaX = dxLine - this.selectedShape.x1!\n const deltaY = dyLine - this.selectedShape.y1!\n this.selectedShape.x1 = dxLine\n this.selectedShape.y1 = dyLine\n this.selectedShape.x2 = this.selectedShape.x2! + deltaX\n this.selectedShape.y2 = this.selectedShape.y2! + deltaY\n break\n }\n\n this.requestUpdate() // 화면 업데이트\n }\n\n private onShapeMouseUp = () => {\n const svg = this.svg as SVGSVGElement\n svg.removeEventListener('mousemove', this.onShapeMouseMove)\n svg.removeEventListener('mouseup', this.onShapeMouseUp)\n }\n\n private getScale(): number {\n if (!this.svg) {\n return 1\n }\n\n const [vbWidth, vbHeight] = this.viewBox.split(' ').map(Number)\n\n const scaleX = vbWidth / this.svg.clientWidth\n const scaleY = vbHeight / this.svg.clientHeight\n\n return Math.max(scaleX, scaleY)\n }\n\n private renderResizeHandles(shape: Shape) {\n let handles: Array<{ x: number; y: number; cursor: string }> = []\n\n switch (shape.type) {\n case 'text':\n case 'rectangle':\n handles = [\n { x: shape.x!, y: shape.y!, cursor: 'nwse-resize' },\n { x: shape.x! + shape.width!, y: shape.y!, cursor: 'nesw-resize' },\n { x: shape.x!, y: shape.y! + shape.height!, cursor: 'nesw-resize' },\n { x: shape.x! + shape.width!, y: shape.y! + shape.height!, cursor: 'nwse-resize' }\n ]\n break\n case 'circle':\n handles = [\n { x: shape.cx! + shape.r!, y: shape.cy!, cursor: 'ew-resize' },\n { x: shape.cx! - shape.r!, y: shape.cy!, cursor: 'ew-resize' },\n { x: shape.cx!, y: shape.cy! + shape.r!, cursor: 'ns-resize' },\n { x: shape.cx!, y: shape.cy! - shape.r!, cursor: 'ns-resize' }\n ]\n break\n case 'triangle':\n const points = shape.points!.split(' ').map(p => p.split(',').map(Number))\n handles = points.map(([x, y]) => ({ x, y, cursor: 'move' }))\n break\n case 'line':\n case 'arrow':\n handles = [\n { x: shape.x1!, y: shape.y1!, cursor: 'move' },\n { x: shape.x2!, y: shape.y2!, cursor: 'move' }\n ]\n break\n }\n\n return svg`\n ${handles.map(\n handle => svg`\n <g\n class=\"resize-handle-group\"\n style=\"transform: translate(${handle.x}px, ${handle.y}px) scale(${1 / this.zoomLevel});\"\n >\n <rect\n x=\"-5\"\n y=\"-5\"\n width=\"10\"\n height=\"10\"\n fill=\"white\"\n stroke=\"black\"\n class=\"resize-handle\"\n style=\"cursor: ${handle.cursor};\"\n @mousedown=\"${(e: MouseEvent) => this.onHandleMouseDown(e, shape, handle)}\"\n ></rect>\n </g>\n `\n )}\n `\n }\n\n private onHandleMouseDown(event: MouseEvent, shape: Shape, handle: any) {\n event.stopPropagation()\n this.selectedShape = shape\n this.offsetX = handle.x\n this.offsetY = handle.y\n const svg = this.svg as SVGSVGElement\n svg.addEventListener('mousemove', this.onHandleMouseMove)\n svg.addEventListener('mouseup', this.onHandleMouseUp)\n }\n\n private onHandleMouseMove = (event: MouseEvent) => {\n if (!this.selectedShape) return\n const { x, y } = this.getSvgPoint(event)\n\n switch (this.selectedShape.type) {\n case 'text':\n case 'rectangle':\n this.selectedShape.width = Math.abs(x - this.selectedShape.x!)\n this.selectedShape.height = Math.abs(y - this.selectedShape.y!)\n if (x < this.selectedShape.x!) this.selectedShape.x = x\n if (y < this.selectedShape.y!) this.selectedShape.y = y\n break\n case 'circle':\n const dx = x - this.selectedShape.cx!\n const dy = y - this.selectedShape.cy!\n this.selectedShape.r = Math.sqrt(dx * dx + dy * dy)\n break\n case 'triangle':\n const points = this.selectedShape.points!.split(' ').map(p => p.split(',').map(Number))\n const index = points.findIndex(([px, py]) => px === this.offsetX && py === this.offsetY)\n if (index !== -1) {\n points[index] = [x, y]\n this.selectedShape.points = points.map(p => p.join(',')).join(' ')\n this.offsetX = x\n this.offsetY = y\n }\n break\n case 'line':\n case 'arrow':\n if (this.offsetX === this.selectedShape.x1 && this.offsetY === this.selectedShape.y1) {\n this.selectedShape.x1 = x\n this.selectedShape.y1 = y\n } else if (this.offsetX === this.selectedShape.x2 && this.offsetY === this.selectedShape.y2) {\n this.selectedShape.x2 = x\n this.selectedShape.y2 = y\n }\n this.offsetX = x\n this.offsetY = y\n break\n }\n\n this.requestUpdate()\n }\n\n private onHandleMouseUp = () => {\n const svg = this.svg as SVGSVGElement\n svg.removeEventListener('mousemove', this.onHandleMouseMove)\n svg.removeEventListener('mouseup', this.onHandleMouseUp)\n this.selectedShape = null\n }\n\n private onTextDoubleClick(event: MouseEvent, shape: Shape) {\n event.stopPropagation()\n\n var input: HTMLInputElement | null = document.createElement('input')\n input.style.position = 'absolute'\n input.style.left = `${event.clientX}px`\n input.style.top = `${event.clientY}px`\n input.value = shape.text || ''\n document.body.appendChild(input)\n input.focus()\n\n input.addEventListener('keydown', e => {\n if (e.key === 'Enter') {\n shape.text = input!.value\n document.body.removeChild(input!)\n input = null\n\n this.requestUpdate()\n } else if (e.key === 'Escape') {\n document.body.removeChild(input!)\n input = null\n\n this.requestUpdate()\n }\n })\n\n input.addEventListener('blur', () => {\n requestAnimationFrame(() => {\n input && document.body.removeChild(input)\n input = null\n })\n })\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ox-image-marker.js","sourceRoot":"","sources":["../../src/ox-image-marker.ts"],"names":[],"mappings":";AAAA,OAAO,wBAAwB,CAAA;AAE/B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,KAAK,CAAA;AAC7C,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAG/C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAG9C,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,eAAe;IAA3C;;QAgCY,gBAAW,GAAoB,QAAQ,CAAA;QACvC,kBAAa,GAAiB,IAAI,CAAA;QAE3C,YAAO,GAAG,KAAK,CAAA;QACf,WAAM,GAAG,CAAC,CAAA;QACV,WAAM,GAAG,CAAC,CAAA;QACV,YAAO,GAAG,CAAC,CAAA;QACX,YAAO,GAAG,CAAC,CAAA;QA2GnB,4BAA4B;QACpB,gBAAW,GAAG,CAAC,KAAiB,EAAE,EAAE;YAC1C,IAAI,CAAC,IAAI,CAAC,OAAO;gBAAE,OAAM;YAEzB,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAA;YAExC,iCAAiC;YACjC,MAAM,WAAW,GAAG,CAAC,CAAA;YACrB,MAAM,QAA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-marker-mode'\n\nimport { html, css, svg, nothing } from 'lit'\nimport { state, customElement } from 'lit/decorators.js'\nimport { ifDefined } from 'lit/directives/if-defined.js'\nimport { keyed } from 'lit/directives/keyed.js'\n\nimport { ImageMarkerMode, Shape, ShapeType } from './types'\nimport { BaseImageMarker } from './base-image-marker'\n\n@customElement('ox-image-marker')\nexport class OxImageMarker extends BaseImageMarker {\n static styles = [\n ...BaseImageMarker.styles,\n css`\n :host {\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n }\n\n ox-image-marker-mode {\n position: absolute;\n top: 0;\n right: 0;\n }\n\n svg {\n cursor: crosshair;\n }\n\n svg.dragging {\n cursor: move;\n }\n\n .resize-handle {\n cursor: nwse-resize;\n }\n `\n ]\n\n @state() private currentShapeType?: ShapeType\n @state() private currentMode: ImageMarkerMode = 'select'\n @state() private selectedShape: Shape | null = null\n\n private drawing = false\n private startX = 0\n private startY = 0\n private offsetX = 0\n private offsetY = 0\n\n render() {\n return html`\n <div class=\"container\">\n <svg\n @mousedown=${this.onSvgMouseDown}\n @wheel=${this.onWheel}\n @dblclick=${this.onDoubleClick}\n viewBox=${this.viewBox}\n >\n <image href=${this.imageUrl} @load=${this.onImageLoad}></image>\n ${this.shapes.map(shape => keyed(shape.id, this.renderShape(shape)))}\n </svg>\n </div>\n\n <ox-image-marker-mode\n currentMode=${this.currentMode}\n currentShapeType=${ifDefined(this.currentShapeType)}\n @mode-changed=${(e: CustomEvent) => {\n const { mode, shapeType } = e.detail\n this.setMode(mode, shapeType)\n }}\n @clicked-delete=${() => {\n if (this.selectedShape) {\n this.shapes = this.shapes.filter(s => s.id !== this.selectedShape!.id)\n this.requestUpdate()\n }\n }}\n @clicked-save=${() => {\n this.dispatchEvent(\n new CustomEvent('shapes-changed', {\n detail: this.shapes,\n bubbles: true,\n composed: true\n })\n )\n }}\n ></ox-image-marker-mode>\n `\n }\n\n protected onSvgMouseDown(event: MouseEvent) {\n const svg = this.svg\n\n this.selectedShape = null\n this.shapes = this.shapes.map(s => {\n return { ...s, selected: false }\n })\n\n this.selectedShape = null\n if (this.currentMode === 'move') {\n this.isPanning = true\n this.panStart = { x: event.clientX, y: event.clientY }\n svg.classList.add('dragging')\n svg.addEventListener('mousemove', this.onPanMouseMove)\n svg.addEventListener('mouseup', this.onPanMouseUp)\n } else if (this.currentMode === 'select') {\n this.startShapeDragging(event)\n svg.addEventListener('mousemove', this.onShapeMouseMove)\n svg.addEventListener('mouseup', this.onShapeMouseUp)\n } else if (this.currentMode === 'draw') {\n this.startDrawing(event)\n svg.addEventListener('mousemove', this.onMouseMove)\n svg.addEventListener('mouseup', this.onMouseUp)\n }\n }\n\n private startShapeDragging(event: MouseEvent) {\n const { x, y } = this.getSvgPoint(event)\n if (this.selectedShape) {\n this.offsetX = x - (this.selectedShape.x || this.selectedShape.cx || 0)\n this.offsetY = y - (this.selectedShape.y || this.selectedShape.cy || 0)\n }\n }\n\n private startDrawing(event: MouseEvent) {\n const { x, y } = this.getSvgPoint(event)\n\n // currentShapeType이 'text'일 경우에만 input을 보여 텍스트 입력을 받음\n if (this.currentShapeType === 'text') {\n const textElement = document.createElementNS('http://www.w3.org/2000/svg', 'text')\n\n textElement.setAttribute('x', x.toString())\n textElement.setAttribute('y', y.toString())\n textElement.textContent = 'ABC' /* should not be empty space */\n\n this.svg.appendChild(textElement)\n\n // input 요소 생성\n requestAnimationFrame(() => {\n this.showTextInput(textElement, null, { x, y })\n })\n } else {\n // 'text'가 아닌 경우 기존 도형 그리기 동작 유지\n this.startX = x\n this.startY = y\n\n this.drawing = true\n }\n }\n\n private setMode(mode: ImageMarkerMode, shapeType: ShapeType) {\n this.currentMode = mode\n this.currentShapeType = shapeType\n }\n\n // 마우스 이동 이벤트 핸들러 (도형 그리기 중)\n private onMouseMove = (event: MouseEvent) => {\n if (!this.drawing) return\n\n const { x, y } = this.getSvgPoint(event)\n\n // 최소 거리 확인 (예: 5px 이상이어야 도형을 생성)\n const minDistance = 5\n const distance = Math.sqrt(Math.pow(x - this.startX, 2) + Math.pow(y - this.startY, 2))\n\n if (!this.selectedShape && distance >= minDistance) {\n // 거리가 충분할 때만 새로운 도형을 생성\n let newShape: Shape\n\n switch (this.currentShapeType) {\n case 'rectangle':\n newShape = {\n id: Date.now().toString(),\n type: 'rectangle',\n x: this.startX,\n y: this.startY,\n width: 0,\n height: 0\n }\n break\n case 'circle':\n newShape = {\n id: Date.now().toString(),\n type: 'circle',\n cx: this.startX,\n cy: this.startY,\n r: 0\n }\n break\n case 'triangle':\n newShape = {\n id: Date.now().toString(),\n type: 'triangle',\n x1: this.startX,\n y1: this.startY,\n width: 0,\n height: 0,\n points: `${this.startX},${this.startY} ${this.startX},${this.startY} ${this.startX},${this.startY}`\n }\n break\n case 'line':\n newShape = {\n id: Date.now().toString(),\n type: 'line',\n x1: this.startX,\n y1: this.startY,\n width: 0,\n height: 0\n }\n break\n case 'arrow':\n newShape = {\n id: Date.now().toString(),\n type: 'arrow',\n x1: this.startX,\n y1: this.startY,\n width: 0,\n height: 0\n }\n break\n default:\n return\n }\n\n this.selectedShape = newShape\n this.shapes = [...this.shapes, newShape] // 새로운 도형 추가\n }\n\n if (this.selectedShape) {\n // 선택된 도형의 크기를 업데이트\n switch (this.selectedShape.type) {\n case 'rectangle':\n // x, y를 업데이트하여 음의 방향으로 드래그할 때도 사각형이 올바르게 그려지도록 함\n this.selectedShape.x = Math.min(x, this.startX)\n this.selectedShape.y = Math.min(y, this.startY)\n this.selectedShape.width = Math.abs(x - this.startX)\n this.selectedShape.height = Math.abs(y - this.startY)\n break\n case 'circle':\n const dx = x - this.selectedShape.cx!\n const dy = y - this.selectedShape.cy!\n this.selectedShape.r = Math.sqrt(dx * dx + dy * dy)\n break\n case 'triangle':\n const x2 = x\n const y2 = y\n const x3 = this.startX - (x - this.startX)\n const y3 = y\n this.selectedShape.points = `${this.startX},${this.startY} ${x2},${y2} ${x3},${y3}`\n break\n case 'line':\n case 'arrow':\n this.selectedShape.x2 = x\n this.selectedShape.y2 = y\n break\n }\n\n this.requestUpdate() // 화면 업데이트\n }\n }\n\n private onMouseUp = () => {\n this.drawing = false\n const svg = this.svg as SVGSVGElement\n svg.removeEventListener('mousemove', this.onMouseMove)\n svg.removeEventListener('mouseup', this.onMouseUp)\n\n if (this.selectedShape) {\n this.selectedShape.selected = true\n }\n\n this.requestUpdate()\n }\n\n // SVG 좌표계로 마우스 좌표 변환\n private getSvgPoint(event: MouseEvent) {\n const svg = this.svg\n const point = svg.createSVGPoint()\n point.x = event.clientX\n point.y = event.clientY\n const ctm = svg.getScreenCTM()!.inverse()\n return point.matrixTransform(ctm)\n }\n\n // 도형 렌더링 함수\n protected renderShape(shape: Shape) {\n const commonAttrs = {\n stroke: shape.selected ? 'blue' : 'red',\n 'stroke-width': 1,\n fill: 'transparent',\n cursor: 'pointer'\n }\n\n switch (shape.type) {\n case 'text':\n return svg`\n <text\n x=\"${shape.x!}\"\n y=\"${shape.y!}\"\n fill=\"${commonAttrs.stroke}\"\n style=\"cursor: ${commonAttrs.cursor}; font-size: 16px;\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n @dblclick=\"${(e: MouseEvent) => this.onTextDoubleClick(e, shape)}\"\n >${shape.text}</text>\n `\n\n case 'rectangle':\n return svg`\n <rect\n x=\"${shape.x!}\"\n y=\"${shape.y!}\"\n width=\"${shape.width!}\"\n height=\"${shape.height!}\"\n stroke=\"${commonAttrs.stroke}\"\n stroke-width=\"${commonAttrs['stroke-width']}\"\n fill=\"${commonAttrs.fill}\"\n style=\"cursor: ${commonAttrs.cursor}\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n ></rect>\n ${shape.selected ? this.renderResizeHandles(shape) : ''}\n `\n\n case 'circle':\n return svg`\n <circle\n cx=\"${shape.cx!}\"\n cy=\"${shape.cy!}\"\n r=\"${shape.r!}\"\n stroke=\"${commonAttrs.stroke}\"\n stroke-width=\"${commonAttrs['stroke-width']}\"\n fill=\"${commonAttrs.fill}\"\n style=\"cursor: ${commonAttrs.cursor}\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n ></circle>\n ${shape.selected ? this.renderResizeHandles(shape) : ''}\n `\n\n case 'triangle':\n return svg`\n <polygon\n points=\"${shape.points!}\"\n stroke=\"${commonAttrs.stroke}\"\n stroke-width=\"${commonAttrs['stroke-width']}\"\n fill=\"${commonAttrs.fill}\"\n style=\"cursor: ${commonAttrs.cursor}\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n ></polygon>\n ${shape.selected ? this.renderResizeHandles(shape) : ''}\n `\n\n case 'line':\n return svg`\n <line\n x1=\"${shape.x1!}\"\n y1=\"${shape.y1!}\"\n x2=\"${shape.x2 ?? shape.x1}\"\n y2=\"${shape.y2 ?? shape.y1}\"\n stroke=\"${commonAttrs.stroke}\"\n stroke-width=\"${commonAttrs['stroke-width']}\"\n style=\"cursor: ${commonAttrs.cursor}\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n ></line>\n ${shape.selected ? this.renderResizeHandles(shape) : ''}\n `\n\n case 'arrow':\n return svg`\n <defs>\n <marker id=\"arrowhead-${shape.id}\" markerWidth=\"10\" markerHeight=\"7\" refX=\"10\" refY=\"3.5\" orient=\"auto\">\n <polygon points=\"0 0, 10 3.5, 0 7\" fill=\"${commonAttrs.stroke}\"></polygon>\n </marker>\n </defs>\n <line\n x1=\"${shape.x1!}\"\n y1=\"${shape.y1!}\"\n x2=\"${shape.x2 ?? shape.x1}\"\n y2=\"${shape.y2 ?? shape.y1}\"\n stroke=\"${commonAttrs.stroke}\"\n stroke-width=\"${commonAttrs['stroke-width']}\"\n marker-end=\"url(#arrowhead-${shape.id})\"\n style=\"cursor: ${commonAttrs.cursor}\"\n @mousedown=\"${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}\"\n ></line>\n ${shape.selected ? this.renderResizeHandles(shape) : ''}\n `\n\n default:\n return nothing\n }\n }\n\n private onShapeMouseDown(event: MouseEvent, shape: Shape) {\n event.stopPropagation()\n\n this.shapes = this.shapes.map(s => ({\n ...s,\n selected: s.id === shape.id\n }))\n\n this.selectedShape = this.shapes.find(s => s.id == shape.id)!\n\n // 마우스 클릭 좌표와 도형의 현재 좌표 차이 계산\n const { x, y } = this.getSvgPoint(event)\n\n switch (shape.type) {\n case 'text':\n case 'rectangle':\n case 'circle':\n this.offsetX = x - (shape.x || shape.cx || 0)\n this.offsetY = y - (shape.y || shape.cy || 0)\n break\n\n case 'triangle':\n const points = this.selectedShape.points!.split(' ').map(p => p.split(',').map(Number))\n const [px, py] = points[0] || [0, 0]\n\n this.offsetX = x - px\n this.offsetY = y - py\n\n break\n\n case 'line':\n case 'arrow':\n this.offsetX = x - shape.x1!\n this.offsetY = y - shape.y1!\n break\n }\n\n // 드래그 이벤트 리스너 추가\n const svg = this.svg as SVGSVGElement\n svg.addEventListener('mousemove', this.onShapeMouseMove)\n svg.addEventListener('mouseup', this.onShapeMouseUp)\n }\n\n private onShapeMouseMove = (event: MouseEvent) => {\n if (!this.selectedShape) {\n return\n }\n\n const { x, y } = this.getSvgPoint(event)\n\n // 마우스 이동에 따라 도형의 위치 업데이트\n switch (this.selectedShape.type) {\n case 'text':\n case 'rectangle':\n this.selectedShape.x = x - this.offsetX\n this.selectedShape.y = y - this.offsetY\n break\n case 'circle':\n this.selectedShape.cx = x - this.offsetX\n this.selectedShape.cy = y - this.offsetY\n break\n case 'triangle':\n const points = this.selectedShape.points!.split(' ').map(p => p.split(',').map(Number))\n const [ox, oy] = points[0]\n\n this.selectedShape.points = points\n .map(([px, py]) => [px - ox + x - this.offsetX, py - oy + y - this.offsetY].join(','))\n .join(' ')\n break\n case 'line':\n case 'arrow':\n const dxLine = x - this.offsetX\n const dyLine = y - this.offsetY\n const deltaX = dxLine - this.selectedShape.x1!\n const deltaY = dyLine - this.selectedShape.y1!\n this.selectedShape.x1 = dxLine\n this.selectedShape.y1 = dyLine\n this.selectedShape.x2 = this.selectedShape.x2! + deltaX\n this.selectedShape.y2 = this.selectedShape.y2! + deltaY\n break\n }\n\n this.requestUpdate() // 화면 업데이트\n }\n\n private onShapeMouseUp = () => {\n const svg = this.svg as SVGSVGElement\n svg.removeEventListener('mousemove', this.onShapeMouseMove)\n svg.removeEventListener('mouseup', this.onShapeMouseUp)\n }\n\n private getScale(): number {\n if (!this.svg) {\n return 1\n }\n\n const [vbWidth, vbHeight] = this.viewBox.split(' ').map(Number)\n\n const scaleX = vbWidth / this.svg.clientWidth\n const scaleY = vbHeight / this.svg.clientHeight\n\n return Math.max(scaleX, scaleY)\n }\n\n private renderResizeHandles(shape: Shape) {\n let handles: Array<{ x: number; y: number; cursor: string }> = []\n\n switch (shape.type) {\n case 'text':\n case 'rectangle':\n handles = [\n { x: shape.x!, y: shape.y!, cursor: 'nwse-resize' },\n { x: shape.x! + shape.width!, y: shape.y!, cursor: 'nesw-resize' },\n { x: shape.x!, y: shape.y! + shape.height!, cursor: 'nesw-resize' },\n { x: shape.x! + shape.width!, y: shape.y! + shape.height!, cursor: 'nwse-resize' }\n ]\n break\n case 'circle':\n handles = [\n { x: shape.cx! + shape.r!, y: shape.cy!, cursor: 'ew-resize' },\n { x: shape.cx! - shape.r!, y: shape.cy!, cursor: 'ew-resize' },\n { x: shape.cx!, y: shape.cy! + shape.r!, cursor: 'ns-resize' },\n { x: shape.cx!, y: shape.cy! - shape.r!, cursor: 'ns-resize' }\n ]\n break\n case 'triangle':\n const points = shape.points!.split(' ').map(p => p.split(',').map(Number))\n handles = points.map(([x, y]) => ({ x, y, cursor: 'move' }))\n break\n case 'line':\n case 'arrow':\n handles = [\n { x: shape.x1!, y: shape.y1!, cursor: 'move' },\n { x: shape.x2!, y: shape.y2!, cursor: 'move' }\n ]\n break\n }\n\n return svg`\n ${handles.map(\n handle => svg`\n <g\n class=\"resize-handle-group\"\n style=\"transform: translate(${handle.x}px, ${handle.y}px) scale(${1 / this.zoomLevel});\"\n >\n <rect\n x=\"-5\"\n y=\"-5\"\n width=\"10\"\n height=\"10\"\n fill=\"white\"\n stroke=\"black\"\n class=\"resize-handle\"\n style=\"cursor: ${handle.cursor};\"\n @mousedown=\"${(e: MouseEvent) => this.onHandleMouseDown(e, shape, handle)}\"\n ></rect>\n </g>\n `\n )}\n `\n }\n\n private onHandleMouseDown(event: MouseEvent, shape: Shape, handle: any) {\n event.stopPropagation()\n this.selectedShape = shape\n this.offsetX = handle.x\n this.offsetY = handle.y\n const svg = this.svg as SVGSVGElement\n svg.addEventListener('mousemove', this.onHandleMouseMove)\n svg.addEventListener('mouseup', this.onHandleMouseUp)\n }\n\n private onHandleMouseMove = (event: MouseEvent) => {\n if (!this.selectedShape) return\n const { x, y } = this.getSvgPoint(event)\n\n switch (this.selectedShape.type) {\n case 'text':\n case 'rectangle':\n this.selectedShape.width = Math.abs(x - this.selectedShape.x!)\n this.selectedShape.height = Math.abs(y - this.selectedShape.y!)\n if (x < this.selectedShape.x!) this.selectedShape.x = x\n if (y < this.selectedShape.y!) this.selectedShape.y = y\n break\n case 'circle':\n const dx = x - this.selectedShape.cx!\n const dy = y - this.selectedShape.cy!\n this.selectedShape.r = Math.sqrt(dx * dx + dy * dy)\n break\n case 'triangle':\n const points = this.selectedShape.points!.split(' ').map(p => p.split(',').map(Number))\n const index = points.findIndex(([px, py]) => px === this.offsetX && py === this.offsetY)\n if (index !== -1) {\n points[index] = [x, y]\n this.selectedShape.points = points.map(p => p.join(',')).join(' ')\n this.offsetX = x\n this.offsetY = y\n }\n break\n case 'line':\n case 'arrow':\n if (this.offsetX === this.selectedShape.x1 && this.offsetY === this.selectedShape.y1) {\n this.selectedShape.x1 = x\n this.selectedShape.y1 = y\n } else if (this.offsetX === this.selectedShape.x2 && this.offsetY === this.selectedShape.y2) {\n this.selectedShape.x2 = x\n this.selectedShape.y2 = y\n }\n this.offsetX = x\n this.offsetY = y\n break\n }\n\n this.requestUpdate()\n }\n\n private onHandleMouseUp = () => {\n const svg = this.svg as SVGSVGElement\n svg.removeEventListener('mousemove', this.onHandleMouseMove)\n svg.removeEventListener('mouseup', this.onHandleMouseUp)\n this.selectedShape = null\n }\n\n private onTextDoubleClick(event: MouseEvent, shape: Shape) {\n event.stopPropagation()\n\n const textElement = event.target as SVGTextElement\n\n this.showTextInput(textElement, shape)\n }\n\n private showTextInput(textElement: SVGTextElement, shape: Shape | null = null, options?: { x: number; y: number }) {\n // input 요소 생성\n const input: HTMLInputElement = document.createElement('input')\n input.style.position = 'absolute'\n\n // SVG 텍스트의 CTM 얻기\n const ctm = textElement.getScreenCTM() || { a: 1, e: 0, d: 1, f: 0 }\n const bbox = textElement.getBBox()\n\n // 텍스트의 화면 위치 계산\n const screenX = bbox.x * ctm.a + ctm.e\n const screenY = bbox.y * ctm.d + ctm.f\n\n // input 위치 조정 (scale과 transform을 고려한 정확한 좌표로 변환)\n input.style.left = `${screenX}px`\n input.style.top = `${screenY}px`\n\n // 텍스트 폰트 스타일을 가져와 input에 적용\n const computedStyle = window.getComputedStyle(textElement)\n const fontSize = parseFloat(computedStyle.fontSize) * ctm.a\n const fontFamily = computedStyle.fontFamily\n const fontWeight = computedStyle.fontWeight\n const textColor = computedStyle.fill || computedStyle.color\n const lineHeight = parseFloat(computedStyle.lineHeight) * ctm.d\n\n // input 스타일을 텍스트와 일치시킴\n input.style.fontSize = `${fontSize}px`\n input.style.fontFamily = fontFamily\n input.style.fontWeight = fontWeight\n input.style.color = textColor\n input.style.lineHeight = `${lineHeight}px`\n input.style.padding = '0'\n input.style.margin = '0'\n input.style.border = 'none'\n input.style.outline = 'none'\n input.style.background = 'transparent'\n\n if (shape) {\n input.value = shape.text || ''\n }\n\n // SVG 텍스트 숨김\n textElement.style.visibility = 'hidden'\n\n // input 요소를 추가하고, 텍스트 길이에 따라 너비 조정\n document.body.appendChild(input)\n this.adjustInputWidth(input) // 최초 너비 조정\n requestAnimationFrame(() => input.focus())\n\n // 입력 중에 동적으로 input의 너비 조정\n input.addEventListener('input', () => {\n this.adjustInputWidth(input)\n })\n\n input.addEventListener('keydown', e => {\n if (e.key === 'Enter') {\n const textValue = input.value.trim()\n\n if (textValue) {\n if (shape) {\n shape.text = textValue\n } else {\n const newShape: Shape = {\n id: Date.now().toString(),\n type: 'text',\n x: options!.x,\n y: options!.y,\n text: textValue\n }\n\n this.shapes = [...this.shapes, newShape]\n }\n } else if (shape) {\n this.shapes = this.shapes.filter(s => s.id !== shape.id)\n }\n\n document.body.removeChild(input)\n\n if (!shape) {\n this.svg.removeChild(textElement)\n } else {\n textElement.style.visibility = 'visible'\n }\n\n this.requestUpdate()\n } else if (e.key === 'Escape') {\n document.body.removeChild(input)\n\n if (!shape) {\n this.svg.removeChild(textElement)\n } else {\n textElement.style.visibility = 'visible'\n }\n }\n })\n\n input.addEventListener('blur', () => {\n requestAnimationFrame(() => {\n if (!shape) {\n this.svg.removeChild(textElement)\n } else {\n textElement.style.visibility = 'visible'\n }\n\n if (input.parentElement) {\n document.body.removeChild(input)\n }\n })\n })\n }\n\n // 텍스트 길이에 맞춰 input 박스의 너비를 조정하는 함수 (최소 길이 유지)\n private adjustInputWidth(input: HTMLInputElement) {\n const minWidth = 50 // 최소 너비 (픽셀 단위로 설정)\n const textWidth = this.measureTextWidth(input.value || input.placeholder, input)\n input.style.width = `${Math.max(textWidth + 10, minWidth)}px` // 텍스트 길이 + 여유 공간, 최소 너비 적용\n }\n\n // 텍스트 길이를 측정하는 함수\n private measureTextWidth(text: string, input: HTMLInputElement): number {\n const canvas = document.createElement('canvas')\n const context = canvas.getContext('2d')!\n context.font = window.getComputedStyle(input).font\n\n return context.measureText(text).width\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/@lit/reactive-element/css-tag.d.ts","../../../node_modules/@lit/reactive-element/reactive-controller.d.ts","../../../node_modules/@lit/reactive-element/reactive-element.d.ts","../../../node_modules/lit-html/directive.d.ts","../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../node_modules/lit-html/lit-html.d.ts","../../../node_modules/lit-element/lit-element.d.ts","../../../node_modules/lit-html/is-server.d.ts","../../../node_modules/lit/index.d.ts","../../../node_modules/@lit/reactive-element/decorators/base.d.ts","../../../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../../../node_modules/@lit/reactive-element/decorators/property.d.ts","../../../node_modules/@lit/reactive-element/decorators/state.d.ts","../../../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../../../node_modules/@lit/reactive-element/decorators/query.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts","../../../node_modules/lit/decorators.d.ts","../src/types.ts","../src/base-image-marker.ts","../src/index.ts","../../../node_modules/@material/web/icon/internal/icon.d.ts","../../../node_modules/@material/web/icon/icon.d.ts","../src/ox-image-marker-mode.ts","../src/ox-image-marker-view.ts","../../../node_modules/lit-html/directives/if-defined.d.ts","../../../node_modules/lit/directives/if-defined.d.ts","../../../node_modules/lit-html/directives/keyed.d.ts","../../../node_modules/lit/directives/keyed.d.ts","../src/ox-image-marker.ts","../stories/ox-image-marker-mode.stories.ts","../../../node_modules/@material/web/typography/md-typescale-styles.d.ts","../stories/ox-image-marker-view.stories.ts","../stories/ox-image-marker.stories.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/mocha/index.d.ts"],"fileIdsList":[[57],[50,57],[50,57,65],[59],[48,49],[56,71],[53,56],[56],[84],[125],[126,131,161],[127,132,138,139,146,158,169],[127,128,138,146],[129,170],[130,131,139,147],[131,158,166],[132,134,138,146],[125,133],[134,135],[138],[136,138],[125,138],[138,139,140,158,169],[138,139,140,153,158,161],[123,174],[123,134,138,141,146,158,169],[138,139,141,142,146,158,166,169],[141,143,158,166,169],[84,85,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176],[138,144],[145,169,174],[134,138,146,158],[147],[148],[125,149],[84,85,125,126,127,128,129,130,131,132,133,134,135,136,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175],[151],[152],[138,153,154],[153,155,170,172],[126,138,158,159,160,161],[126,158,160],[158,159],[161],[162],[84,158],[138,164,165],[164,165],[131,146,158,166],[167],[146,168],[126,141,152,169],[131,170],[158,171],[145,172],[173],[126,131,138,140,149,158,169,172,174],[158,175],[50,53],[53],[51],[51,52],[58,59,60,61,62,63,64,65,66],[75],[77],[50,53,54,55],[95,99,169],[95,158,169],[90],[92,95,166,169],[146,166],[177],[90,177],[92,95,146,169],[87,88,91,94,126,138,158,169],[95,102],[87,93],[95,116,117],[91,95,126,161,169,177],[126,177],[116,126,177],[89,90,177],[95],[89,90,91,92,93,94,95,96,97,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,117,118,119,120,121,122],[95,110],[95,102,103],[93,95,103,104],[94],[87,90,95],[95,99,103,104],[99],[93,95,98,169],[87,92,95,102],[126,158],[90,95,116,126,174,177],[47,56,67,68],[47,56,67,68,72],[47,56,67,69],[47,56,67,68,69,73,76,78],[47],[47,56,73],[47,56,68,74,81],[47,56,68,79,81]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"4a882ffbb4ed09d9b7734f784aebb1dfe488d63725c40759165c5d9c657ca029","impliedFormat":1},{"version":"e056bb30bf82271634daeee81f772f4a7960085f01f6d4d09c8da1ebe5f6a623","impliedFormat":99},{"version":"5e30131b6a5587fe666926ad1d9807e733c0a597ed12d682669fcaa331aea576","impliedFormat":99},{"version":"86492a546c3308feaf1dde967afd325c321483b5e96f5fa9e9b6e691dc23fa9e","affectsGlobalScope":true,"impliedFormat":99},{"version":"00cb63103f9670f8094c238a4a7e252c8b4c06ba371fea5c44add7e41b7247e4","impliedFormat":99},{"version":"15fe687c59d62741b4494d5e623d497d55eb38966ecf5bea7f36e48fc3fbe15e","impliedFormat":1},{"version":"43f58358870effc43ba93c92c040dee2285cbd8685ddfa77658e498780727c4e","impliedFormat":99},{"version":"9a318e3a8900672b85cd3c8c3a5acf51b88049557a3ae897ccdcf2b85a8f61f9","impliedFormat":99},{"version":"1bcd560deed90a43c51b08aa18f7f55229f2e30974ab5ed1b7bb5721be379013","impliedFormat":99},{"version":"dc08fe04e50bc24d1baded4f33e942222bbdd5d77d6341a93cfe6e4e4586a3be","impliedFormat":99},{"version":"cdeae34aca6700620ebf3f27cf7d439c3af97595dd6e2729fa4780483add5680","impliedFormat":99},{"version":"3ff87ea3471b51beaf4aa8fd8f4422862b11d343fdbb55bf383e0f8cc195a445","impliedFormat":99},{"version":"1cc188904259bd0985b24d9dc2a160891cb5e94210901466b951716fcdb4ff62","impliedFormat":99},{"version":"732fb71ecb695d6f36ddcbb72ebfe4ff6b6491d45101a00fa2b75a26b80d640f","impliedFormat":99},{"version":"039cb05125d7621f8143616c495b8e6b54249c4e64d2754b80ff93867f7f4b01","impliedFormat":99},{"version":"1b81f1fa82ad30af01ab1cae91ccaddc10c48f5916bbd6d282155e44a65d858d","impliedFormat":99},{"version":"a0fc7a02a75802678a67000607f20266cf1a49dc0e787967efe514e31b9ed0c3","impliedFormat":99},{"version":"5ebf098a1d81d400b8af82807cf19893700335cf91a7b9dbd83a5d737af34b11","impliedFormat":99},{"version":"101cf83ac3f9c5e1a7355a02e4fbe988877ef83c4ebec0ff0f02b2af022254a3","impliedFormat":99},{"version":"d017e2fcd44b46ca80cd2b592a6314e75f5caab5bda230f0f4a45e964049a43a","impliedFormat":99},{"version":"a8992b852521a66f63e0cedc6e1f054b28f972232b6fa5ca59771db6a1c8bbea","impliedFormat":99},{"version":"47cc13f0feb0d0931b9b42229a3c5147d36038a382bcbfbf72b3282e0197a655","signature":"2c475d42b11e72b3a75598ecb080c38ca52d9a7b22856156bd5cfc24798cf43e"},{"version":"8a7b87512334008198572732ef0d3f16e0ac974eec15395cbb793fb92099af16","signature":"39e4e316fc64131ee1fb4616906cf3de761023bed946d37afeba8d3e5cb77eb1"},"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",{"version":"5565deadc1d553f9f1ef370351432c258d2a6f1a5ca47e574e5430db824468c7","impliedFormat":99},{"version":"4ae1ed87c59518f4e0918a21409ec3020e97037a386b57953c6b9fed9cad6949","affectsGlobalScope":true,"impliedFormat":99},{"version":"f5ce3e4aaba08cc41b895f9a2024c4dfe8aa649e6749d404022bc4c42d9363a5","signature":"64897d5cb30ce5cb4ef18e746a644380b1519fc9b43257664118a7daa5d95c13"},{"version":"ab7656d426172a81f835a1b5a292c149ed8b9a160a55b8d05bc4f463efd77059","signature":"29216d9e7268df54be2ecd2dcff29dc7fe5a71db1a4b4b05390817a96e9acc55"},{"version":"74fe889b1d2bba4b2893d518ba94e2b20dabe6d19d0c2f9554d9a5d3755710f4","impliedFormat":99},{"version":"2ae64cd7b6e760496069ee3b496c64700c956a0620740e1ef52b163824859db7","impliedFormat":99},{"version":"5a30f5ba1701cbb29cb2ff3aca0064a8b0b8b4398d30caad7a0c5ace9636854e","impliedFormat":99},{"version":"493adaad90bc2d6bb6c16b81667033b4fcfeb10fe274a279bc60c8210eec8bb4","impliedFormat":99},{"version":"3fdabfb5201fbe6ff96f1d0e33d691d67fa0722a42eb55f9392f7e0c64561af9","signature":"b15b0e2a88590f80b89e46789227d33321308cd24ccc3eeeab310d5f14f3bda0"},{"version":"d6f5d75216a12f94b61148c8784accf5856cb62557bf6445ae2fff6d3bb73fee","signature":"4317de8c369b9526888fd8d2f48ebe02aeba6e3ffbc9f1c6ec45f5fcb8525b6a"},{"version":"d6c0b824e25ca3bdd752c8baa81a8c5c2da034ffaa54ad60fb5cb2bea6e2bcec","impliedFormat":99},{"version":"568f157239d1cff47f6e915bc5d16db36f8d41de7e7b3050118a0a3c09d6348f","signature":"f483b712b050fd6978abfa55a86a7775d06a207ff981c89a355a328b3adf39f5"},{"version":"e26e0b7f3b82b3dd8ae83eb95f2bb7fb2e431d58c9b83f0c03ddde2470ff1a7b","signature":"315820be791ff3642ebddda623bec233e1d163e764f15d78921d7a150eaab18a"},{"version":"e142fda89ed689ea53d6f2c93693898464c7d29a0ae71c6dc8cdfe5a1d76c775","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","impliedFormat":1},{"version":"93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"964f307d249df0d7e8eb16d594536c0ac6cc63c8d467edf635d05542821dec8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"db3ec8993b7596a4ef47f309c7b25ee2505b519c13050424d9c34701e5973315","impliedFormat":1},{"version":"6a1ebd564896d530364f67b3257c62555b61d60494a73dfe8893274878c6589d","affectsGlobalScope":true,"impliedFormat":1},{"version":"af49b066a76ce26673fe49d1885cc6b44153f1071ed2d952f2a90fccba1095c9","impliedFormat":1},{"version":"f22fd1dc2df53eaf5ce0ff9e0a3326fc66f880d6a652210d50563ae72625455f","impliedFormat":1},{"version":"3ddbdb519e87a7827c4f0c4007013f3628ca0ebb9e2b018cf31e5b2f61c593f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"6d498d4fd8036ea02a4edcae10375854a0eb1df0496cf0b9d692577d3c0fd603","affectsGlobalScope":true,"impliedFormat":1},{"version":"24642567d3729bcc545bacb65ee7c0db423400c7f1ef757cab25d05650064f98","impliedFormat":1},{"version":"fd09b892597ab93e7f79745ce725a3aaf6dd005e8db20f0c63a5d10984cba328","impliedFormat":1},{"version":"a3be878ff1e1964ab2dc8e0a3b67087cf838731c7f3d8f603337e7b712fdd558","impliedFormat":1},{"version":"5433f7f77cd1fd53f45bd82445a4e437b2f6a72a32070e907530a4fea56c30c8","impliedFormat":1},{"version":"9be74296ee565af0c12d7071541fdd23260f53c3da7731fb6361f61150a791f6","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"f501a53b94ba382d9ba396a5c486969a3abc68309828fa67f916035f5d37fe2b","affectsGlobalScope":true,"impliedFormat":1},{"version":"aa658b5d765f630c312ac9202d110bbaf2b82d180376457f0a9d57b42629714a","impliedFormat":1},{"version":"312ac7cbd070107766a9886fd27f9faad997ef57d93fdfb4095df2c618ac8162","impliedFormat":1},{"version":"2e9b4e7f9942af902eb85bae6066d04ef1afee51d61554a62d144df3da7dec94","impliedFormat":1},{"version":"672ad3045f329e94002256f8ed460cfd06173a50c92cde41edaadfacffd16808","impliedFormat":1},{"version":"64da4965d1e0559e134d9c1621ae400279a216f87ed00c4cce4f2c7c78021712","impliedFormat":1},{"version":"2205527b976f4f1844adc46a3f0528729fb68cac70027a5fb13c49ca23593797","impliedFormat":1},{"version":"0166fce1204d520fdfd6b5febb3cda3deee438bcbf8ce9ffeb2b1bcde7155346","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8b13eab85b532285031b06a971fa051bf0175d8fff68065a24a6da9c1c986cf","impliedFormat":1},{"version":"50c382ba1827988c59aa9cc9d046e386d55d70f762e9e352e95ee8cb7337cdb8","impliedFormat":1},{"version":"bb9627ab9d078c79bb5623de4ac8e5d08f806ec9b970962dfc83b3211373690d","impliedFormat":1},{"version":"21d7e87f271e72d02f8d167edc902f90b04525edc7918f00f01dd0bd00599f7e","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f6abdaf8764ef01a552a958f45e795b5e79153b87ddad3af5264b86d2681b72","affectsGlobalScope":true,"impliedFormat":1},{"version":"a215554477f7629e3dcbc8cde104bec036b78673650272f5ffdc5a2cee399a0a","impliedFormat":1},{"version":"c3497fc242aabfedcd430b5932412f94f157b5906568e737f6a18cc77b36a954","impliedFormat":1},{"version":"cdc1de3b672f9ef03ff15c443aa1b631edca35b6ae6970a7da6400647ff74d95","impliedFormat":1},{"version":"139ad1dc93a503da85b7a0d5f615bddbae61ad796bc68fedd049150db67a1e26","impliedFormat":1},{"version":"bf01fdd3b93cf633b3f7420718457af19c57ab8cbfea49268df60bae2e84d627","impliedFormat":1},{"version":"15c5e91b5f08be34a78e3d976179bf5b7a9cc28dc0ef1ffebffeb3c7812a2dca","impliedFormat":1},{"version":"5f461d6f5d9ff474f1121cc3fd86aa3cd67476c701f55c306d323c5112201207","impliedFormat":1},{"version":"65b39cc6b610a4a4aecc321f6efb436f10c0509d686124795b4c36a5e915b89e","impliedFormat":1},{"version":"269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"83fe38aa2243059ea859325c006da3964ead69b773429fe049ebb0426e75424d","affectsGlobalScope":true,"impliedFormat":1},{"version":"d3edb86744e2c19f2c1503849ac7594a5e06024f2451bacae032390f2e20314a","impliedFormat":1},{"version":"e501cbca25bd54f0bcb89c00f092d3cae227e970b93fd76207287fd8110b123d","affectsGlobalScope":true,"impliedFormat":1},{"version":"8a3e61347b8f80aa5af532094498bceb0c0b257b25a6aa8ab4880fd6ed57c95a","affectsGlobalScope":true,"impliedFormat":1},{"version":"98e00f3613402504bc2a2c9a621800ab48e0a463d1eed062208a4ae98ad8f84c","impliedFormat":1},{"version":"950f6810f7c80e0cffefcf1bcc6ade3485c94394720e334c3c2be3c16b6922fb","impliedFormat":1},{"version":"5475df7cfc493a08483c9d7aa61cc04791aecba9d0a2efc213f23c4006d4d3cd","impliedFormat":1},{"version":"000720870b275764c65e9f28ac97cc9e4d9e4a36942d4750ca8603e416e9c57c","impliedFormat":1},{"version":"54412c70bacb9ed547ed6caae8836f712a83ccf58d94466f3387447ec4e82dc3","affectsGlobalScope":true,"impliedFormat":1},{"version":"8701e60428b700ed0206c805d702cfb2a7b4b0b76423439451d1018fa70610e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"4c48e931a72f6971b5add7fdb1136be1d617f124594e94595f7114af749395e0","impliedFormat":1},{"version":"478eb5c32250678a906d91e0529c70243fc4d75477a08f3da408e2615396f558","impliedFormat":1},{"version":"e686a88c9ee004c8ba12ffc9d674ca3192a4c50ed0ca6bd5b2825c289e2b2bfe","impliedFormat":1},{"version":"0d27932df2fbc3728e78b98892540e24084424ce12d3bd32f62a23cf307f411f","affectsGlobalScope":true,"impliedFormat":1},{"version":"4423fb3d6abe6eefb8d7f79eb2df9510824a216ec1c6feee46718c9b18e6d89f","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"01c47d1c006b3a15b51d89d7764fff7e4fabc4e412b3a61ee5357bd74b822879","impliedFormat":1},{"version":"c67a7b7eec0175ea53343429d32897fcad406c663ba4b775eab8be8164bff91c","affectsGlobalScope":true,"impliedFormat":1}],"root":[[68,70],73,74,79,80,82,83],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":true,"strict":true,"target":99,"useDefineForClassFields":false},"referencedMap":[[58,1],[61,2],[59,2],[63,2],[66,3],[65,2],[64,2],[62,2],[60,4],[50,5],[72,6],[71,7],[81,8],[84,9],[85,9],[125,10],[126,11],[127,12],[128,13],[129,14],[130,15],[131,16],[132,17],[133,18],[134,19],[135,19],[137,20],[136,21],[138,22],[139,23],[140,24],[124,25],[141,26],[142,27],[143,28],[177,29],[144,30],[145,31],[146,32],[147,33],[148,34],[149,35],[150,36],[151,37],[152,38],[153,39],[154,39],[155,40],[158,41],[160,42],[159,43],[161,44],[162,45],[163,46],[164,47],[165,48],[166,49],[167,50],[168,51],[169,52],[170,53],[171,54],[172,55],[173,56],[174,57],[175,58],[54,59],[51,60],[75,60],[77,61],[53,62],[67,63],[76,64],[78,65],[56,66],[102,67],[112,68],[101,67],[122,69],[93,70],[92,71],[121,72],[115,73],[120,74],[95,75],[109,76],[94,77],[118,78],[90,79],[89,80],[119,81],[91,82],[96,83],[100,83],[123,84],[113,85],[104,86],[105,87],[107,88],[103,89],[106,90],[116,72],[98,91],[99,92],[108,93],[88,94],[111,85],[110,83],[117,95],[69,96],[73,97],[74,98],[79,99],[68,100],[80,101],[82,102],[83,103]],"version":"5.6.2"}
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/tslib/tslib.d.ts","../../../node_modules/@lit/reactive-element/css-tag.d.ts","../../../node_modules/@lit/reactive-element/reactive-controller.d.ts","../../../node_modules/@lit/reactive-element/reactive-element.d.ts","../../../node_modules/lit-html/directive.d.ts","../../../node_modules/@types/trusted-types/lib/index.d.ts","../../../node_modules/lit-html/lit-html.d.ts","../../../node_modules/lit-element/lit-element.d.ts","../../../node_modules/lit-html/is-server.d.ts","../../../node_modules/lit/index.d.ts","../../../node_modules/@lit/reactive-element/decorators/base.d.ts","../../../node_modules/@lit/reactive-element/decorators/custom-element.d.ts","../../../node_modules/@lit/reactive-element/decorators/property.d.ts","../../../node_modules/@lit/reactive-element/decorators/state.d.ts","../../../node_modules/@lit/reactive-element/decorators/event-options.d.ts","../../../node_modules/@lit/reactive-element/decorators/query.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-all.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-async.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-nodes.d.ts","../../../node_modules/@lit/reactive-element/decorators/query-assigned-elements.d.ts","../../../node_modules/lit/decorators.d.ts","../src/types.ts","../src/base-image-marker.ts","../src/index.ts","../../../node_modules/@material/web/icon/internal/icon.d.ts","../../../node_modules/@material/web/icon/icon.d.ts","../src/ox-image-marker-mode.ts","../src/ox-image-marker-view.ts","../../../node_modules/lit-html/directives/if-defined.d.ts","../../../node_modules/lit/directives/if-defined.d.ts","../../../node_modules/lit-html/directives/keyed.d.ts","../../../node_modules/lit/directives/keyed.d.ts","../src/ox-image-marker.ts","../stories/ox-image-marker-mode.stories.ts","../../../node_modules/@material/web/typography/md-typescale-styles.d.ts","../stories/ox-image-marker-view.stories.ts","../stories/ox-image-marker.stories.ts","../../../node_modules/@types/node/ts5.6/globals.typedarray.d.ts","../../../node_modules/@types/node/ts5.6/buffer.buffer.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/ts5.6/index.d.ts","../../../node_modules/@types/mocha/index.d.ts"],"fileIdsList":[[85,128],[57,85,128],[50,57,85,128],[50,57,65,85,128],[59,85,128],[48,49,85,128],[56,71,85,128],[53,56,85,128],[56,85,128],[85,86,128],[85,127,128],[85,128,133,163],[85,128,129,134,140,141,148,160,171],[85,128,129,130,140,148],[85,128,131,172],[85,128,132,133,141,149],[85,128,133,160,168],[85,128,134,136,140,148],[85,127,128,135],[85,128,136,137],[85,128,140],[85,128,138,140],[85,127,128,140],[85,128,140,141,142,160,171],[85,128,140,141,142,155,160,163],[85,125,128,176],[85,125,128,136,140,143,148,160,171],[85,128,140,141,143,144,148,160,168,171],[85,128,143,145,160,168,171],[85,128,140,146],[85,128,147,171,176],[85,128,136,140,148,160],[85,128,149],[85,128,150],[85,127,128,151],[85,86,87,127,128,129,130,131,132,133,134,135,136,137,138,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177],[85,128,153],[85,128,154],[85,128,140,155,156],[85,128,155,157,172,174],[85,128,140,160,161,162,163],[85,128,160,162],[85,128,160,161],[85,128,163],[85,128,164],[85,86,128,160],[85,128,140,166,167],[85,128,166,167],[85,128,133,148,160,168],[85,128,169],[128],[84,85,86,87,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178],[85,128,148,170],[85,128,143,154,171],[85,128,133,172],[85,128,160,173],[85,128,147,174],[85,128,175],[85,128,133,140,142,151,160,171,174,176],[85,128,160,177],[50,53,85,128],[53,85,128],[51,85,128],[51,52,85,128],[58,59,60,61,62,63,64,65,66,85,128],[75,85,128],[77,85,128],[50,53,54,55,85,128],[85,97,101,128,171],[85,97,128,160,171],[85,92,128],[85,94,97,128,168,171],[85,128,148,168],[85,128,179],[85,92,128,179],[85,94,97,128,148,171],[85,89,90,93,96,128,140,160,171],[85,97,104,128],[85,89,95,128],[85,97,118,119,128],[85,93,97,128,163,171,179],[85,118,128,179],[85,91,92,128,179],[85,97,128],[85,91,92,93,94,95,96,97,98,99,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,119,120,121,122,123,124,128],[85,97,112,128],[85,97,104,105,128],[85,95,97,105,106,128],[85,96,128],[85,89,92,97,128],[85,97,101,105,106,128],[85,101,128],[85,95,97,100,128,171],[85,89,94,97,104,128],[85,128,160],[85,92,97,118,128,176,179],[47,56,67,68,85,128],[47,56,67,68,72,85,128],[47,56,67,69,85,128],[47,56,67,68,69,73,76,78,85,128],[47,85,128],[47,56,73,85,128],[47,56,68,74,81,85,128],[47,56,68,79,81,85,128]],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"9e8ca8ed051c2697578c023d9c29d6df689a083561feba5c14aedee895853999","affectsGlobalScope":true,"impliedFormat":1},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"45d8ccb3dfd57355eb29749919142d4321a0aa4df6acdfc54e30433d7176600a","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true,"impliedFormat":1},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true,"impliedFormat":1},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1a94697425a99354df73d9c8291e2ecd4dddd370aed4023c2d6dee6cccb32666","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3f9fc0ec0b96a9e642f11eda09c0be83a61c7b336977f8b9fdb1e9788e925fe","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"4a882ffbb4ed09d9b7734f784aebb1dfe488d63725c40759165c5d9c657ca029","impliedFormat":1},{"version":"e056bb30bf82271634daeee81f772f4a7960085f01f6d4d09c8da1ebe5f6a623","impliedFormat":99},{"version":"5e30131b6a5587fe666926ad1d9807e733c0a597ed12d682669fcaa331aea576","impliedFormat":99},{"version":"86492a546c3308feaf1dde967afd325c321483b5e96f5fa9e9b6e691dc23fa9e","affectsGlobalScope":true,"impliedFormat":99},{"version":"00cb63103f9670f8094c238a4a7e252c8b4c06ba371fea5c44add7e41b7247e4","impliedFormat":99},{"version":"15fe687c59d62741b4494d5e623d497d55eb38966ecf5bea7f36e48fc3fbe15e","impliedFormat":1},{"version":"43f58358870effc43ba93c92c040dee2285cbd8685ddfa77658e498780727c4e","impliedFormat":99},{"version":"9a318e3a8900672b85cd3c8c3a5acf51b88049557a3ae897ccdcf2b85a8f61f9","impliedFormat":99},{"version":"1bcd560deed90a43c51b08aa18f7f55229f2e30974ab5ed1b7bb5721be379013","impliedFormat":99},{"version":"dc08fe04e50bc24d1baded4f33e942222bbdd5d77d6341a93cfe6e4e4586a3be","impliedFormat":99},{"version":"cdeae34aca6700620ebf3f27cf7d439c3af97595dd6e2729fa4780483add5680","impliedFormat":99},{"version":"3ff87ea3471b51beaf4aa8fd8f4422862b11d343fdbb55bf383e0f8cc195a445","impliedFormat":99},{"version":"1cc188904259bd0985b24d9dc2a160891cb5e94210901466b951716fcdb4ff62","impliedFormat":99},{"version":"732fb71ecb695d6f36ddcbb72ebfe4ff6b6491d45101a00fa2b75a26b80d640f","impliedFormat":99},{"version":"039cb05125d7621f8143616c495b8e6b54249c4e64d2754b80ff93867f7f4b01","impliedFormat":99},{"version":"1b81f1fa82ad30af01ab1cae91ccaddc10c48f5916bbd6d282155e44a65d858d","impliedFormat":99},{"version":"a0fc7a02a75802678a67000607f20266cf1a49dc0e787967efe514e31b9ed0c3","impliedFormat":99},{"version":"5ebf098a1d81d400b8af82807cf19893700335cf91a7b9dbd83a5d737af34b11","impliedFormat":99},{"version":"101cf83ac3f9c5e1a7355a02e4fbe988877ef83c4ebec0ff0f02b2af022254a3","impliedFormat":99},{"version":"d017e2fcd44b46ca80cd2b592a6314e75f5caab5bda230f0f4a45e964049a43a","impliedFormat":99},{"version":"a8992b852521a66f63e0cedc6e1f054b28f972232b6fa5ca59771db6a1c8bbea","impliedFormat":99},{"version":"47cc13f0feb0d0931b9b42229a3c5147d36038a382bcbfbf72b3282e0197a655","signature":"2c475d42b11e72b3a75598ecb080c38ca52d9a7b22856156bd5cfc24798cf43e"},{"version":"8a7b87512334008198572732ef0d3f16e0ac974eec15395cbb793fb92099af16","signature":"39e4e316fc64131ee1fb4616906cf3de761023bed946d37afeba8d3e5cb77eb1"},"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",{"version":"5565deadc1d553f9f1ef370351432c258d2a6f1a5ca47e574e5430db824468c7","impliedFormat":99},{"version":"4ae1ed87c59518f4e0918a21409ec3020e97037a386b57953c6b9fed9cad6949","affectsGlobalScope":true,"impliedFormat":99},{"version":"f5ce3e4aaba08cc41b895f9a2024c4dfe8aa649e6749d404022bc4c42d9363a5","signature":"64897d5cb30ce5cb4ef18e746a644380b1519fc9b43257664118a7daa5d95c13"},{"version":"ab7656d426172a81f835a1b5a292c149ed8b9a160a55b8d05bc4f463efd77059","signature":"29216d9e7268df54be2ecd2dcff29dc7fe5a71db1a4b4b05390817a96e9acc55"},{"version":"74fe889b1d2bba4b2893d518ba94e2b20dabe6d19d0c2f9554d9a5d3755710f4","impliedFormat":99},{"version":"2ae64cd7b6e760496069ee3b496c64700c956a0620740e1ef52b163824859db7","impliedFormat":99},{"version":"5a30f5ba1701cbb29cb2ff3aca0064a8b0b8b4398d30caad7a0c5ace9636854e","impliedFormat":99},{"version":"493adaad90bc2d6bb6c16b81667033b4fcfeb10fe274a279bc60c8210eec8bb4","impliedFormat":99},{"version":"30db4854d44c04bc98a2ebbeba7fa72d1bb034a55b998ffc3c3184205db9ad41","signature":"67f82476e856c49edcd729eb2968b607d95f1b98a0613312c4920cdca45b0973"},{"version":"d6f5d75216a12f94b61148c8784accf5856cb62557bf6445ae2fff6d3bb73fee","signature":"4317de8c369b9526888fd8d2f48ebe02aeba6e3ffbc9f1c6ec45f5fcb8525b6a"},{"version":"d6c0b824e25ca3bdd752c8baa81a8c5c2da034ffaa54ad60fb5cb2bea6e2bcec","impliedFormat":99},{"version":"568f157239d1cff47f6e915bc5d16db36f8d41de7e7b3050118a0a3c09d6348f","signature":"f483b712b050fd6978abfa55a86a7775d06a207ff981c89a355a328b3adf39f5"},{"version":"e26e0b7f3b82b3dd8ae83eb95f2bb7fb2e431d58c9b83f0c03ddde2470ff1a7b","signature":"315820be791ff3642ebddda623bec233e1d163e764f15d78921d7a150eaab18a"},{"version":"613b21ccdf3be6329d56e6caa13b258c842edf8377be7bc9f014ed14cdcfc308","affectsGlobalScope":true,"impliedFormat":1},{"version":"2d1319e6b5d0efd8c5eae07eb864a00102151e8b9afddd2d45db52e9aae002c4","affectsGlobalScope":true,"impliedFormat":1},{"version":"f6114eb1e8f70ec08816bdaa6ec740a0a7a01f25743e36f655f00157be394374","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"4d2b0eb911816f66abe4970898f97a2cfc902bcd743cbfa5017fad79f7ef90d8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","impliedFormat":1},{"version":"24b8685c62562f5d98615c5a0c1d05f297cf5065f15246edfe99e81ec4c0e011","impliedFormat":1},{"version":"93507c745e8f29090efb99399c3f77bec07db17acd75634249dc92f961573387","impliedFormat":1},{"version":"339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"bb2cd9339d0201e7e78ccb6ff2f71aac103934bf35eaaa37e139ac2b68af0db8","affectsGlobalScope":true,"impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"46e07db372dd75edc1a26e68f16d1b7ffb34b7ab3db5cdb3e391a3604ad7bb7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"24642567d3729bcc545bacb65ee7c0db423400c7f1ef757cab25d05650064f98","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"f501a53b94ba382d9ba396a5c486969a3abc68309828fa67f916035f5d37fe2b","affectsGlobalScope":true,"impliedFormat":1},{"version":"c956ba45704d4a97f7a96923a307a6203bc0e7c4c532930d4c8ca261eaaff32a","impliedFormat":1},{"version":"ab0e88d33ccf15d8b3c891038b5a16094b0dd7e860ab0e2ba08da4384afce02b","impliedFormat":1},{"version":"954580f86c8e2a4abd5dcd1bcdf1a4c7e012495f1c39e058dc738bc93024642a","impliedFormat":1},{"version":"fa56be9b96f747e93b895d8dc2aa4fb9f0816743e6e2abb9d60705e88d4743a2","impliedFormat":1},{"version":"8257c55ff6bff6169142a35fce6811b511d857b4ae4f522cdb6ce20fd2116b2c","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"3a9e5dddbd6ca9507d0c06a557535ba2224a94a2b0f3e146e8215f93b7e5b3a8","affectsGlobalScope":true,"impliedFormat":1},{"version":"d8b56de03a9f79f3fc1ac3a01a0d63bb48cc15f95a6b95549b4fb420e6030973","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"3c36ab47df4668254ccc170fc42e7d5116fd86a7e408d8dc220e559837cd2bbb","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f6abdaf8764ef01a552a958f45e795b5e79153b87ddad3af5264b86d2681b72","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"c86b9afa9b39b12db8e877d23b48888d80f26e1fe72a95f58552746a6e1fa4fe","impliedFormat":1},{"version":"e432b0e3761ca9ba734bdd41e19a75fec1454ca8e9769bfdf8b31011854cf06a","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"15c5e91b5f08be34a78e3d976179bf5b7a9cc28dc0ef1ffebffeb3c7812a2dca","impliedFormat":1},{"version":"a8f06c2382a30b7cb89ad2dfc48fc3b2b490f3dafcd839dadc008e4e5d57031d","impliedFormat":1},{"version":"07b9d3b7204d931acc29269c98ac3aac87ebcba6e05141552d42a4c17f895aa4","impliedFormat":1},{"version":"269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"1425f76ac97ce8617d1e2fa79e9a14e0fd1cfdaa155e13d4e92403a468177bc2","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"cca97c55398b8699fa3a96ef261b01d200ed2a44d2983586ab1a81d7d7b23cd9","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"f59493f68eade5200559e5016b5855f7d12e6381eb6cab9ad8a379af367b3b2d","impliedFormat":1},{"version":"125e3472965f529de239d2bc85b54579fed8e0b060d1d04de6576fb910a6ec7f","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"18f5c7c4ad71748cffdd42e829398acdfd2d150a887e5f07aae4f2acab68e71b","affectsGlobalScope":true,"impliedFormat":1},{"version":"72ed3074450a4a315063278f046637afdeea90aa72b2292a7976958ceafc344a","affectsGlobalScope":true,"impliedFormat":1},{"version":"a5c09990a37469b0311a92ce8feeb8682e83918723aedbd445bd7a0f510eaaa3","impliedFormat":1},{"version":"6b29aea17044029b257e5bd4e3e4f765cd72b8d3c11c753f363ab92cc3f9f947","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"d008cf1330c86b37a8128265c80795397c287cecff273bc3ce3a4883405f5112","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true,"impliedFormat":1},{"version":"f2b6058d3dd78c1b4dafc97083c5d44bdfbf4155194044bd17b8fcca554e766a","impliedFormat":1},{"version":"c67a7b7eec0175ea53343429d32897fcad406c663ba4b775eab8be8164bff91c","affectsGlobalScope":true,"impliedFormat":1}],"root":[[68,70],73,74,79,80,82,83],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./","rootDir":"..","skipLibCheck":true,"sourceMap":true,"strict":true,"target":99,"useDefineForClassFields":false},"referencedMap":[[48,1],[57,1],[58,2],[61,3],[59,3],[63,3],[66,4],[65,3],[64,3],[62,3],[60,5],[49,1],[50,6],[72,7],[71,8],[81,9],[180,1],[86,10],[87,10],[127,11],[128,12],[129,13],[130,14],[131,15],[132,16],[133,17],[134,18],[135,19],[136,20],[137,20],[139,21],[138,22],[140,23],[141,24],[142,25],[126,26],[178,1],[143,27],[144,28],[145,29],[146,30],[147,31],[148,32],[149,33],[150,34],[151,35],[152,36],[153,37],[154,38],[155,39],[156,39],[157,40],[158,1],[159,1],[160,41],[162,42],[161,43],[163,44],[164,45],[165,46],[166,47],[167,48],[168,49],[169,50],[85,51],[84,1],[179,52],[170,53],[171,54],[172,55],[173,56],[174,57],[175,58],[176,59],[177,60],[52,1],[88,1],[54,61],[51,62],[75,62],[77,63],[55,1],[53,64],[67,65],[76,66],[78,67],[56,68],[47,1],[45,1],[46,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[19,1],[4,1],[20,1],[24,1],[21,1],[22,1],[23,1],[25,1],[26,1],[27,1],[5,1],[28,1],[29,1],[30,1],[31,1],[6,1],[35,1],[32,1],[33,1],[34,1],[36,1],[7,1],[37,1],[42,1],[43,1],[38,1],[39,1],[40,1],[41,1],[1,1],[44,1],[104,69],[114,70],[103,69],[124,71],[95,72],[94,73],[123,74],[117,75],[122,76],[97,77],[111,78],[96,79],[120,80],[92,81],[91,74],[121,82],[93,83],[98,84],[99,1],[102,84],[89,1],[125,85],[115,86],[106,87],[107,88],[109,89],[105,90],[108,91],[118,74],[100,92],[101,93],[110,94],[90,95],[113,86],[112,84],[116,1],[119,96],[69,97],[70,1],[73,98],[74,99],[79,100],[68,101],[80,102],[82,103],[83,104]],"version":"5.6.2"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/image-marker",
|
|
3
3
|
"description": "Webcomponents for image-marker chart following open-wc recommendations",
|
|
4
4
|
"author": "heartyoh@hatiolab.com",
|
|
5
|
-
"version": "8.0.0-alpha.
|
|
5
|
+
"version": "8.0.0-alpha.17",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
7
7
|
"module": "dist/src/index.js",
|
|
8
8
|
"license": "MIT",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"prettier --write"
|
|
94
94
|
]
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "e28abe8bcd7160baf43ec6f90f670397a19f75dc"
|
|
97
97
|
}
|
package/src/ox-image-marker.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './ox-image-marker-mode'
|
|
2
2
|
|
|
3
3
|
import { html, css, svg, nothing } from 'lit'
|
|
4
|
-
import {
|
|
4
|
+
import { state, customElement } from 'lit/decorators.js'
|
|
5
5
|
import { ifDefined } from 'lit/directives/if-defined.js'
|
|
6
6
|
import { keyed } from 'lit/directives/keyed.js'
|
|
7
7
|
|
|
@@ -125,78 +125,29 @@ export class OxImageMarker extends BaseImageMarker {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
private startDrawing(event: MouseEvent) {
|
|
128
|
-
this.drawing = true
|
|
129
128
|
const { x, y } = this.getSvgPoint(event)
|
|
130
|
-
this.startX = x
|
|
131
|
-
this.startY = y
|
|
132
129
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
y: this.startY,
|
|
141
|
-
text: 'ABC'
|
|
142
|
-
}
|
|
143
|
-
break
|
|
144
|
-
case 'rectangle':
|
|
145
|
-
newShape = {
|
|
146
|
-
id: Date.now().toString(),
|
|
147
|
-
type: 'rectangle',
|
|
148
|
-
x: this.startX,
|
|
149
|
-
y: this.startY,
|
|
150
|
-
width: 0,
|
|
151
|
-
height: 0
|
|
152
|
-
}
|
|
153
|
-
break
|
|
154
|
-
case 'circle':
|
|
155
|
-
newShape = {
|
|
156
|
-
id: Date.now().toString(),
|
|
157
|
-
type: 'circle',
|
|
158
|
-
cx: this.startX,
|
|
159
|
-
cy: this.startY,
|
|
160
|
-
r: 0
|
|
161
|
-
}
|
|
162
|
-
break
|
|
163
|
-
case 'triangle':
|
|
164
|
-
newShape = {
|
|
165
|
-
id: Date.now().toString(),
|
|
166
|
-
type: 'triangle',
|
|
167
|
-
x1: this.startX,
|
|
168
|
-
y1: this.startY,
|
|
169
|
-
width: 0,
|
|
170
|
-
height: 0,
|
|
171
|
-
points: `${this.startX},${this.startY} ${this.startX},${this.startY} ${this.startX},${this.startY}`
|
|
172
|
-
}
|
|
173
|
-
break
|
|
174
|
-
case 'line':
|
|
175
|
-
newShape = {
|
|
176
|
-
id: Date.now().toString(),
|
|
177
|
-
type: 'line',
|
|
178
|
-
x1: this.startX,
|
|
179
|
-
y1: this.startY,
|
|
180
|
-
width: 0,
|
|
181
|
-
height: 0
|
|
182
|
-
}
|
|
183
|
-
break
|
|
184
|
-
case 'arrow':
|
|
185
|
-
newShape = {
|
|
186
|
-
id: Date.now().toString(),
|
|
187
|
-
type: 'arrow',
|
|
188
|
-
x1: this.startX,
|
|
189
|
-
y1: this.startY,
|
|
190
|
-
width: 0,
|
|
191
|
-
height: 0
|
|
192
|
-
}
|
|
193
|
-
break
|
|
194
|
-
default:
|
|
195
|
-
return
|
|
196
|
-
}
|
|
130
|
+
// currentShapeType이 'text'일 경우에만 input을 보여 텍스트 입력을 받음
|
|
131
|
+
if (this.currentShapeType === 'text') {
|
|
132
|
+
const textElement = document.createElementNS('http://www.w3.org/2000/svg', 'text')
|
|
133
|
+
|
|
134
|
+
textElement.setAttribute('x', x.toString())
|
|
135
|
+
textElement.setAttribute('y', y.toString())
|
|
136
|
+
textElement.textContent = 'ABC' /* should not be empty space */
|
|
197
137
|
|
|
198
|
-
|
|
199
|
-
|
|
138
|
+
this.svg.appendChild(textElement)
|
|
139
|
+
|
|
140
|
+
// input 요소 생성
|
|
141
|
+
requestAnimationFrame(() => {
|
|
142
|
+
this.showTextInput(textElement, null, { x, y })
|
|
143
|
+
})
|
|
144
|
+
} else {
|
|
145
|
+
// 'text'가 아닌 경우 기존 도형 그리기 동작 유지
|
|
146
|
+
this.startX = x
|
|
147
|
+
this.startY = y
|
|
148
|
+
|
|
149
|
+
this.drawing = true
|
|
150
|
+
}
|
|
200
151
|
}
|
|
201
152
|
|
|
202
153
|
private setMode(mode: ImageMarkerMode, shapeType: ShapeType) {
|
|
@@ -206,46 +157,120 @@ export class OxImageMarker extends BaseImageMarker {
|
|
|
206
157
|
|
|
207
158
|
// 마우스 이동 이벤트 핸들러 (도형 그리기 중)
|
|
208
159
|
private onMouseMove = (event: MouseEvent) => {
|
|
209
|
-
if (!this.drawing
|
|
160
|
+
if (!this.drawing) return
|
|
161
|
+
|
|
210
162
|
const { x, y } = this.getSvgPoint(event)
|
|
211
163
|
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
164
|
+
// 최소 거리 확인 (예: 5px 이상이어야 도형을 생성)
|
|
165
|
+
const minDistance = 5
|
|
166
|
+
const distance = Math.sqrt(Math.pow(x - this.startX, 2) + Math.pow(y - this.startY, 2))
|
|
167
|
+
|
|
168
|
+
if (!this.selectedShape && distance >= minDistance) {
|
|
169
|
+
// 거리가 충분할 때만 새로운 도형을 생성
|
|
170
|
+
let newShape: Shape
|
|
171
|
+
|
|
172
|
+
switch (this.currentShapeType) {
|
|
173
|
+
case 'rectangle':
|
|
174
|
+
newShape = {
|
|
175
|
+
id: Date.now().toString(),
|
|
176
|
+
type: 'rectangle',
|
|
177
|
+
x: this.startX,
|
|
178
|
+
y: this.startY,
|
|
179
|
+
width: 0,
|
|
180
|
+
height: 0
|
|
181
|
+
}
|
|
182
|
+
break
|
|
183
|
+
case 'circle':
|
|
184
|
+
newShape = {
|
|
185
|
+
id: Date.now().toString(),
|
|
186
|
+
type: 'circle',
|
|
187
|
+
cx: this.startX,
|
|
188
|
+
cy: this.startY,
|
|
189
|
+
r: 0
|
|
190
|
+
}
|
|
191
|
+
break
|
|
192
|
+
case 'triangle':
|
|
193
|
+
newShape = {
|
|
194
|
+
id: Date.now().toString(),
|
|
195
|
+
type: 'triangle',
|
|
196
|
+
x1: this.startX,
|
|
197
|
+
y1: this.startY,
|
|
198
|
+
width: 0,
|
|
199
|
+
height: 0,
|
|
200
|
+
points: `${this.startX},${this.startY} ${this.startX},${this.startY} ${this.startX},${this.startY}`
|
|
201
|
+
}
|
|
202
|
+
break
|
|
203
|
+
case 'line':
|
|
204
|
+
newShape = {
|
|
205
|
+
id: Date.now().toString(),
|
|
206
|
+
type: 'line',
|
|
207
|
+
x1: this.startX,
|
|
208
|
+
y1: this.startY,
|
|
209
|
+
width: 0,
|
|
210
|
+
height: 0
|
|
211
|
+
}
|
|
212
|
+
break
|
|
213
|
+
case 'arrow':
|
|
214
|
+
newShape = {
|
|
215
|
+
id: Date.now().toString(),
|
|
216
|
+
type: 'arrow',
|
|
217
|
+
x1: this.startX,
|
|
218
|
+
y1: this.startY,
|
|
219
|
+
width: 0,
|
|
220
|
+
height: 0
|
|
221
|
+
}
|
|
222
|
+
break
|
|
223
|
+
default:
|
|
224
|
+
return
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
this.selectedShape = newShape
|
|
228
|
+
this.shapes = [...this.shapes, newShape] // 새로운 도형 추가
|
|
236
229
|
}
|
|
237
230
|
|
|
238
|
-
this.
|
|
231
|
+
if (this.selectedShape) {
|
|
232
|
+
// 선택된 도형의 크기를 업데이트
|
|
233
|
+
switch (this.selectedShape.type) {
|
|
234
|
+
case 'rectangle':
|
|
235
|
+
// x, y를 업데이트하여 음의 방향으로 드래그할 때도 사각형이 올바르게 그려지도록 함
|
|
236
|
+
this.selectedShape.x = Math.min(x, this.startX)
|
|
237
|
+
this.selectedShape.y = Math.min(y, this.startY)
|
|
238
|
+
this.selectedShape.width = Math.abs(x - this.startX)
|
|
239
|
+
this.selectedShape.height = Math.abs(y - this.startY)
|
|
240
|
+
break
|
|
241
|
+
case 'circle':
|
|
242
|
+
const dx = x - this.selectedShape.cx!
|
|
243
|
+
const dy = y - this.selectedShape.cy!
|
|
244
|
+
this.selectedShape.r = Math.sqrt(dx * dx + dy * dy)
|
|
245
|
+
break
|
|
246
|
+
case 'triangle':
|
|
247
|
+
const x2 = x
|
|
248
|
+
const y2 = y
|
|
249
|
+
const x3 = this.startX - (x - this.startX)
|
|
250
|
+
const y3 = y
|
|
251
|
+
this.selectedShape.points = `${this.startX},${this.startY} ${x2},${y2} ${x3},${y3}`
|
|
252
|
+
break
|
|
253
|
+
case 'line':
|
|
254
|
+
case 'arrow':
|
|
255
|
+
this.selectedShape.x2 = x
|
|
256
|
+
this.selectedShape.y2 = y
|
|
257
|
+
break
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
this.requestUpdate() // 화면 업데이트
|
|
261
|
+
}
|
|
239
262
|
}
|
|
240
263
|
|
|
241
|
-
// 마우스 업 이벤트 핸들러 (도형 그리기 종료)
|
|
242
264
|
private onMouseUp = () => {
|
|
243
265
|
this.drawing = false
|
|
244
266
|
const svg = this.svg as SVGSVGElement
|
|
245
267
|
svg.removeEventListener('mousemove', this.onMouseMove)
|
|
246
268
|
svg.removeEventListener('mouseup', this.onMouseUp)
|
|
247
269
|
|
|
248
|
-
this.selectedShape
|
|
270
|
+
if (this.selectedShape) {
|
|
271
|
+
this.selectedShape.selected = true
|
|
272
|
+
}
|
|
273
|
+
|
|
249
274
|
this.requestUpdate()
|
|
250
275
|
}
|
|
251
276
|
|
|
@@ -263,7 +288,7 @@ export class OxImageMarker extends BaseImageMarker {
|
|
|
263
288
|
protected renderShape(shape: Shape) {
|
|
264
289
|
const commonAttrs = {
|
|
265
290
|
stroke: shape.selected ? 'blue' : 'red',
|
|
266
|
-
'stroke-width':
|
|
291
|
+
'stroke-width': 1,
|
|
267
292
|
fill: 'transparent',
|
|
268
293
|
cursor: 'pointer'
|
|
269
294
|
}
|
|
@@ -271,12 +296,11 @@ export class OxImageMarker extends BaseImageMarker {
|
|
|
271
296
|
switch (shape.type) {
|
|
272
297
|
case 'text':
|
|
273
298
|
return svg`
|
|
274
|
-
|
|
275
299
|
<text
|
|
276
300
|
x="${shape.x!}"
|
|
277
301
|
y="${shape.y!}"
|
|
278
302
|
fill="${commonAttrs.stroke}"
|
|
279
|
-
style="cursor: ${commonAttrs.cursor}; font-size: 16px;
|
|
303
|
+
style="cursor: ${commonAttrs.cursor}; font-size: 16px;"
|
|
280
304
|
@mousedown="${(e: MouseEvent) => this.onShapeMouseDown(e, shape)}"
|
|
281
305
|
@dblclick="${(e: MouseEvent) => this.onTextDoubleClick(e, shape)}"
|
|
282
306
|
>${shape.text}</text>
|
|
@@ -593,34 +617,135 @@ export class OxImageMarker extends BaseImageMarker {
|
|
|
593
617
|
private onTextDoubleClick(event: MouseEvent, shape: Shape) {
|
|
594
618
|
event.stopPropagation()
|
|
595
619
|
|
|
596
|
-
|
|
620
|
+
const textElement = event.target as SVGTextElement
|
|
621
|
+
|
|
622
|
+
this.showTextInput(textElement, shape)
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
private showTextInput(textElement: SVGTextElement, shape: Shape | null = null, options?: { x: number; y: number }) {
|
|
626
|
+
// input 요소 생성
|
|
627
|
+
const input: HTMLInputElement = document.createElement('input')
|
|
597
628
|
input.style.position = 'absolute'
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
629
|
+
|
|
630
|
+
// SVG 텍스트의 CTM 얻기
|
|
631
|
+
const ctm = textElement.getScreenCTM() || { a: 1, e: 0, d: 1, f: 0 }
|
|
632
|
+
const bbox = textElement.getBBox()
|
|
633
|
+
|
|
634
|
+
// 텍스트의 화면 위치 계산
|
|
635
|
+
const screenX = bbox.x * ctm.a + ctm.e
|
|
636
|
+
const screenY = bbox.y * ctm.d + ctm.f
|
|
637
|
+
|
|
638
|
+
// input 위치 조정 (scale과 transform을 고려한 정확한 좌표로 변환)
|
|
639
|
+
input.style.left = `${screenX}px`
|
|
640
|
+
input.style.top = `${screenY}px`
|
|
641
|
+
|
|
642
|
+
// 텍스트 폰트 스타일을 가져와 input에 적용
|
|
643
|
+
const computedStyle = window.getComputedStyle(textElement)
|
|
644
|
+
const fontSize = parseFloat(computedStyle.fontSize) * ctm.a
|
|
645
|
+
const fontFamily = computedStyle.fontFamily
|
|
646
|
+
const fontWeight = computedStyle.fontWeight
|
|
647
|
+
const textColor = computedStyle.fill || computedStyle.color
|
|
648
|
+
const lineHeight = parseFloat(computedStyle.lineHeight) * ctm.d
|
|
649
|
+
|
|
650
|
+
// input 스타일을 텍스트와 일치시킴
|
|
651
|
+
input.style.fontSize = `${fontSize}px`
|
|
652
|
+
input.style.fontFamily = fontFamily
|
|
653
|
+
input.style.fontWeight = fontWeight
|
|
654
|
+
input.style.color = textColor
|
|
655
|
+
input.style.lineHeight = `${lineHeight}px`
|
|
656
|
+
input.style.padding = '0'
|
|
657
|
+
input.style.margin = '0'
|
|
658
|
+
input.style.border = 'none'
|
|
659
|
+
input.style.outline = 'none'
|
|
660
|
+
input.style.background = 'transparent'
|
|
661
|
+
|
|
662
|
+
if (shape) {
|
|
663
|
+
input.value = shape.text || ''
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
// SVG 텍스트 숨김
|
|
667
|
+
textElement.style.visibility = 'hidden'
|
|
668
|
+
|
|
669
|
+
// input 요소를 추가하고, 텍스트 길이에 따라 너비 조정
|
|
601
670
|
document.body.appendChild(input)
|
|
602
|
-
|
|
671
|
+
this.adjustInputWidth(input) // 최초 너비 조정
|
|
672
|
+
requestAnimationFrame(() => input.focus())
|
|
673
|
+
|
|
674
|
+
// 입력 중에 동적으로 input의 너비 조정
|
|
675
|
+
input.addEventListener('input', () => {
|
|
676
|
+
this.adjustInputWidth(input)
|
|
677
|
+
})
|
|
603
678
|
|
|
604
679
|
input.addEventListener('keydown', e => {
|
|
605
680
|
if (e.key === 'Enter') {
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
681
|
+
const textValue = input.value.trim()
|
|
682
|
+
|
|
683
|
+
if (textValue) {
|
|
684
|
+
if (shape) {
|
|
685
|
+
shape.text = textValue
|
|
686
|
+
} else {
|
|
687
|
+
const newShape: Shape = {
|
|
688
|
+
id: Date.now().toString(),
|
|
689
|
+
type: 'text',
|
|
690
|
+
x: options!.x,
|
|
691
|
+
y: options!.y,
|
|
692
|
+
text: textValue
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
this.shapes = [...this.shapes, newShape]
|
|
696
|
+
}
|
|
697
|
+
} else if (shape) {
|
|
698
|
+
this.shapes = this.shapes.filter(s => s.id !== shape.id)
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
document.body.removeChild(input)
|
|
702
|
+
|
|
703
|
+
if (!shape) {
|
|
704
|
+
this.svg.removeChild(textElement)
|
|
705
|
+
} else {
|
|
706
|
+
textElement.style.visibility = 'visible'
|
|
707
|
+
}
|
|
609
708
|
|
|
610
709
|
this.requestUpdate()
|
|
611
710
|
} else if (e.key === 'Escape') {
|
|
612
|
-
document.body.removeChild(input
|
|
613
|
-
input = null
|
|
711
|
+
document.body.removeChild(input)
|
|
614
712
|
|
|
615
|
-
|
|
713
|
+
if (!shape) {
|
|
714
|
+
this.svg.removeChild(textElement)
|
|
715
|
+
} else {
|
|
716
|
+
textElement.style.visibility = 'visible'
|
|
717
|
+
}
|
|
616
718
|
}
|
|
617
719
|
})
|
|
618
720
|
|
|
619
721
|
input.addEventListener('blur', () => {
|
|
620
722
|
requestAnimationFrame(() => {
|
|
621
|
-
|
|
622
|
-
|
|
723
|
+
if (!shape) {
|
|
724
|
+
this.svg.removeChild(textElement)
|
|
725
|
+
} else {
|
|
726
|
+
textElement.style.visibility = 'visible'
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
if (input.parentElement) {
|
|
730
|
+
document.body.removeChild(input)
|
|
731
|
+
}
|
|
623
732
|
})
|
|
624
733
|
})
|
|
625
734
|
}
|
|
735
|
+
|
|
736
|
+
// 텍스트 길이에 맞춰 input 박스의 너비를 조정하는 함수 (최소 길이 유지)
|
|
737
|
+
private adjustInputWidth(input: HTMLInputElement) {
|
|
738
|
+
const minWidth = 50 // 최소 너비 (픽셀 단위로 설정)
|
|
739
|
+
const textWidth = this.measureTextWidth(input.value || input.placeholder, input)
|
|
740
|
+
input.style.width = `${Math.max(textWidth + 10, minWidth)}px` // 텍스트 길이 + 여유 공간, 최소 너비 적용
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
// 텍스트 길이를 측정하는 함수
|
|
744
|
+
private measureTextWidth(text: string, input: HTMLInputElement): number {
|
|
745
|
+
const canvas = document.createElement('canvas')
|
|
746
|
+
const context = canvas.getContext('2d')!
|
|
747
|
+
context.font = window.getComputedStyle(input).font
|
|
748
|
+
|
|
749
|
+
return context.measureText(text).width
|
|
750
|
+
}
|
|
626
751
|
}
|