chore(viewer): Refactor + improvement in arc/circle conversion

Fixed error in loading %
This commit is contained in:
Alan Rynne
2021-01-26 12:05:30 +01:00
parent 626546cc70
commit bcadd9b9ef
3 changed files with 46 additions and 35 deletions
@@ -51,7 +51,7 @@ export default class ViewerObjectLoader {
total = obj.totalChildrenCount
}
current++
this.viewer.emit( 'load-progress', { progress: current/total, id: this.objectId } )
this.viewer.emit( 'load-progress', { progress: current/( total+1 ), id: this.objectId } )
}
}
}