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

chore: screenshot perf

parent a0de2704
No related branches found
No related tags found
No related merge requests found
......@@ -776,15 +776,6 @@ export class NehubaContainer implements OnInit, OnChanges, OnDestroy {
}
}),
)
// To get WebGL content when taking screenshot
HTMLCanvasElement.prototype.getContext = function(origFn) {
return function(type, attribs) {
attribs = attribs || {}
attribs.preserveDrawingBuffer = true
return origFn.call(this, type, attribs)
}
}(HTMLCanvasElement.prototype.getContext)
}
// datasetViewerRegistry : Set<string> = new Set()
......
......@@ -189,6 +189,7 @@ export class TakeScreenshotComponent implements OnInit, OnDestroy {
}
public mouseUp(_event: MouseEvent) {
(window as any).viewer.display.update()
this.borderWidth = '0'
this.isDragging = false
......
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