mirror of
https://github.com/leaders-of-digital-9-task/dicom-viewer.git
synced 2024-11-22 02:16:32 +03:00
remove bug
This commit is contained in:
parent
44925048a7
commit
f9e8dd901c
4
index.js
4
index.js
|
@ -41,8 +41,6 @@ app.addEventListener('load', function () {
|
||||||
// }, 3000)
|
// }, 3000)
|
||||||
app.setTool('Draw')
|
app.setTool('Draw')
|
||||||
app.setDrawShape('Circle')
|
app.setDrawShape('Circle')
|
||||||
currentframeNumber = 1
|
|
||||||
setFrame(1)
|
|
||||||
app.getActiveLayerGroup().getActiveDrawLayer().getKonvaStage().addEventListener('mouseup', () => {
|
app.getActiveLayerGroup().getActiveDrawLayer().getKonvaStage().addEventListener('mouseup', () => {
|
||||||
console.log(app.getActiveLayerGroup().getActiveDrawLayer().getKonvaLayer())
|
console.log(app.getActiveLayerGroup().getActiveDrawLayer().getKonvaLayer())
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -389,6 +387,8 @@ function receiveMessage(event)
|
||||||
}
|
}
|
||||||
else if (data.type == 'loadSchema') {
|
else if (data.type == 'loadSchema') {
|
||||||
schema = loadSchema(data.data)
|
schema = loadSchema(data.data)
|
||||||
|
currentframeNumber = 0
|
||||||
|
setFrame(0)
|
||||||
}
|
}
|
||||||
else if (data.type == 'setIndex') {
|
else if (data.type == 'setIndex') {
|
||||||
setFrame(data.data)
|
setFrame(data.data)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user