Modified scatter to get access to the Resize event.
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user