Skip to content
Snippets Groups Projects
Commit 93620e1b authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: fix get export nehuba

bugfix: style display
bugfix: precision
parent 4e4e84eb
No related branches found
No related tags found
No related merge requests found
......@@ -118,8 +118,6 @@ export class NehubaViewerUnit implements OnInit, OnDestroy {
private log: LoggingService,
) {
this.exportNehuba = getExportNehuba()
if (!this.constantService.loadExportNehubaPromise) {
this.constantService.loadExportNehubaPromise = new Promise((resolve, reject) => {
const scriptEl = this.rd.createElement('script')
......@@ -132,6 +130,7 @@ export class NehubaViewerUnit implements OnInit, OnDestroy {
this.constantService.loadExportNehubaPromise
.then(() => {
this.exportNehuba = getExportNehuba()
const fixedZoomPerspectiveSlices = this.config && this.config.layout && this.config.layout.useNehubaPerspective && this.config.layout.useNehubaPerspective.fixedZoomPerspectiveSlices
if (fixedZoomPerspectiveSlices) {
const { sliceZoom, sliceViewportWidth, sliceViewportHeight } = fixedZoomPerspectiveSlices
......
......@@ -36,7 +36,7 @@ export class FixedMouseContextualContainerDirective {
this.transform = `translate(${this.mousePos.map(v => v.toString() + 'px').join(', ')})`
})
this.styleDisplay = 'block'
this.styleDisplay = 'inline-block'
this.isShown = true
this.onShow.emit()
}
......
......@@ -17,7 +17,7 @@ export class HumanReadableFileSizePipe implements PipeTransform {
let _input = Number(input)
if (!_input) { throw new Error(`HumanReadableFileSizePipe needs a string or a number that can be parsed to number`) }
const _precision = Number(precision)
if (!isNaN(_precision)) { throw new Error(`precision must be a number`) }
if (isNaN(_precision)) { throw new Error(`precision must be a number`) }
let counter = 0
while (_input > 1000 && counter < 4) {
_input = _input / 1000
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment