Quellcode durchsuchen

improve the plot #39

tags/2.3.1
Caven Chen vor 4 Jahren
Ursprung
Commit
b0ca0b3fa9
2 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen
  1. 1
    2
      modules/event/EventType.js
  2. 1
    1
      modules/tools/DrawTool.js

+ 1
- 2
modules/event/EventType.js Datei anzeigen

@@ -77,11 +77,10 @@ const PathEventType = {

const PlotEventType = {
DRAW_START: 'drawStart',
DRAW_ANCHOR: 'drawAnchor',
DRAW_MOVING: 'drawMoving',
DRAW_STOP: 'drawStop',
EDIT_START: 'editStart',
EDIT_STOP: 'editEnd',
DRAW_ANCHOR: 'drawAnchor',
CREATE_ANCHOR: 'createAnchor',
ANCHOR_MOVING: 'anchorMoving',
EDIT_ANCHOR_STOP: 'editAnchorStop',

+ 1
- 1
modules/tools/DrawTool.js Datei anzeigen

@@ -63,7 +63,7 @@ class DrawTool {
return false
}
this._floatingAnchor && this._floatingAnchor.position.setValue(position)
this._plotEvent.fire(PlotEventType.DRAW_MOVING, position)
this._plotEvent.fire(PlotEventType.ANCHOR_MOVING, position)
}

/**

Laden…
Abbrechen
Speichern