You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -247,7 +248,7 @@ D3TimeChart = function (elem, options) {
247
248
// defines margin dimensions used in rendering of chart.
248
249
this.margin={
249
250
top: 5,
250
-
right: 60,
251
+
right: 30,
251
252
bottom: 50,
252
253
left: 60,
253
254
};
@@ -292,7 +293,7 @@ D3TimeChart = function (elem, options) {
292
293
sampleNumberToIndexMap: null,
293
294
unzoomedCompressionIndex: 0,
294
295
},
295
-
selection: null,// maybe would have been better to have named this "zoom": stores data related to zoom selection (e.g. data domain of magnified area, corresponding compression index to use for plotting this magnified data)
296
+
selection: null,// maybe would have been better to have named this "zoom": stores data related to zoom selection (e.g. data domain of magnified area, corresponding compression index to use for plotting this magnified data). NOTE: set to null when zoomed all the way out.
296
297
regions: null,
297
298
brush: newBrushX(),
298
299
height: null,
@@ -341,14 +342,14 @@ D3TimeChart = function (elem, options) {
341
342
/** MISC MEMBERS */
342
343
this.cancelSelectionSignalEmitted=false;
343
344
this.shiftKeyHeld=false;
345
+
this.ctrlKeyHeld=false;
344
346
this.usingAddSelectionMode=false;
347
+
this.usingRemoveSelectionMode=false;
345
348
this.highlightModifier=null;// holds the key pressed in conjunction with a highlight gesture to modify the action
346
349
this.draggedForward=false;
347
350
348
351
// held key modifiers
349
352
this.keysHeld={};
350
-
this.backgroundSelectionKeyHeld=false;
351
-
this.secondarySelectionKeyHeld=false;
352
353
353
354
/** GLOBAL LISTENERS */
354
355
// listeners to support esc canceling of highlighting, held key modifiers, and arrow-key panning
@@ -628,8 +629,8 @@ D3TimeChart.prototype.reinitializeChart = function (options) {
628
629
629
630
/**
630
631
* Handler for the initiation of a selection gesture.
631
-
*/
632
-
varstartSelection=()=>{
632
+
*/
633
+
varstartSelection=(options)=>{
633
634
if(options&&options.touch){
634
635
d3.event.preventDefault();
635
636
d3.event.stopPropagation();
@@ -705,7 +706,7 @@ D3TimeChart.prototype.reinitializeChart = function (options) {
705
706
/**
706
707
* Handler for the progression of a selection gesture.
707
708
*/
708
-
varmoveSelection=()=>{
709
+
varmoveSelection=(options)=>{
709
710
if(options&&options.touch){
710
711
d3.event.preventDefault();
711
712
d3.event.stopPropagation();
@@ -746,7 +747,6 @@ D3TimeChart.prototype.reinitializeChart = function (options) {
746
747
/**
747
748
* Handler for the termination of a selection gesture.
748
749
*/
749
-
750
750
varendSelection=(options)=>{
751
751
if(options&&options.touch){
752
752
d3.event.preventDefault();
@@ -830,9 +830,9 @@ D3TimeChart.prototype.reinitializeChart = function (options) {
0 commit comments