Compare commits
	
		
			2 Commits
		
	
	
		
			main
			...
			new-loggin
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 1c74b23700 | |||
| 458a4c41eb | 
@ -34,6 +34,11 @@ 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.
 | 
				
			||||||
@ -892,7 +897,7 @@ export class AbstractScatter extends Throwable {
 | 
				
			|||||||
                translate: delta,
 | 
					                translate: delta,
 | 
				
			||||||
                scale: this.scale,
 | 
					                scale: this.scale,
 | 
				
			||||||
                about: this.currentAbout,
 | 
					                about: this.currentAbout,
 | 
				
			||||||
                type: null
 | 
					                type: DRAG_UPDATE
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            this.onTransform.forEach(function(f) {
 | 
					            this.onTransform.forEach(function(f) {
 | 
				
			||||||
                f(event)
 | 
					                f(event)
 | 
				
			||||||
@ -906,7 +911,7 @@ export class AbstractScatter extends Throwable {
 | 
				
			|||||||
                scale: this.scale,
 | 
					                scale: this.scale,
 | 
				
			||||||
                about: this.currentAbout,
 | 
					                about: this.currentAbout,
 | 
				
			||||||
                fast: false,
 | 
					                fast: false,
 | 
				
			||||||
                type: null
 | 
					                type: DRAG_COMPLETE
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            this.onTransform.forEach(function(f) {
 | 
					            this.onTransform.forEach(function(f) {
 | 
				
			||||||
                f(event)
 | 
					                f(event)
 | 
				
			||||||
@ -920,7 +925,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: null
 | 
					                type: MOVED
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            this.onTransform.forEach(function(f) {
 | 
					            this.onTransform.forEach(function(f) {
 | 
				
			||||||
                f(event)
 | 
					                f(event)
 | 
				
			||||||
@ -933,7 +938,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: null
 | 
					                type: RESIZED
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            this.onTransform.forEach(function(f) {
 | 
					            this.onTransform.forEach(function(f) {
 | 
				
			||||||
                f(event)
 | 
					                f(event)
 | 
				
			||||||
@ -949,7 +954,7 @@ export class AbstractScatter extends Throwable {
 | 
				
			|||||||
                scale: this.scale,
 | 
					                scale: this.scale,
 | 
				
			||||||
                about: about,
 | 
					                about: about,
 | 
				
			||||||
                fast: false,
 | 
					                fast: false,
 | 
				
			||||||
                type: null
 | 
					                type: ZOOMED
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
            this.onTransform.forEach(function(f) {
 | 
					            this.onTransform.forEach(function(f) {
 | 
				
			||||||
                f(event)
 | 
					                f(event)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user