We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 101d001 commit bd52649Copy full SHA for bd52649
lib/minimap-element.js
@@ -673,6 +673,8 @@ class MinimapElement {
673
*/
674
setModel (minimap) {
675
this.minimap = minimap
676
+ // TODO: go direct
677
+ this.CanvasDrawer.minimap = minimap
678
679
this.subscriptions.add(
680
lib/mixins/canvas-drawer.js
@@ -18,6 +18,10 @@ let thisSpec
18
* methods are available on any `MinimapElement` instance.
19
20
export default class CanvasDrawer {
21
+ constructor() {
22
+ // set in setModel of minimapElement
23
+ this.minimap = undefined
24
+ }
25
/**
26
* Initializes the canvas elements needed to perform the `Minimap` rendering.
27
0 commit comments