@dataloop-ai/components 0.19.263 → 0.19.265
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/package.json
CHANGED
|
@@ -162,8 +162,8 @@
|
|
|
162
162
|
<div class="color-spectrum__gradient" />
|
|
163
163
|
<div class="color-spectrum__gradation">
|
|
164
164
|
<div
|
|
165
|
-
v-for="value in gradationValues"
|
|
166
|
-
:key="
|
|
165
|
+
v-for="(value, index) in gradationValues"
|
|
166
|
+
:key="index"
|
|
167
167
|
class="color-spectrum__gradation--element"
|
|
168
168
|
>
|
|
169
169
|
<span class="color-spectrum__gradation--element-line"
|
|
@@ -450,6 +450,8 @@ export default defineComponent({
|
|
|
450
450
|
this.cellWidth = Math.round(width / this.matrix.length)
|
|
451
451
|
colorSpectrum.style.height = `${width}px`
|
|
452
452
|
yAxisOuter.style.height = `${width}px`
|
|
453
|
+
|
|
454
|
+
this.resizeYAxis()
|
|
453
455
|
},
|
|
454
456
|
handleBrushUpdate(brush: DlConfusionMatrixBrushState) {
|
|
455
457
|
if (
|
|
@@ -508,7 +510,7 @@ export default defineComponent({
|
|
|
508
510
|
user-select: none;
|
|
509
511
|
}
|
|
510
512
|
.vertical_wrapper {
|
|
511
|
-
width:
|
|
513
|
+
width: calc(100% - 120px);
|
|
512
514
|
display: flex;
|
|
513
515
|
flex-direction: column;
|
|
514
516
|
align-items: center;
|
|
@@ -556,6 +558,10 @@ export default defineComponent({
|
|
|
556
558
|
&--text {
|
|
557
559
|
font-size: 12px;
|
|
558
560
|
}
|
|
561
|
+
.legend-avatar {
|
|
562
|
+
max-height: 30px;
|
|
563
|
+
max-width: 100%;
|
|
564
|
+
}
|
|
559
565
|
}
|
|
560
566
|
}
|
|
561
567
|
.y-axis {
|
|
@@ -569,6 +575,11 @@ export default defineComponent({
|
|
|
569
575
|
overflow: hidden;
|
|
570
576
|
text-overflow: ellipsis;
|
|
571
577
|
font-size: 12px;
|
|
578
|
+
min-width: 30px;
|
|
579
|
+
.legend-avatar {
|
|
580
|
+
max-height: 100%;
|
|
581
|
+
max-width: 30px;
|
|
582
|
+
}
|
|
572
583
|
}
|
|
573
584
|
}
|
|
574
585
|
.y-axis-outer {
|
|
@@ -617,6 +628,7 @@ export default defineComponent({
|
|
|
617
628
|
.color-spectrum {
|
|
618
629
|
color: var(--dl-color-darker);
|
|
619
630
|
display: flex;
|
|
631
|
+
width: 20px;
|
|
620
632
|
margin: 0px 15px;
|
|
621
633
|
&__gradient {
|
|
622
634
|
width: 40%;
|
|
@@ -686,7 +698,5 @@ export default defineComponent({
|
|
|
686
698
|
|
|
687
699
|
.legend-avatar {
|
|
688
700
|
border-radius: 50%;
|
|
689
|
-
width: 30px;
|
|
690
|
-
height: 30px;
|
|
691
701
|
}
|
|
692
702
|
</style>
|
|
@@ -672,9 +672,8 @@ export default defineComponent({
|
|
|
672
672
|
const text = (e.target as HTMLElement).textContent
|
|
673
673
|
if (text.endsWith('.') || text.endsWith(',')) {
|
|
674
674
|
setInputValue(text)
|
|
675
|
-
} else {
|
|
676
|
-
debouncedSetInputValue.value(text)
|
|
677
675
|
}
|
|
676
|
+
debouncedSetInputValue.value(text)
|
|
678
677
|
}
|
|
679
678
|
|
|
680
679
|
const onDateSelection = (value: DateInterval) => {
|