Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
YukaUU committed Jul 16, 2024
1 parent ced2289 commit 5d0604c
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 8 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ The toolbar is in the top-left of the main content window. Use the toolbar butto
| ![](https://fonts.gstatic.com/s/i/materialicons/bug_report/v4/24px.svg) | Bug Report | Report a bug or give feedback. |
| ![](https://fonts.gstatic.com/s/i/materialicons/camera_enhance/v4/24px.svg) | Slide Capture | Click to take a screenshot of the slide and annotations on it. |
| ![](https://fonts.gstatic.com/s/i/materialicons/help/v4/24px.svg) | Tutorial | Click to view a guided tour of the viewer tools. |
// TODO add Log icon
| ![](https://fonts.gstatic.com/s/i/materialicons/help/v4/24px.svg) | Log | Click to view a list of annotation. |
| ![](https://fonts.gstatic.com/s/i/materialicons/auto_graph/v4/24px.svg) | Visualization | Click to view visualizations of annotations. |

## Toolbar Shortcuts

Expand Down
23 changes: 22 additions & 1 deletion apps/viewer/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ function initCore() {
$D.pages.table = '../../../';
}

console.log($D);
try {
const slideQuery = {};
slideQuery.id = $D.params.slideId;
Expand Down Expand Up @@ -845,6 +846,26 @@ async function initUIcomponents() {
data: [],
});

// create control

// TODO move to add layers
// create main layer viewer items with states
// const mainViewerData = $D.overlayers.map((d) => {
// const isShow =
// $D.params.states &&
// $D.params.states.l &&
// $D.params.states.l.includes(d.id) ?
// true :
// false;
// return {item: d, isShow: isShow};
// });


// TODO move to add layers
// create monir layer viewer items
// const minorViewerData = $D.overlayers.map((d) => {
// return {item: d, isShow: false};
// });
$UI.AssistantViewer = new Assistant({
id: 'ml_assistant',
viewer: $CAMIC.viewer,
Expand Down Expand Up @@ -965,7 +986,7 @@ async function initUIcomponents() {
$UI.loadStatus.classList.add('load-status');
$UI.loadStatus.innerHTML = `<div class="material-icons loading">cached</div><div class="text">Loading</div>`;
$UI.layersSideMenu.addContent($UI.loadStatus);
// TODO logs

// zoom locker control
$UI.lockerPanel = document.createElement('div');
$UI.lockerPanel.classList.add('lock_panel');
Expand Down
2 changes: 1 addition & 1 deletion apps/viewer/uicallbacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -2741,7 +2741,7 @@ async function captureSlide() {

/* Log annotaiton */
let isSidemenuOpen = true;
// 他のものを全て閉じる処理を追加

function visualization() {
if (isSidemenuOpen == true) {
$UI.visualizationSideMenu.open();
Expand Down
4 changes: 2 additions & 2 deletions components/visualizationviewer/visualiationviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ VisualizationViewer.prototype.visualization = function(id, result) {
plugins: {
title: {
display: true,
text: 'Draw Annotation Count vs zooming', // 図のタイトル
text: 'Draw Annotation Count vs zooming',
},
tooltip: {
callbacks: {
Expand Down Expand Up @@ -125,7 +125,7 @@ VisualizationViewer.prototype.visualization = function(id, result) {
},
};

// Create scatter diagram
// Create
new Chart(ctx, {
type: 'scatter',
data: data,
Expand Down
4 changes: 2 additions & 2 deletions components/visualizationviewer/visualizationviewer.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#canvasContainer {
background-color: rgb(255, 253, 253); /* 背景色を設定 */
background-color: rgb(255, 253, 253);
display: flex;
justify-content: center;
align-items: center;
}

#myChart {
background-color: rgb(255, 253, 253); /* 背景色を設定 */
background-color: rgb(255, 253, 253);
display: flex;
justify-content: center;
align-items: center;
Expand Down

0 comments on commit 5d0604c

Please sign in to comment.