Modified scatter to get access to the Resize event.

This commit is contained in:
2019-11-28 13:36:00 +01:00
parent 5305561619
commit f3fed535d8
6 changed files with 66 additions and 44 deletions
+11 -1
View File
@@ -267,10 +267,20 @@ export class SubmapScatter extends DisplayObjectScatter {
maxScale: 1,
startScale: 1,
overdoScaling: 1,
scalable: false
scalable: false,
resizable: true
})
super(displayObject, renderer, opts)
console.log('onResize', opts.onResize)
this.onResize = opts.onResize
}
gesture(interaction) {
super.gesture(interaction)
if (this.onResize) this.onResize(interaction)
}
get width() {