Skip to content

Commit

Permalink
update: 1. new font for log. 2. loss display update
Browse files Browse the repository at this point in the history
Signed-off-by: ArvinHuang <[email protected]>
  • Loading branch information
idwenwen committed Dec 26, 2023
1 parent 80f1492 commit d45236a
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ watch(
} else if (value && $_pendingScrollUpdate.value === id.value) {
updateSize();
}
}
},
{ deep: true }
);
onMounted(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

@import './index.scss';
@import './scroll.scss';
@import './font/font.scss';

* {
margin: 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@font-face {
font-family: 'lucon';
src: url(~@/style/font/lucon_0.ttf) format('truetype')
}
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ export default function Loss (

const configuration = {
xAxis: {
type: 'category',
name: 'epoch'
type: 'value',
name: 'epoch',
minInterval: 1
},
yAxis: {
type: 'value',
Expand Down Expand Up @@ -38,7 +39,13 @@ export default function Loss (
pointers.length = 0
}
return result
})()
})(),
tooltip: {
formatter: (parameters: any) => {
return `Epoch: ${parameters[0].axisValue} <br />
Loss: ${parameters[0].data[1]}`
}
}
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ watch(
text-align: left;
text-indent: initial;
line-height: 20px;
white-space: pre-wrap;
font-family: 'lucon', 'Lucida Console', Monaco, monospace, 'Arial';
}
}
.f-log-tip {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import './Selection.scss';
import FSelection from './Selection.vue';
import FSelectionChart from './SelectionChart.vue';

const SelectionInstall = (app: any) => {
app.component('FSelection', FSelection)
app.component('FSelectionChart', FSelectionChart)
}

export default SelectionInstall
import './Selection.scss';
import FSelection from './Selection.vue';
import FSelectionChart from './SelectionChart.vue';

const SelectionInstall = (app: any) => {
app.component('FSelection', FSelection)
app.component('FSelectionChart', FSelectionChart)
}

export default SelectionInstall

0 comments on commit d45236a

Please sign in to comment.