diff --git a/examples/compiled/airport_connections.vg.json b/examples/compiled/airport_connections.vg.json index 9f0ee04e38..8af92ac45c 100644 --- a/examples/compiled/airport_connections.vg.json +++ b/examples/compiled/airport_connections.vg.json @@ -139,7 +139,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"layer_2\", fields: org_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"origin\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, {"name": "org_tuple_fields", "value": [{"type": "E", "field": "origin"}]}, @@ -157,7 +157,7 @@ ], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/bar_count_minimap.vg.json b/examples/compiled/bar_count_minimap.vg.json index 72f670eac9..2b87f41758 100644 --- a/examples/compiled/bar_count_minimap.vg.json +++ b/examples/compiled/bar_count_minimap.vg.json @@ -176,7 +176,7 @@ }, {"events": {"signal": "brush_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/brush_table.vg.json b/examples/compiled/brush_table.vg.json index 60d0aee682..9148852ca6 100644 --- a/examples/compiled/brush_table.vg.json +++ b/examples/compiled/brush_table.vg.json @@ -131,7 +131,7 @@ "update": "[scale(\"concat_0_x\", brush_Horsepower[0]), scale(\"concat_0_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -190,7 +190,7 @@ "update": "[scale(\"concat_0_y\", brush_Miles_per_Gallon[0]), scale(\"concat_0_y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/circle_bubble_health_income.vg.json b/examples/compiled/circle_bubble_health_income.vg.json index 1b43e8360e..f86e8ca66c 100644 --- a/examples/compiled/circle_bubble_health_income.vg.json +++ b/examples/compiled/circle_bubble_health_income.vg.json @@ -32,7 +32,7 @@ { "name": "view_income", "on": [ - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"}, + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"}, { "events": {"signal": "view_translate_delta"}, "update": "panLog(view_translate_anchor.extent_x, -view_translate_delta.x / width)" @@ -46,7 +46,7 @@ { "name": "view_health", "on": [ - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"}, + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"}, { "events": {"signal": "view_translate_delta"}, "update": "panLinear(view_translate_anchor.extent_y, view_translate_delta.y / height)" diff --git a/examples/compiled/concat_bar_layer_circle.vg.json b/examples/compiled/concat_bar_layer_circle.vg.json index d7627fbbaa..58ecc30f22 100644 --- a/examples/compiled/concat_bar_layer_circle.vg.json +++ b/examples/compiled/concat_bar_layer_circle.vg.json @@ -285,7 +285,7 @@ "force": true }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" } ] @@ -303,7 +303,7 @@ "update": "event.shiftKey" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "false" } ] diff --git a/examples/compiled/concat_hover.vg.json b/examples/compiled/concat_hover.vg.json index aae7d5d3a7..f978362c22 100644 --- a/examples/compiled/concat_hover.vg.json +++ b/examples/compiled/concat_hover.vg.json @@ -69,7 +69,7 @@ "force": true }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" } ] @@ -87,7 +87,7 @@ "update": "event.shiftKey" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "false" } ] @@ -201,7 +201,7 @@ "force": true }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" } ] @@ -219,7 +219,7 @@ "update": "event.shiftKey" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "false" } ] diff --git a/examples/compiled/concat_hover_filter.vg.json b/examples/compiled/concat_hover_filter.vg.json index 0e5a159974..6f5a39c7f8 100644 --- a/examples/compiled/concat_hover_filter.vg.json +++ b/examples/compiled/concat_hover_filter.vg.json @@ -96,7 +96,7 @@ "force": true }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" } ] @@ -114,7 +114,7 @@ "update": "event.shiftKey" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "false" } ] @@ -241,7 +241,7 @@ "force": true }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" } ] @@ -259,7 +259,7 @@ "update": "event.shiftKey" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "false" } ] diff --git a/examples/compiled/interactive_area_brush.vg.json b/examples/compiled/interactive_area_brush.vg.json index d96fb0f99d..59f490ff4d 100644 --- a/examples/compiled/interactive_area_brush.vg.json +++ b/examples/compiled/interactive_area_brush.vg.json @@ -100,7 +100,7 @@ "update": "[scale(\"x\", brush_yearmonth_date[0]), scale(\"x\", brush_yearmonth_date[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/interactive_bar_select_highlight.vg.json b/examples/compiled/interactive_bar_select_highlight.vg.json index 35625b7097..fdddaf5c88 100644 --- a/examples/compiled/interactive_bar_select_highlight.vg.json +++ b/examples/compiled/interactive_bar_select_highlight.vg.json @@ -63,7 +63,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: highlight_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -78,7 +78,7 @@ "events": [{"source": "scope", "type": "mouseover"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { @@ -98,7 +98,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: select_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -113,7 +113,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_bin_extent.vg.json b/examples/compiled/interactive_bin_extent.vg.json index 030456b5f0..bbbaa90cf2 100644 --- a/examples/compiled/interactive_bin_extent.vg.json +++ b/examples/compiled/interactive_bin_extent.vg.json @@ -151,7 +151,7 @@ "update": "[scale(\"concat_0_x\", brush_time[0]), scale(\"concat_0_x\", brush_time[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/interactive_brush.vg.json b/examples/compiled/interactive_brush.vg.json index 2b474d3e51..b80a4cec5d 100644 --- a/examples/compiled/interactive_brush.vg.json +++ b/examples/compiled/interactive_brush.vg.json @@ -81,7 +81,7 @@ "update": "[scale(\"x\", brush_Horsepower[0]), scale(\"x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -141,7 +141,7 @@ "update": "[scale(\"y\", brush_Miles_per_Gallon[0]), scale(\"y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/interactive_concat_layer.vg.json b/examples/compiled/interactive_concat_layer.vg.json index d04d8bf7d7..df297694f4 100644 --- a/examples/compiled/interactive_concat_layer.vg.json +++ b/examples/compiled/interactive_concat_layer.vg.json @@ -299,7 +299,7 @@ "force": true }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" } ] @@ -317,7 +317,7 @@ "update": "event.shiftKey" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "false" } ] diff --git a/examples/compiled/interactive_dashboard_europe_pop.vg.json b/examples/compiled/interactive_dashboard_europe_pop.vg.json index d3929c176c..51080d5680 100644 --- a/examples/compiled/interactive_dashboard_europe_pop.vg.json +++ b/examples/compiled/interactive_dashboard_europe_pop.vg.json @@ -406,7 +406,7 @@ }, {"events": {"signal": "brush_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -727,7 +727,7 @@ }, {"events": {"signal": "brush_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1051,7 +1051,7 @@ "update": "[scale(\"concat_2_x\", brush_Population_ages_65_and_above_of_total[0]), scale(\"concat_2_x\", brush_Population_ages_65_and_above_of_total[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1110,7 +1110,7 @@ "update": "[scale(\"concat_2_y\", brush_Population_ages_15_64_of_total[0]), scale(\"concat_2_y\", brush_Population_ages_15_64_of_total[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/interactive_global_development.vg.json b/examples/compiled/interactive_global_development.vg.json index 856381419e..a005d1c6cc 100644 --- a/examples/compiled/interactive_global_development.vg.json +++ b/examples/compiled/interactive_global_development.vg.json @@ -159,7 +159,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"layer_1_layer_1\", fields: hovered_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"country\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -174,7 +174,7 @@ "events": [{"source": "scope", "type": "mouseover"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { @@ -194,7 +194,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"layer_1_layer_1\", fields: clicked_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"country\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -209,7 +209,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_index_chart.vg.json b/examples/compiled/interactive_index_chart.vg.json index b2521b97f1..3906b846bd 100644 --- a/examples/compiled/interactive_index_chart.vg.json +++ b/examples/compiled/interactive_index_chart.vg.json @@ -122,7 +122,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"layer_0\", fields: index_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"date\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -143,7 +143,7 @@ ], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_layered_crossfilter.vg.json b/examples/compiled/interactive_layered_crossfilter.vg.json index 49fb337206..90d75ca2ec 100644 --- a/examples/compiled/interactive_layered_crossfilter.vg.json +++ b/examples/compiled/interactive_layered_crossfilter.vg.json @@ -245,7 +245,7 @@ "update": "[scale(\"child__column_distance_x\", brush_distance[0]), scale(\"child__column_distance_x\", brush_distance[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -620,7 +620,7 @@ "update": "[scale(\"child__column_delay_x\", brush_delay[0]), scale(\"child__column_delay_x\", brush_delay[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -995,7 +995,7 @@ "update": "[scale(\"child__column_time_x\", brush_time[0]), scale(\"child__column_time_x\", brush_time[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/interactive_layered_crossfilter_discrete.vg.json b/examples/compiled/interactive_layered_crossfilter_discrete.vg.json index fadf398b03..dd7bcf724c 100644 --- a/examples/compiled/interactive_layered_crossfilter_discrete.vg.json +++ b/examples/compiled/interactive_layered_crossfilter_discrete.vg.json @@ -217,7 +217,7 @@ "force": true }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" } ] @@ -235,7 +235,7 @@ "update": "event.shiftKey" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "false" } ] @@ -386,7 +386,7 @@ "force": true }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" } ] @@ -404,7 +404,7 @@ "update": "event.shiftKey" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "false" } ] @@ -555,7 +555,7 @@ "force": true }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" } ] @@ -573,7 +573,7 @@ "update": "event.shiftKey" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "false" } ] diff --git a/examples/compiled/interactive_line_brush_cursor.vg.json b/examples/compiled/interactive_line_brush_cursor.vg.json index 8d33834b10..d49201148c 100644 --- a/examples/compiled/interactive_line_brush_cursor.vg.json +++ b/examples/compiled/interactive_line_brush_cursor.vg.json @@ -65,7 +65,7 @@ "update": "[scale(\"x\", brush_date[0]), scale(\"x\", brush_date[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/interactive_line_hover.vg.json b/examples/compiled/interactive_line_hover.vg.json index 12e3b6b1b4..a62bc5e9b2 100644 --- a/examples/compiled/interactive_line_hover.vg.json +++ b/examples/compiled/interactive_line_hover.vg.json @@ -61,7 +61,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"layer_0\", fields: hover_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"symbol\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, {"name": "hover_tuple_fields", "value": [{"type": "E", "field": "symbol"}]}, @@ -73,7 +73,7 @@ "events": [{"source": "scope", "type": "mouseover"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_multi_line_label.vg.json b/examples/compiled/interactive_multi_line_label.vg.json index 2f6f4023dd..370aa3511e 100644 --- a/examples/compiled/interactive_multi_line_label.vg.json +++ b/examples/compiled/interactive_multi_line_label.vg.json @@ -83,7 +83,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"layer_0_layer_1\", fields: label_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"date\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -104,7 +104,7 @@ ], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_multi_line_pivot_tooltip.vg.json b/examples/compiled/interactive_multi_line_pivot_tooltip.vg.json index a6418451ef..979c3cda96 100644 --- a/examples/compiled/interactive_multi_line_pivot_tooltip.vg.json +++ b/examples/compiled/interactive_multi_line_pivot_tooltip.vg.json @@ -67,7 +67,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"layer_1\", fields: hover_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"date\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "mouseout"}], "update": "null"} + {"events": [{"source": "view", "type": "mouseout"}], "update": "null"} ] }, {"name": "hover_tuple_fields", "value": [{"type": "E", "field": "date"}]}, @@ -85,7 +85,7 @@ ], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "mouseout"}], "update": "false"} + {"events": [{"source": "view", "type": "mouseout"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_multi_line_tooltip.vg.json b/examples/compiled/interactive_multi_line_tooltip.vg.json index 8daca29df1..b83c413de2 100644 --- a/examples/compiled/interactive_multi_line_tooltip.vg.json +++ b/examples/compiled/interactive_multi_line_tooltip.vg.json @@ -52,7 +52,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"layer_2\", fields: hover_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -67,7 +67,7 @@ "events": [{"source": "scope", "type": "mouseover"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_overview_detail.vg.json b/examples/compiled/interactive_overview_detail.vg.json index 857f2991ac..b10e571209 100644 --- a/examples/compiled/interactive_overview_detail.vg.json +++ b/examples/compiled/interactive_overview_detail.vg.json @@ -161,7 +161,7 @@ "update": "[scale(\"concat_1_x\", brush_date[0]), scale(\"concat_1_x\", brush_date[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/interactive_paintbrush.vg.json b/examples/compiled/interactive_paintbrush.vg.json index 3ed1aec0a6..da01c7effc 100644 --- a/examples/compiled/interactive_paintbrush.vg.json +++ b/examples/compiled/interactive_paintbrush.vg.json @@ -43,7 +43,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: paintbrush_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -60,7 +60,7 @@ ], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_paintbrush_color.vg.json b/examples/compiled/interactive_paintbrush_color.vg.json index 9b0fed25d2..044650e4b8 100644 --- a/examples/compiled/interactive_paintbrush_color.vg.json +++ b/examples/compiled/interactive_paintbrush_color.vg.json @@ -41,7 +41,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: paintbrush_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -56,7 +56,7 @@ "events": [{"source": "scope", "type": "mouseover"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_paintbrush_color_nearest.vg.json b/examples/compiled/interactive_paintbrush_color_nearest.vg.json index 365737953c..bfd9b6a7e9 100644 --- a/examples/compiled/interactive_paintbrush_color_nearest.vg.json +++ b/examples/compiled/interactive_paintbrush_color_nearest.vg.json @@ -43,7 +43,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: paintbrush_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -60,7 +60,7 @@ ], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_paintbrush_interval.vg.json b/examples/compiled/interactive_paintbrush_interval.vg.json index 2a07b7354a..27050b3ce1 100644 --- a/examples/compiled/interactive_paintbrush_interval.vg.json +++ b/examples/compiled/interactive_paintbrush_interval.vg.json @@ -69,7 +69,7 @@ "update": "[scale(\"x\", paintbrush_Horsepower[0]), scale(\"x\", paintbrush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -128,7 +128,7 @@ "update": "[scale(\"y\", paintbrush_Miles_per_Gallon[0]), scale(\"y\", paintbrush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/interactive_paintbrush_simple_all.vg.json b/examples/compiled/interactive_paintbrush_simple_all.vg.json index ab89c2b308..f93a4bc226 100644 --- a/examples/compiled/interactive_paintbrush_simple_all.vg.json +++ b/examples/compiled/interactive_paintbrush_simple_all.vg.json @@ -40,7 +40,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: paintbrush_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -55,7 +55,7 @@ "events": [{"source": "scope", "type": "mouseover"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_paintbrush_simple_none.vg.json b/examples/compiled/interactive_paintbrush_simple_none.vg.json index fc1fa56bdc..9861945575 100644 --- a/examples/compiled/interactive_paintbrush_simple_none.vg.json +++ b/examples/compiled/interactive_paintbrush_simple_none.vg.json @@ -40,7 +40,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: paintbrush_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -55,7 +55,7 @@ "events": [{"source": "scope", "type": "mouseover"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/interactive_panzoom_splom.vg.json b/examples/compiled/interactive_panzoom_splom.vg.json index 9733d930b8..b4d3aaaa81 100644 --- a/examples/compiled/interactive_panzoom_splom.vg.json +++ b/examples/compiled/interactive_panzoom_splom.vg.json @@ -131,7 +131,7 @@ "name": "grid_Miles_per_Gallon", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -149,7 +149,7 @@ "name": "grid_Horsepower", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -335,7 +335,7 @@ "name": "grid_Acceleration", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -353,7 +353,7 @@ "name": "grid_Horsepower", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -537,7 +537,7 @@ "name": "grid_Horsepower", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -718,7 +718,7 @@ "name": "grid_Miles_per_Gallon", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -736,7 +736,7 @@ "name": "grid_Acceleration", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -922,7 +922,7 @@ "name": "grid_Acceleration", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -1103,7 +1103,7 @@ "name": "grid_Horsepower", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -1121,7 +1121,7 @@ "name": "grid_Acceleration", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -1305,7 +1305,7 @@ "name": "grid_Miles_per_Gallon", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -1486,7 +1486,7 @@ "name": "grid_Acceleration", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -1504,7 +1504,7 @@ "name": "grid_Miles_per_Gallon", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -1690,7 +1690,7 @@ "name": "grid_Horsepower", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -1708,7 +1708,7 @@ "name": "grid_Miles_per_Gallon", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { diff --git a/examples/compiled/interactive_panzoom_vconcat_shared.vg.json b/examples/compiled/interactive_panzoom_vconcat_shared.vg.json index 450b14d1fd..1b0b71ce9e 100644 --- a/examples/compiled/interactive_panzoom_vconcat_shared.vg.json +++ b/examples/compiled/interactive_panzoom_vconcat_shared.vg.json @@ -60,7 +60,7 @@ "name": "region_Horsepower", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -78,7 +78,7 @@ "name": "region_Miles_per_Gallon", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { diff --git a/examples/compiled/interactive_seattle_weather.vg.json b/examples/compiled/interactive_seattle_weather.vg.json index 29b6692885..074f2f33e4 100644 --- a/examples/compiled/interactive_seattle_weather.vg.json +++ b/examples/compiled/interactive_seattle_weather.vg.json @@ -129,7 +129,7 @@ "update": "[scale(\"concat_0_x\", brush_monthdate_date[0]), scale(\"concat_0_x\", brush_monthdate_date[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -441,7 +441,7 @@ "force": true }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" } ] @@ -459,7 +459,7 @@ "update": "event.shiftKey" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "false" } ] diff --git a/examples/compiled/interactive_splom.vg.json b/examples/compiled/interactive_splom.vg.json index 5d71875301..ea2565fae9 100644 --- a/examples/compiled/interactive_splom.vg.json +++ b/examples/compiled/interactive_splom.vg.json @@ -171,7 +171,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -232,7 +232,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_y\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_y\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -375,7 +375,7 @@ "name": "grid_Miles_per_Gallon", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -393,7 +393,7 @@ "name": "grid_Horsepower", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -683,7 +683,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Horsepowercolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -744,7 +744,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Acceleration_y\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Acceleration_y\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -885,7 +885,7 @@ "name": "grid_Acceleration", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -903,7 +903,7 @@ "name": "grid_Horsepower", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -1191,7 +1191,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1326,7 +1326,7 @@ "name": "grid_Horsepower", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -1608,7 +1608,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1669,7 +1669,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_y\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_y\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1812,7 +1812,7 @@ "name": "grid_Miles_per_Gallon", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -1830,7 +1830,7 @@ "name": "grid_Acceleration", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -2120,7 +2120,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2257,7 +2257,7 @@ "name": "grid_Acceleration", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -2539,7 +2539,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Accelerationcolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2600,7 +2600,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Horsepower_y\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Horsepower_y\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2741,7 +2741,7 @@ "name": "grid_Horsepower", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -2759,7 +2759,7 @@ "name": "grid_Acceleration", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -3047,7 +3047,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -3186,7 +3186,7 @@ "name": "grid_Miles_per_Gallon", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -3468,7 +3468,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Miles_per_Galloncolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -3529,7 +3529,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Acceleration_y\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Acceleration_y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -3672,7 +3672,7 @@ "name": "grid_Acceleration", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -3690,7 +3690,7 @@ "name": "grid_Miles_per_Gallon", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -3980,7 +3980,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Miles_per_Galloncolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -4041,7 +4041,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Horsepower_y\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Horsepower_y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -4184,7 +4184,7 @@ "name": "grid_Horsepower", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -4202,7 +4202,7 @@ "name": "grid_Miles_per_Gallon", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { diff --git a/examples/compiled/interactive_stocks_nearest_index.vg.json b/examples/compiled/interactive_stocks_nearest_index.vg.json index 6a520b9c81..9456389300 100644 --- a/examples/compiled/interactive_stocks_nearest_index.vg.json +++ b/examples/compiled/interactive_stocks_nearest_index.vg.json @@ -63,7 +63,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"layer_1\", fields: index_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"date\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -84,7 +84,7 @@ ], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/isotype_grid.vg.json b/examples/compiled/isotype_grid.vg.json index dc59dcf81d..d55f788ff9 100644 --- a/examples/compiled/isotype_grid.vg.json +++ b/examples/compiled/isotype_grid.vg.json @@ -167,7 +167,7 @@ }, {"events": {"signal": "highlight_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -223,7 +223,7 @@ }, {"events": {"signal": "highlight_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_brush_timeunit.vg.json b/examples/compiled/selection_brush_timeunit.vg.json index 159366dbba..be5f7c6b25 100644 --- a/examples/compiled/selection_brush_timeunit.vg.json +++ b/examples/compiled/selection_brush_timeunit.vg.json @@ -123,7 +123,7 @@ "update": "[scale(\"concat_0_x\", brush_seconds_date[0]), scale(\"concat_0_x\", brush_seconds_date[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_clear_brush.vg.json b/examples/compiled/selection_clear_brush.vg.json index 08511d6181..ca4334a350 100644 --- a/examples/compiled/selection_clear_brush.vg.json +++ b/examples/compiled/selection_clear_brush.vg.json @@ -79,10 +79,7 @@ "events": {"signal": "brush_scale_trigger"}, "update": "[scale(\"x\", brush_Horsepower[0]), scale(\"x\", brush_Horsepower[1])]" }, - { - "events": [{"source": "scope", "type": "mouseup"}], - "update": "[0, 0]" - }, + {"events": [{"source": "view", "type": "mouseup"}], "update": "[0, 0]"}, { "events": {"signal": "brush_translate_delta"}, "update": "clampRange(panLinear(brush_translate_anchor.extent_x, brush_translate_delta.x / span(brush_translate_anchor.extent_x)), 0, width)" @@ -139,10 +136,7 @@ "events": {"signal": "brush_scale_trigger"}, "update": "[scale(\"y\", brush_Miles_per_Gallon[0]), scale(\"y\", brush_Miles_per_Gallon[1])]" }, - { - "events": [{"source": "scope", "type": "mouseup"}], - "update": "[0, 0]" - }, + {"events": [{"source": "view", "type": "mouseup"}], "update": "[0, 0]"}, { "events": {"signal": "brush_translate_delta"}, "update": "clampRange(panLinear(brush_translate_anchor.extent_y, brush_translate_delta.y / span(brush_translate_anchor.extent_y)), 0, height)" diff --git a/examples/compiled/selection_composition_and.vg.json b/examples/compiled/selection_composition_and.vg.json index d17b6fdf4c..b548fb415a 100644 --- a/examples/compiled/selection_composition_and.vg.json +++ b/examples/compiled/selection_composition_and.vg.json @@ -76,7 +76,7 @@ }, {"events": {"signal": "alex_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -133,7 +133,7 @@ }, {"events": {"signal": "alex_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -299,7 +299,7 @@ }, {"events": {"signal": "morgan_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -356,7 +356,7 @@ }, {"events": {"signal": "morgan_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_composition_or.vg.json b/examples/compiled/selection_composition_or.vg.json index 869939f467..0cd0e1c478 100644 --- a/examples/compiled/selection_composition_or.vg.json +++ b/examples/compiled/selection_composition_or.vg.json @@ -76,7 +76,7 @@ }, {"events": {"signal": "alex_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -133,7 +133,7 @@ }, {"events": {"signal": "alex_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -299,7 +299,7 @@ }, {"events": {"signal": "morgan_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -356,7 +356,7 @@ }, {"events": {"signal": "morgan_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_concat.vg.json b/examples/compiled/selection_concat.vg.json index 1bbc44eedc..90ed73fe31 100644 --- a/examples/compiled/selection_concat.vg.json +++ b/examples/compiled/selection_concat.vg.json @@ -98,7 +98,7 @@ "update": "[scale(\"concat_0_x\", brush_Miles_per_Gallon[0]), scale(\"concat_0_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -157,7 +157,7 @@ "update": "[scale(\"concat_0_y\", brush_Horsepower[0]), scale(\"concat_0_y\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -463,7 +463,7 @@ "name": "grid_Displacement", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -481,7 +481,7 @@ "name": "grid_Acceleration", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { diff --git a/examples/compiled/selection_filter.vg.json b/examples/compiled/selection_filter.vg.json index 8deeafcee3..72e865a58e 100644 --- a/examples/compiled/selection_filter.vg.json +++ b/examples/compiled/selection_filter.vg.json @@ -95,7 +95,7 @@ "update": "[scale(\"concat_0_x\", brush_Horsepower[0]), scale(\"concat_0_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -154,7 +154,7 @@ "update": "[scale(\"concat_0_y\", brush_Miles_per_Gallon[0]), scale(\"concat_0_y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_filter_composition.vg.json b/examples/compiled/selection_filter_composition.vg.json index 692cfd0de5..a29a824e81 100644 --- a/examples/compiled/selection_filter_composition.vg.json +++ b/examples/compiled/selection_filter_composition.vg.json @@ -95,7 +95,7 @@ "update": "[scale(\"concat_0_x\", brush_Horsepower[0]), scale(\"concat_0_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -154,7 +154,7 @@ "update": "[scale(\"concat_0_y\", brush_Miles_per_Gallon[0]), scale(\"concat_0_y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_heatmap.vg.json b/examples/compiled/selection_heatmap.vg.json index e12f02c043..779439b50c 100644 --- a/examples/compiled/selection_heatmap.vg.json +++ b/examples/compiled/selection_heatmap.vg.json @@ -58,7 +58,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: highlight_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -73,7 +73,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_insert.vg.json b/examples/compiled/selection_insert.vg.json index a9e94ece68..a869ac407a 100644 --- a/examples/compiled/selection_insert.vg.json +++ b/examples/compiled/selection_insert.vg.json @@ -40,7 +40,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: paintbrush_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { diff --git a/examples/compiled/selection_interval_mark_style.vg.json b/examples/compiled/selection_interval_mark_style.vg.json index cb429a3898..4382b9bfc6 100644 --- a/examples/compiled/selection_interval_mark_style.vg.json +++ b/examples/compiled/selection_interval_mark_style.vg.json @@ -76,7 +76,7 @@ }, {"events": {"signal": "alex_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -133,7 +133,7 @@ }, {"events": {"signal": "alex_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -299,7 +299,7 @@ }, {"events": {"signal": "morgan_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -356,7 +356,7 @@ }, {"events": {"signal": "morgan_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_layer_bar_month.vg.json b/examples/compiled/selection_layer_bar_month.vg.json index 6ee3b3c388..054cd6feb3 100644 --- a/examples/compiled/selection_layer_bar_month.vg.json +++ b/examples/compiled/selection_layer_bar_month.vg.json @@ -109,7 +109,7 @@ }, {"events": {"signal": "brush_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_multi_condition.vg.json b/examples/compiled/selection_multi_condition.vg.json index bcf541fd2b..8d056f29e5 100644 --- a/examples/compiled/selection_multi_condition.vg.json +++ b/examples/compiled/selection_multi_condition.vg.json @@ -75,7 +75,7 @@ "update": "[scale(\"x\", brush_Horsepower[0]), scale(\"x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -134,7 +134,7 @@ "update": "[scale(\"y\", brush_Miles_per_Gallon[0]), scale(\"y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -270,7 +270,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: hoverbrush_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -287,7 +287,7 @@ ], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_project_binned_interval.vg.json b/examples/compiled/selection_project_binned_interval.vg.json index 3d5c19fb72..debbef9160 100644 --- a/examples/compiled/selection_project_binned_interval.vg.json +++ b/examples/compiled/selection_project_binned_interval.vg.json @@ -124,7 +124,7 @@ "update": "[scale(\"x\", brush_Acceleration[0]), scale(\"x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_project_interval.vg.json b/examples/compiled/selection_project_interval.vg.json index 39ac051651..6b8e1ecc7f 100644 --- a/examples/compiled/selection_project_interval.vg.json +++ b/examples/compiled/selection_project_interval.vg.json @@ -68,7 +68,7 @@ }, {"events": {"signal": "pts_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -122,7 +122,7 @@ }, {"events": {"signal": "pts_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_project_interval_x.vg.json b/examples/compiled/selection_project_interval_x.vg.json index 0bb5a16889..be22630490 100644 --- a/examples/compiled/selection_project_interval_x.vg.json +++ b/examples/compiled/selection_project_interval_x.vg.json @@ -68,7 +68,7 @@ }, {"events": {"signal": "pts_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_project_interval_x_y.vg.json b/examples/compiled/selection_project_interval_x_y.vg.json index 39ac051651..6b8e1ecc7f 100644 --- a/examples/compiled/selection_project_interval_x_y.vg.json +++ b/examples/compiled/selection_project_interval_x_y.vg.json @@ -68,7 +68,7 @@ }, {"events": {"signal": "pts_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -122,7 +122,7 @@ }, {"events": {"signal": "pts_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_project_interval_y.vg.json b/examples/compiled/selection_project_interval_y.vg.json index 8a9c70d9a3..3d8bd25ad2 100644 --- a/examples/compiled/selection_project_interval_y.vg.json +++ b/examples/compiled/selection_project_interval_y.vg.json @@ -68,7 +68,7 @@ }, {"events": {"signal": "pts_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_project_multi.vg.json b/examples/compiled/selection_project_multi.vg.json index 49224b8271..e83b369963 100644 --- a/examples/compiled/selection_project_multi.vg.json +++ b/examples/compiled/selection_project_multi.vg.json @@ -40,7 +40,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, {"name": "pts_tuple_fields", "value": [{"type": "E", "field": "_vgsid_"}]}, @@ -52,7 +52,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_project_multi_cylinders.vg.json b/examples/compiled/selection_project_multi_cylinders.vg.json index 39ee2b2cc7..5cb4fc9e35 100644 --- a/examples/compiled/selection_project_multi_cylinders.vg.json +++ b/examples/compiled/selection_project_multi_cylinders.vg.json @@ -39,7 +39,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"Cylinders\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -54,7 +54,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_project_multi_cylinders_origin.vg.json b/examples/compiled/selection_project_multi_cylinders_origin.vg.json index d9b609af66..02855f8e3f 100644 --- a/examples/compiled/selection_project_multi_cylinders_origin.vg.json +++ b/examples/compiled/selection_project_multi_cylinders_origin.vg.json @@ -39,7 +39,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"Cylinders\"], (item().isVoronoi ? datum.datum : datum)[\"Origin\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -57,7 +57,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_project_multi_origin.vg.json b/examples/compiled/selection_project_multi_origin.vg.json index ebfe5454dc..9db1fd6229 100644 --- a/examples/compiled/selection_project_multi_origin.vg.json +++ b/examples/compiled/selection_project_multi_origin.vg.json @@ -39,7 +39,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"Origin\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, {"name": "pts_tuple_fields", "value": [{"type": "E", "field": "Origin"}]}, @@ -51,7 +51,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_project_single.vg.json b/examples/compiled/selection_project_single.vg.json index 49224b8271..e83b369963 100644 --- a/examples/compiled/selection_project_single.vg.json +++ b/examples/compiled/selection_project_single.vg.json @@ -40,7 +40,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, {"name": "pts_tuple_fields", "value": [{"type": "E", "field": "_vgsid_"}]}, @@ -52,7 +52,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_project_single_cylinders.vg.json b/examples/compiled/selection_project_single_cylinders.vg.json index 39ee2b2cc7..5cb4fc9e35 100644 --- a/examples/compiled/selection_project_single_cylinders.vg.json +++ b/examples/compiled/selection_project_single_cylinders.vg.json @@ -39,7 +39,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"Cylinders\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -54,7 +54,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_project_single_cylinders_origin.vg.json b/examples/compiled/selection_project_single_cylinders_origin.vg.json index d9b609af66..02855f8e3f 100644 --- a/examples/compiled/selection_project_single_cylinders_origin.vg.json +++ b/examples/compiled/selection_project_single_cylinders_origin.vg.json @@ -39,7 +39,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"Cylinders\"], (item().isVoronoi ? datum.datum : datum)[\"Origin\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -57,7 +57,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_project_single_origin.vg.json b/examples/compiled/selection_project_single_origin.vg.json index ebfe5454dc..9db1fd6229 100644 --- a/examples/compiled/selection_project_single_origin.vg.json +++ b/examples/compiled/selection_project_single_origin.vg.json @@ -39,7 +39,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"Origin\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, {"name": "pts_tuple_fields", "value": [{"type": "E", "field": "Origin"}]}, @@ -51,7 +51,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_resolution_global.vg.json b/examples/compiled/selection_resolution_global.vg.json index 545730e1c2..8055a64e17 100644 --- a/examples/compiled/selection_resolution_global.vg.json +++ b/examples/compiled/selection_resolution_global.vg.json @@ -131,7 +131,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -190,7 +190,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_y\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_y\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -545,7 +545,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Horsepowercolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -604,7 +604,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Acceleration_y\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Acceleration_y\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -957,7 +957,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1301,7 +1301,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1360,7 +1360,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_y\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_y\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1715,7 +1715,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2061,7 +2061,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Accelerationcolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2120,7 +2120,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Horsepower_y\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Horsepower_y\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2473,7 +2473,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2821,7 +2821,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Miles_per_Galloncolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2880,7 +2880,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Acceleration_y\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Acceleration_y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -3235,7 +3235,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Miles_per_Galloncolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -3294,7 +3294,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Horsepower_y\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Horsepower_y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_resolution_intersect.vg.json b/examples/compiled/selection_resolution_intersect.vg.json index 7b72180f8f..a2b48599e8 100644 --- a/examples/compiled/selection_resolution_intersect.vg.json +++ b/examples/compiled/selection_resolution_intersect.vg.json @@ -131,7 +131,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -190,7 +190,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_y\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_y\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -497,7 +497,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Horsepowercolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -556,7 +556,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Acceleration_y\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Acceleration_y\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -861,7 +861,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1157,7 +1157,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1216,7 +1216,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_y\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_y\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1523,7 +1523,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1821,7 +1821,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Accelerationcolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1880,7 +1880,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Horsepower_y\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Horsepower_y\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2185,7 +2185,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2485,7 +2485,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Miles_per_Galloncolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2544,7 +2544,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Acceleration_y\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Acceleration_y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2851,7 +2851,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Miles_per_Galloncolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2910,7 +2910,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Horsepower_y\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Horsepower_y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_resolution_union.vg.json b/examples/compiled/selection_resolution_union.vg.json index 4d3bc82e69..7c7e1e152f 100644 --- a/examples/compiled/selection_resolution_union.vg.json +++ b/examples/compiled/selection_resolution_union.vg.json @@ -131,7 +131,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -190,7 +190,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_y\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Miles_per_Gallon_y\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -497,7 +497,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Horsepowercolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -556,7 +556,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Acceleration_y\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Acceleration_y\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -861,7 +861,7 @@ "update": "[scale(\"child__row_Horsepowercolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Horsepowercolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1157,7 +1157,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1216,7 +1216,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_y\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Miles_per_Gallon_y\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1523,7 +1523,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1821,7 +1821,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Accelerationcolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -1880,7 +1880,7 @@ "update": "[scale(\"child__row_Accelerationcolumn_Horsepower_y\", brush_Acceleration[0]), scale(\"child__row_Accelerationcolumn_Horsepower_y\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2185,7 +2185,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Miles_per_Gallon_x\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2485,7 +2485,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Acceleration_x\", brush_Acceleration[0]), scale(\"child__row_Miles_per_Galloncolumn_Acceleration_x\", brush_Acceleration[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2544,7 +2544,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Acceleration_y\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Acceleration_y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2851,7 +2851,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Horsepower_x\", brush_Horsepower[0]), scale(\"child__row_Miles_per_Galloncolumn_Horsepower_x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -2910,7 +2910,7 @@ "update": "[scale(\"child__row_Miles_per_Galloncolumn_Horsepower_y\", brush_Miles_per_Gallon[0]), scale(\"child__row_Miles_per_Galloncolumn_Horsepower_y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_toggle_altKey.vg.json b/examples/compiled/selection_toggle_altKey.vg.json index 33f67e9c72..5fc253e9d1 100644 --- a/examples/compiled/selection_toggle_altKey.vg.json +++ b/examples/compiled/selection_toggle_altKey.vg.json @@ -40,7 +40,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: paintbrush_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -55,7 +55,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.altKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_toggle_altKey_shiftKey.vg.json b/examples/compiled/selection_toggle_altKey_shiftKey.vg.json index f3525f7c51..ff555b241b 100644 --- a/examples/compiled/selection_toggle_altKey_shiftKey.vg.json +++ b/examples/compiled/selection_toggle_altKey_shiftKey.vg.json @@ -40,7 +40,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: paintbrush_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -55,7 +55,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.altKey && event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_toggle_shiftKey.vg.json b/examples/compiled/selection_toggle_shiftKey.vg.json index 18fe8a7c71..ef3a6d3d81 100644 --- a/examples/compiled/selection_toggle_shiftKey.vg.json +++ b/examples/compiled/selection_toggle_shiftKey.vg.json @@ -40,7 +40,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: paintbrush_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, { @@ -55,7 +55,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_translate_brush_drag.vg.json b/examples/compiled/selection_translate_brush_drag.vg.json index b5706f37b1..4fefb62dbe 100644 --- a/examples/compiled/selection_translate_brush_drag.vg.json +++ b/examples/compiled/selection_translate_brush_drag.vg.json @@ -68,7 +68,7 @@ "update": "[scale(\"x\", brush_Horsepower[0]), scale(\"x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -127,7 +127,7 @@ "update": "[scale(\"y\", brush_Miles_per_Gallon[0]), scale(\"y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_translate_brush_shift-drag.vg.json b/examples/compiled/selection_translate_brush_shift-drag.vg.json index a4d72d87a1..7d444eb51b 100644 --- a/examples/compiled/selection_translate_brush_shift-drag.vg.json +++ b/examples/compiled/selection_translate_brush_shift-drag.vg.json @@ -68,7 +68,7 @@ "update": "[scale(\"x\", brush_Horsepower[0]), scale(\"x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -127,7 +127,7 @@ "update": "[scale(\"y\", brush_Miles_per_Gallon[0]), scale(\"y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_translate_scatterplot_drag.vg.json b/examples/compiled/selection_translate_scatterplot_drag.vg.json index eb9696ea10..937af83e46 100644 --- a/examples/compiled/selection_translate_scatterplot_drag.vg.json +++ b/examples/compiled/selection_translate_scatterplot_drag.vg.json @@ -31,7 +31,7 @@ { "name": "grid_Horsepower", "on": [ - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"}, + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"}, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / width)" @@ -45,7 +45,7 @@ { "name": "grid_Miles_per_Gallon", "on": [ - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"}, + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"}, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_y, grid_translate_delta.y / height)" diff --git a/examples/compiled/selection_translate_scatterplot_shift-drag.vg.json b/examples/compiled/selection_translate_scatterplot_shift-drag.vg.json index 88d04e86d3..bc828b4457 100644 --- a/examples/compiled/selection_translate_scatterplot_shift-drag.vg.json +++ b/examples/compiled/selection_translate_scatterplot_shift-drag.vg.json @@ -31,7 +31,7 @@ { "name": "grid_Horsepower", "on": [ - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"}, + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"}, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / width)" @@ -45,7 +45,7 @@ { "name": "grid_Miles_per_Gallon", "on": [ - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"}, + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"}, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_y, grid_translate_delta.y / height)" diff --git a/examples/compiled/selection_type_interval.vg.json b/examples/compiled/selection_type_interval.vg.json index 39ac051651..6b8e1ecc7f 100644 --- a/examples/compiled/selection_type_interval.vg.json +++ b/examples/compiled/selection_type_interval.vg.json @@ -68,7 +68,7 @@ }, {"events": {"signal": "pts_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -122,7 +122,7 @@ }, {"events": {"signal": "pts_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_type_interval_invert.vg.json b/examples/compiled/selection_type_interval_invert.vg.json index 80f4f7f964..91d2226703 100644 --- a/examples/compiled/selection_type_interval_invert.vg.json +++ b/examples/compiled/selection_type_interval_invert.vg.json @@ -68,7 +68,7 @@ }, {"events": {"signal": "pts_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -122,7 +122,7 @@ }, {"events": {"signal": "pts_scale_trigger"}, "update": "[0, 0]"}, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_type_multi.vg.json b/examples/compiled/selection_type_multi.vg.json index a7b7d358fa..e9445f108d 100644 --- a/examples/compiled/selection_type_multi.vg.json +++ b/examples/compiled/selection_type_multi.vg.json @@ -49,7 +49,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, {"name": "pts_tuple_fields", "value": [{"type": "E", "field": "_vgsid_"}]}, @@ -61,7 +61,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_type_single.vg.json b/examples/compiled/selection_type_single.vg.json index a7b7d358fa..e9445f108d 100644 --- a/examples/compiled/selection_type_single.vg.json +++ b/examples/compiled/selection_type_single.vg.json @@ -49,7 +49,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, {"name": "pts_tuple_fields", "value": [{"type": "E", "field": "_vgsid_"}]}, @@ -61,7 +61,7 @@ "events": [{"source": "scope", "type": "click"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_type_single_dblclick.vg.json b/examples/compiled/selection_type_single_dblclick.vg.json index a54abd7a11..d8383a2804 100644 --- a/examples/compiled/selection_type_single_dblclick.vg.json +++ b/examples/compiled/selection_type_single_dblclick.vg.json @@ -49,7 +49,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, {"name": "pts_tuple_fields", "value": [{"type": "E", "field": "_vgsid_"}]}, @@ -61,7 +61,7 @@ "events": [{"source": "scope", "type": "dblclick"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_type_single_mouseover.vg.json b/examples/compiled/selection_type_single_mouseover.vg.json index 3b10622859..b7b9d3f198 100644 --- a/examples/compiled/selection_type_single_mouseover.vg.json +++ b/examples/compiled/selection_type_single_mouseover.vg.json @@ -49,7 +49,7 @@ "update": "datum && item().mark.marktype !== 'group' ? {unit: \"\", fields: pts_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)[\"_vgsid_\"]]} : null", "force": true }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"} ] }, {"name": "pts_tuple_fields", "value": [{"type": "E", "field": "_vgsid_"}]}, @@ -61,7 +61,7 @@ "events": [{"source": "scope", "type": "mouseover"}], "update": "event.shiftKey" }, - {"events": [{"source": "scope", "type": "dblclick"}], "update": "false"} + {"events": [{"source": "view", "type": "dblclick"}], "update": "false"} ] }, { diff --git a/examples/compiled/selection_zoom_brush_shift-wheel.vg.json b/examples/compiled/selection_zoom_brush_shift-wheel.vg.json index d8cc75a00e..de85a398ad 100644 --- a/examples/compiled/selection_zoom_brush_shift-wheel.vg.json +++ b/examples/compiled/selection_zoom_brush_shift-wheel.vg.json @@ -68,7 +68,7 @@ "update": "[scale(\"x\", brush_Horsepower[0]), scale(\"x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -127,7 +127,7 @@ "update": "[scale(\"y\", brush_Miles_per_Gallon[0]), scale(\"y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_zoom_brush_wheel.vg.json b/examples/compiled/selection_zoom_brush_wheel.vg.json index b5706f37b1..4fefb62dbe 100644 --- a/examples/compiled/selection_zoom_brush_wheel.vg.json +++ b/examples/compiled/selection_zoom_brush_wheel.vg.json @@ -68,7 +68,7 @@ "update": "[scale(\"x\", brush_Horsepower[0]), scale(\"x\", brush_Horsepower[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -127,7 +127,7 @@ "update": "[scale(\"y\", brush_Miles_per_Gallon[0]), scale(\"y\", brush_Miles_per_Gallon[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { diff --git a/examples/compiled/selection_zoom_scatterplot_shift-wheel.vg.json b/examples/compiled/selection_zoom_scatterplot_shift-wheel.vg.json index 672b1e50fb..eb12e7eb55 100644 --- a/examples/compiled/selection_zoom_scatterplot_shift-wheel.vg.json +++ b/examples/compiled/selection_zoom_scatterplot_shift-wheel.vg.json @@ -31,7 +31,7 @@ { "name": "grid_Horsepower", "on": [ - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"}, + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"}, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / width)" @@ -45,7 +45,7 @@ { "name": "grid_Miles_per_Gallon", "on": [ - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"}, + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"}, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_y, grid_translate_delta.y / height)" diff --git a/examples/compiled/selection_zoom_scatterplot_wheel.vg.json b/examples/compiled/selection_zoom_scatterplot_wheel.vg.json index eb9696ea10..937af83e46 100644 --- a/examples/compiled/selection_zoom_scatterplot_wheel.vg.json +++ b/examples/compiled/selection_zoom_scatterplot_wheel.vg.json @@ -31,7 +31,7 @@ { "name": "grid_Horsepower", "on": [ - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"}, + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"}, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_x, -grid_translate_delta.x / width)" @@ -45,7 +45,7 @@ { "name": "grid_Miles_per_Gallon", "on": [ - {"events": [{"source": "scope", "type": "dblclick"}], "update": "null"}, + {"events": [{"source": "view", "type": "dblclick"}], "update": "null"}, { "events": {"signal": "grid_translate_delta"}, "update": "panLinear(grid_translate_anchor.extent_y, grid_translate_delta.y / height)" diff --git a/examples/compiled/trellis_selections.vg.json b/examples/compiled/trellis_selections.vg.json index 19677b166f..6fbaf3c282 100644 --- a/examples/compiled/trellis_selections.vg.json +++ b/examples/compiled/trellis_selections.vg.json @@ -193,7 +193,7 @@ "update": "[scale(\"x\", brush_X[0]), scale(\"x\", brush_X[1])]" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "[0, 0]" }, { @@ -325,7 +325,7 @@ "name": "grid_X", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { @@ -343,7 +343,7 @@ "name": "grid_Y", "on": [ { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" }, { diff --git a/examples/compiled/vconcat_flatten.vg.json b/examples/compiled/vconcat_flatten.vg.json index 3b105fedaa..3903968f11 100644 --- a/examples/compiled/vconcat_flatten.vg.json +++ b/examples/compiled/vconcat_flatten.vg.json @@ -111,7 +111,7 @@ "force": true }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "null" } ] @@ -126,7 +126,7 @@ "update": "event.shiftKey" }, { - "events": [{"source": "scope", "type": "dblclick"}], + "events": [{"source": "view", "type": "dblclick"}], "update": "false" } ] diff --git a/src/compile/selection/clear.ts b/src/compile/selection/clear.ts index 19df7957f0..8d0101cd8c 100644 --- a/src/compile/selection/clear.ts +++ b/src/compile/selection/clear.ts @@ -14,7 +14,7 @@ const clear: SelectionCompiler = { parse: (model, selCmpt) => { if (selCmpt.clear) { - selCmpt.clear = isString(selCmpt.clear) ? parseSelector(selCmpt.clear, 'scope') : selCmpt.clear; + selCmpt.clear = isString(selCmpt.clear) ? parseSelector(selCmpt.clear, 'view') : selCmpt.clear; } }, diff --git a/test/compile/selection/clear.test.ts b/test/compile/selection/clear.test.ts index 669ed074c2..a0c9d2292a 100644 --- a/test/compile/selection/clear.test.ts +++ b/test/compile/selection/clear.test.ts @@ -64,7 +64,7 @@ describe('Clear selection transform, point types', () => { 'datum && item().mark.marktype !== \'group\' ? {unit: "", fields: one_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)["_vgsid_"]]} : null', force: true }, - {events: parseSelector('dblclick', 'scope'), update: 'null'} + {events: parseSelector('dblclick', 'view'), update: 'null'} ] } ]); @@ -81,7 +81,7 @@ describe('Clear selection transform, point types', () => { 'datum && item().mark.marktype !== \'group\' ? {unit: "", fields: three_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)["_vgsid_"]]} : null', force: true }, - {events: parseSelector('mouseout', 'scope'), update: 'null'} + {events: parseSelector('mouseout', 'view'), update: 'null'} ] } ]); @@ -98,7 +98,7 @@ describe('Clear selection transform, point types', () => { 'datum && item().mark.marktype !== \'group\' ? {unit: "", fields: four_tuple_fields, values: [(item().isVoronoi ? datum.datum : datum)["_vgsid_"]]} : null', force: true }, - {events: parseSelector('mouseout', 'scope'), update: 'null'} + {events: parseSelector('mouseout', 'view'), update: 'null'} ] } ]); @@ -122,7 +122,7 @@ describe('Clear selection transform, point types', () => { { name: 'eight_Year', value: null, - on: [{events: parseSelector('click', 'scope'), update: 'null'}], + on: [{events: parseSelector('click', 'view'), update: 'null'}], bind: {input: 'range', min: 1970, max: 1980, step: 1} } ]) @@ -172,7 +172,7 @@ describe('Clear selection transform, interval type', () => { name: 'one_Horsepower', on: [ { - events: parseSelector('dblclick', 'scope'), + events: parseSelector('dblclick', 'view'), update: 'null' } ] @@ -181,7 +181,7 @@ describe('Clear selection transform, interval type', () => { name: 'one_Miles_per_Gallon', on: [ { - events: parseSelector('dblclick', 'scope'), + events: parseSelector('dblclick', 'view'), update: 'null' } ] @@ -212,7 +212,7 @@ describe('Clear selection transform, interval type', () => { update: '[scale("x", two_Horsepower[0]), scale("x", two_Horsepower[1])]' }, { - events: parseSelector('dblclick', 'scope'), + events: parseSelector('dblclick', 'view'), update: '[0, 0]' } ] @@ -234,7 +234,7 @@ describe('Clear selection transform, interval type', () => { update: '[scale("y", two_Miles_per_Gallon[0]), scale("y", two_Miles_per_Gallon[1])]' }, { - events: parseSelector('dblclick', 'scope'), + events: parseSelector('dblclick', 'view'), update: '[0, 0]' } ] diff --git a/test/compile/selection/inputs.test.ts b/test/compile/selection/inputs.test.ts index bddbefb01c..e1905c2802 100644 --- a/test/compile/selection/inputs.test.ts +++ b/test/compile/selection/inputs.test.ts @@ -295,7 +295,7 @@ describe('Inputs Selection Transform', () => { events: [{source: 'scope', type: 'click'}], update: 'datum && item().mark.marktype !== \'group\' ? datum["_vgsid_"] : null' }, - {events: parseSelector('dblclick', 'scope'), update: 'null'} + {events: parseSelector('dblclick', 'view'), update: 'null'} ], bind: {input: 'range', min: 0, max: 10, step: 1} } diff --git a/test/compile/selection/legends.test.ts b/test/compile/selection/legends.test.ts index 8be23b5b02..61176ff422 100644 --- a/test/compile/selection/legends.test.ts +++ b/test/compile/selection/legends.test.ts @@ -395,7 +395,7 @@ describe('Interactive Legends', () => { { events: [ { - source: 'scope', + source: 'view', type: 'dblclick' } ],