Compare commits
2 Commits
new-loggin
...
main
Author | SHA1 | Date | |
---|---|---|---|
f3a80560c8 | |||
b65cb3354b |
@ -984,6 +984,7 @@ export class InteractionMapper extends InteractionDelegate {
|
|||||||
useCapture = true,
|
useCapture = true,
|
||||||
capturePointerEvents = true,
|
capturePointerEvents = true,
|
||||||
mouseWheelElement = null,
|
mouseWheelElement = null,
|
||||||
|
preventPointerClicks = true,
|
||||||
logInteractionsAbove = 12
|
logInteractionsAbove = 12
|
||||||
} = {}
|
} = {}
|
||||||
) {
|
) {
|
||||||
@ -991,6 +992,7 @@ export class InteractionMapper extends InteractionDelegate {
|
|||||||
tapDistance,
|
tapDistance,
|
||||||
useCapture,
|
useCapture,
|
||||||
capturePointerEvents,
|
capturePointerEvents,
|
||||||
|
preventPointerClicks,
|
||||||
longPressTime,
|
longPressTime,
|
||||||
mouseWheelElement
|
mouseWheelElement
|
||||||
})
|
})
|
||||||
|
@ -192,6 +192,7 @@ export default class PopupMenu extends Popup {
|
|||||||
keepWithin = null,
|
keepWithin = null,
|
||||||
backgroundColor = '#EEE',
|
backgroundColor = '#EEE',
|
||||||
normalColor = '#444',
|
normalColor = '#444',
|
||||||
|
highlightColor = 'black',
|
||||||
autoClose = true,
|
autoClose = true,
|
||||||
} = {}
|
} = {}
|
||||||
) {
|
) {
|
||||||
@ -214,6 +215,7 @@ export default class PopupMenu extends Popup {
|
|||||||
maxWidth,
|
maxWidth,
|
||||||
backgroundColor,
|
backgroundColor,
|
||||||
normalColor,
|
normalColor,
|
||||||
|
highlightColor,
|
||||||
notchPosition,
|
notchPosition,
|
||||||
keepWithin,
|
keepWithin,
|
||||||
autoClose,
|
autoClose,
|
||||||
|
@ -34,11 +34,6 @@ export class BaseEvent {
|
|||||||
const START = 'onStart'
|
const START = 'onStart'
|
||||||
const UPDATE = 'onUpdate'
|
const UPDATE = 'onUpdate'
|
||||||
const END = 'onEnd'
|
const END = 'onEnd'
|
||||||
const DRAG_UPDATE = 'onDragUpdate'
|
|
||||||
const DRAG_COMPLETE = 'onDragComplete'
|
|
||||||
const MOVED = 'onMoved'
|
|
||||||
const RESIZED = 'onResized'
|
|
||||||
const ZOOMED = 'onZoomed'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A scatter event that describes how the scatter has changed.
|
* A scatter event that describes how the scatter has changed.
|
||||||
@ -897,7 +892,7 @@ export class AbstractScatter extends Throwable {
|
|||||||
translate: delta,
|
translate: delta,
|
||||||
scale: this.scale,
|
scale: this.scale,
|
||||||
about: this.currentAbout,
|
about: this.currentAbout,
|
||||||
type: DRAG_UPDATE
|
type: null
|
||||||
})
|
})
|
||||||
this.onTransform.forEach(function(f) {
|
this.onTransform.forEach(function(f) {
|
||||||
f(event)
|
f(event)
|
||||||
@ -911,7 +906,7 @@ export class AbstractScatter extends Throwable {
|
|||||||
scale: this.scale,
|
scale: this.scale,
|
||||||
about: this.currentAbout,
|
about: this.currentAbout,
|
||||||
fast: false,
|
fast: false,
|
||||||
type: DRAG_COMPLETE
|
type: null
|
||||||
})
|
})
|
||||||
this.onTransform.forEach(function(f) {
|
this.onTransform.forEach(function(f) {
|
||||||
f(event)
|
f(event)
|
||||||
@ -925,7 +920,7 @@ export class AbstractScatter extends Throwable {
|
|||||||
translate: { x: dx, y: dy },
|
translate: { x: dx, y: dy },
|
||||||
about: about,
|
about: about,
|
||||||
fast: true,
|
fast: true,
|
||||||
type: MOVED
|
type: null
|
||||||
})
|
})
|
||||||
this.onTransform.forEach(function(f) {
|
this.onTransform.forEach(function(f) {
|
||||||
f(event)
|
f(event)
|
||||||
@ -938,7 +933,7 @@ export class AbstractScatter extends Throwable {
|
|||||||
let event = new ScatterEvent(this, {
|
let event = new ScatterEvent(this, {
|
||||||
scale: this.scale,
|
scale: this.scale,
|
||||||
fast: false,
|
fast: false,
|
||||||
type: RESIZED
|
type: null
|
||||||
})
|
})
|
||||||
this.onTransform.forEach(function(f) {
|
this.onTransform.forEach(function(f) {
|
||||||
f(event)
|
f(event)
|
||||||
@ -954,7 +949,7 @@ export class AbstractScatter extends Throwable {
|
|||||||
scale: this.scale,
|
scale: this.scale,
|
||||||
about: about,
|
about: about,
|
||||||
fast: false,
|
fast: false,
|
||||||
type: ZOOMED
|
type: null
|
||||||
})
|
})
|
||||||
this.onTransform.forEach(function(f) {
|
this.onTransform.forEach(function(f) {
|
||||||
f(event)
|
f(event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user