@aeristerminal/aeris-charts 0.14.3 → 0.14.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aeris_charts.css +12 -12
- package/dist/aeris_charts_wasm_bg.wasm +0 -0
- package/dist/builtin_plugins.d.ts +1 -1
- package/dist/gestures.d.ts +4 -1
- package/dist/impl.d.ts +24 -1
- package/dist/index.js +6 -6
- package/dist/types.d.ts +89 -2
- package/package.json +1 -1
package/dist/aeris_charts.css
CHANGED
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
--icon-active: #0a0a0a;
|
|
59
59
|
|
|
60
60
|
/* Status — gains / losses, success / failure. Shared with the main platform. */
|
|
61
|
-
--positive: #
|
|
62
|
-
--positive-subtle: #
|
|
63
|
-
--negative: #
|
|
64
|
-
--negative-subtle: #
|
|
61
|
+
--positive: #3fb950;
|
|
62
|
+
--positive-subtle: #e8f7ea;
|
|
63
|
+
--negative: #f85149;
|
|
64
|
+
--negative-subtle: #fee1e0;
|
|
65
65
|
--warning: #ff6900;
|
|
66
66
|
--warning-subtle: #ffedd4;
|
|
67
67
|
--indigo: #615fff;
|
|
@@ -137,8 +137,8 @@
|
|
|
137
137
|
--bullish: var(--positive);
|
|
138
138
|
--bearish: var(--negative);
|
|
139
139
|
/* Big-trade bubble fills; the bubble outline uses bullish / bearish. */
|
|
140
|
-
--buy-bubble: color-mix(in srgb,
|
|
141
|
-
--sell-bubble: color-mix(in srgb,
|
|
140
|
+
--buy-bubble: color-mix(in srgb, var(--positive) 35%, transparent);
|
|
141
|
+
--sell-bubble: color-mix(in srgb, var(--negative) 35%, transparent);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
.dark,
|
|
@@ -180,10 +180,10 @@
|
|
|
180
180
|
--icon-active: #fafafa;
|
|
181
181
|
|
|
182
182
|
/* Status — gains / losses, success / failure. Shared with the main platform. */
|
|
183
|
-
--positive: #
|
|
184
|
-
--positive-subtle: #
|
|
185
|
-
--negative: #
|
|
186
|
-
--negative-subtle: #
|
|
183
|
+
--positive: #98c379;
|
|
184
|
+
--positive-subtle: #3c4933;
|
|
185
|
+
--negative: #e06c75;
|
|
186
|
+
--negative-subtle: #533133;
|
|
187
187
|
--warning: #ff6900;
|
|
188
188
|
--warning-subtle: #7e2a0c;
|
|
189
189
|
--indigo: #615fff;
|
|
@@ -252,8 +252,8 @@
|
|
|
252
252
|
--bullish: var(--positive);
|
|
253
253
|
--bearish: var(--negative);
|
|
254
254
|
/* Big-trade bubble fills; the bubble outline uses bullish / bearish. */
|
|
255
|
-
--buy-bubble: color-mix(in srgb,
|
|
256
|
-
--sell-bubble: color-mix(in srgb,
|
|
255
|
+
--buy-bubble: color-mix(in srgb, var(--positive) 35%, transparent);
|
|
256
|
+
--sell-bubble: color-mix(in srgb, var(--negative) 35%, transparent);
|
|
257
257
|
}
|
|
258
258
|
*,
|
|
259
259
|
*::before,
|
|
Binary file
|
|
@@ -40,7 +40,7 @@ export interface series_markers_handle {
|
|
|
40
40
|
* @example
|
|
41
41
|
* ```js
|
|
42
42
|
* const markers = create_series_markers(series, [
|
|
43
|
-
* { time: 1556880900, position: "aboveBar", shape: "arrowDown", color: "#
|
|
43
|
+
* { time: 1556880900, position: "aboveBar", shape: "arrowDown", color: "#e06c75", text: "SELL" },
|
|
44
44
|
* ]);
|
|
45
45
|
* markers.set_markers([]); // remove all markers
|
|
46
46
|
* markers.detach();
|
package/dist/gestures.d.ts
CHANGED
|
@@ -2,4 +2,7 @@
|
|
|
2
2
|
import type { chart_impl } from "./impl.js";
|
|
3
3
|
/** One pointer ABI shared by DOM and worker hosts: device | modifiers | options. */
|
|
4
4
|
export declare function controller_pointer_flags(device: number, modifiers: number, options: number): number;
|
|
5
|
-
export declare function install_gestures(chart: chart_impl):
|
|
5
|
+
export declare function install_gestures(chart: chart_impl): {
|
|
6
|
+
detach: () => void;
|
|
7
|
+
sync: () => void;
|
|
8
|
+
};
|
package/dist/impl.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { series_primitive, series_primitive_handle } from "./primitives.js"
|
|
|
7
7
|
import type { canvas_primitive, canvas_primitive_handle } from "./canvas_plugins.js";
|
|
8
8
|
import type { custom_series_pane_view } from "./custom_series.js";
|
|
9
9
|
import { type accessibility_handle } from "./accessibility.js";
|
|
10
|
-
import type { alert_api, crosshair_action_request_handler, any_series_options, backend_status, bars_info, chart_api, chart_context_handler, chart_options, chart_state, chart_value_snapshot, comparison_legend_entry, data_changed_handler, dbl_click_handler, deep_partial, drawing_api, drawing_created_handler, drawing_kind, drawing_options, depth_event_columns, depth_event_layer_options, depth_heatmap_options, depth_ladder_row, depth_options, depth_profile_options, depth_snapshot_columns, depth_study_snapshot, depth_update_columns, drawing_point, drawing_tool_change_handler, drawing_interval, drawing_property_schema, drawing_kind_options, drawing_template, builtin_drawing_icon, kst_periods, study_calendar_policy, previous_period, frame_stats, footprint_series_api, footprint_series_options, footprint_trade, footprint_trade_columns, general_accessibility_snapshot, general_axis_api, general_axis_options, general_brush_range, general_brush_snapshot, general_legend_snapshot, general_pane_composition, general_pane_composition_result, general_pane_options, general_reference_api, general_reference_options, general_series_api, general_series_hit, general_series_kind, general_series_options, general_shared_tooltip_snapshot, general_tooltip_snapshot, general_update_options, general_xy_row, layout_hit, layout_input, layout_series_api, layout_series_kind, layout_series_options, box_plot_row, bubble_columns, bubble_row, category_box_columns, category_error_columns, category_heatmap_columns, category_range_columns, category_xy_columns, numeric_error_columns, numeric_heatmap_columns, numeric_range_columns, numeric_xy_columns, error_bar_row, heatmap_grid_row, histogram_columns, histogram_row, range_area_row, temporal_error_columns, temporal_heatmap_columns, temporal_range_columns, temporal_xy_columns, ingestion_diagnostics, handle_scale_options, handle_scroll_options, indicator_info, indicator_input_source, indicator_kind, indicator_output_style, indicator_schema, kinetic_scroll_options, pivot_kind, vwap_reset, last_value_data, localization_options, logical_range, mismatch_direction, mouse_event_handler, ohlc_columns, ohlc_data, options_change_handler, pane_api, price_line_api, price_line_options, persistence_restore_result, price_scale_api, price_scale_create_options, price_scale_info, ring_source_layout, series_api, series_change_handler, series_data, series_kind, series_marker, series_marker_options, series_options, size_change_handler, time, replay_clock_stats, replay_seek_stats, resample_boundary, resample_options, resampled_bar, study_annotations, synthetic_bar_options, trade_stream_stats, profile_source, profile_request, profile_snapshot, naked_profile_level, tpo_request, tpo_snapshot, tpo_presentation_options, periodic_profile_presentation_request, periodic_profile_presentation_options, anchored_vwap_point, profile_drawing_options, profile_drawing_snapshot, time_and_sales_options, time_and_sales_row, time_scale_api, tracking_mode_options, trading_api, trading_hit, chart_sync_event, crosshair_sync_position, trading_intent, visible_logical_range_handler, visible_time_range_handler, volume_profile_indicator_api, volume_profile_indicator_options, big_trades_api, big_trades_options, auction_marker_options, auction_markers_api, custom_study_definition, custom_study_fault_event, custom_study_binding_options } from "./types.js";
|
|
10
|
+
import type { alert_api, crosshair_action_request_handler, any_series_options, backend_status, bars_info, chart_api, chart_context_handler, chart_options, chart_state, chart_value_snapshot, comparison_legend_entry, data_changed_handler, dbl_click_handler, deep_partial, drawing_api, drawing_created_handler, drawing_kind, drawing_options, depth_event_columns, depth_event_layer_options, depth_heatmap_options, depth_ladder_row, depth_options, depth_profile_options, depth_snapshot_columns, depth_study_snapshot, depth_update_columns, drawing_point, drawing_tool_change_handler, drawing_interval, drawing_property_schema, drawing_kind_options, drawing_template, builtin_drawing_icon, kst_periods, study_calendar_policy, previous_period, frame_stats, footprint_series_api, footprint_series_options, footprint_trade, footprint_trade_columns, general_accessibility_snapshot, general_axis_api, general_axis_options, general_brush_range, general_brush_snapshot, general_legend_snapshot, general_pane_composition, general_pane_composition_result, general_pane_options, general_reference_api, general_reference_options, general_series_api, general_series_hit, general_series_kind, general_series_options, general_shared_tooltip_snapshot, general_tooltip_snapshot, general_update_options, general_xy_row, layout_hit, layout_input, layout_series_api, layout_series_kind, layout_series_options, box_plot_row, bubble_columns, bubble_row, category_box_columns, category_error_columns, category_heatmap_columns, category_range_columns, category_xy_columns, numeric_error_columns, numeric_heatmap_columns, numeric_range_columns, numeric_xy_columns, error_bar_row, heatmap_grid_row, histogram_columns, histogram_row, range_area_row, temporal_error_columns, temporal_heatmap_columns, temporal_range_columns, temporal_xy_columns, ingestion_diagnostics, handle_scale_options, handle_scroll_options, indicator_info, indicator_input_source, indicator_kind, indicator_output_style, indicator_schema, kinetic_scroll_options, pivot_kind, vwap_reset, last_value_data, localization_options, logical_range, mismatch_direction, mouse_event_handler, ohlc_columns, ohlc_data, options_change_handler, pane_api, price_line_api, price_line_options, persistence_restore_result, price_scale_api, price_scale_create_options, price_scale_info, ring_source_layout, series_api, series_change_handler, series_data, series_kind, series_marker, series_marker_options, series_options, size_change_handler, time, replay_change_handler, replay_clock_stats, replay_seek_stats, replay_state, replay_step, resample_boundary, resample_options, resampled_bar, study_annotations, synthetic_bar_options, trade_stream_stats, profile_source, profile_request, profile_snapshot, naked_profile_level, tpo_request, tpo_snapshot, tpo_presentation_options, periodic_profile_presentation_request, periodic_profile_presentation_options, anchored_vwap_point, profile_drawing_options, profile_drawing_snapshot, time_and_sales_options, time_and_sales_row, time_scale_api, tracking_mode_options, trading_api, trading_hit, chart_sync_event, crosshair_sync_position, trading_intent, visible_logical_range_handler, visible_time_range_handler, volume_profile_indicator_api, volume_profile_indicator_options, options_volume_api, options_volume_row, big_trades_api, big_trades_options, auction_marker_options, auction_markers_api, custom_study_definition, custom_study_fault_event, custom_study_binding_options } from "./types.js";
|
|
11
11
|
import { popover_palette, type theme_name } from "./theme.js";
|
|
12
12
|
/** Whether the host supplied an Aeris Charts Commercial License key. */
|
|
13
13
|
export declare function has_license_key(license_key: unknown): boolean;
|
|
@@ -302,8 +302,13 @@ export declare class chart_impl implements chart_api {
|
|
|
302
302
|
private readonly crosshair_action_handlers;
|
|
303
303
|
private observer;
|
|
304
304
|
private detach_gestures;
|
|
305
|
+
/** Re-reads controller cursor, events, repaint, and input wake after a non-input command. */
|
|
306
|
+
private sync_gesture_input;
|
|
305
307
|
private removed;
|
|
306
308
|
private readonly series_by_id;
|
|
309
|
+
/** Options-volume column series → the removal of their whole study. */
|
|
310
|
+
private readonly options_volume_removers;
|
|
311
|
+
private next_options_volume_id;
|
|
307
312
|
private readonly general_series_by_id;
|
|
308
313
|
private readonly layout_series_by_id;
|
|
309
314
|
private readonly layout_change_subscribers_by_id;
|
|
@@ -342,6 +347,7 @@ export declare class chart_impl implements chart_api {
|
|
|
342
347
|
/** The armed tool last reported to listeners; the engine may disarm on its own. */
|
|
343
348
|
private reported_tool;
|
|
344
349
|
private readonly tool_change_subs;
|
|
350
|
+
private readonly replay_change_subs;
|
|
345
351
|
private readonly drawing_created_subs;
|
|
346
352
|
/** Borderless caret surface shared by two explicitly separate product edit modes. */
|
|
347
353
|
private text_editor;
|
|
@@ -533,6 +539,22 @@ export declare class chart_impl implements chart_api {
|
|
|
533
539
|
time_and_sales(stream_id: number, options?: Partial<time_and_sales_options>): readonly time_and_sales_row[] | null;
|
|
534
540
|
replay_clock_micros(): number | null;
|
|
535
541
|
set_replay_clock_micros(clock_micros: number | null): replay_clock_stats;
|
|
542
|
+
replay_state(): replay_state;
|
|
543
|
+
replay_select_start(): replay_state;
|
|
544
|
+
replay_cancel_selection(): replay_state;
|
|
545
|
+
replay_select_time(time_micros: number): replay_state;
|
|
546
|
+
replay_play(): replay_state;
|
|
547
|
+
replay_pause(): replay_state;
|
|
548
|
+
replay_toggle_play(): replay_state;
|
|
549
|
+
replay_step_forward(): replay_state;
|
|
550
|
+
replay_step_back(): replay_state;
|
|
551
|
+
set_replay_speed(steps_per_second: number): replay_state;
|
|
552
|
+
set_replay_step(step: replay_step): replay_state;
|
|
553
|
+
replay_jump_to_realtime(): replay_state;
|
|
554
|
+
replay_exit(): replay_state;
|
|
555
|
+
subscribe_replay_change(handler: replay_change_handler): void;
|
|
556
|
+
unsubscribe_replay_change(handler: replay_change_handler): void;
|
|
557
|
+
private replay_command;
|
|
536
558
|
configure_synthetic_bar_series(series: series_api | number, options: synthetic_bar_options): void;
|
|
537
559
|
set_synthetic_bar_source(series: series_api | number, data: readonly series_data[]): void;
|
|
538
560
|
set_synthetic_bar_source_typed(series: series_api | number, columns: ohlc_columns): void;
|
|
@@ -637,6 +659,7 @@ export declare class chart_impl implements chart_api {
|
|
|
637
659
|
add_volume(source: series_api, period: number, volume_source: series_api, options?: Partial<series_options>): [series_api, series_api];
|
|
638
660
|
add_vwap_bands(source: series_api, reset?: vwap_reset, standard_deviation?: number, percent?: number, volume_source?: series_api | null, options?: Partial<series_options>): [series_api, series_api, series_api, series_api, series_api];
|
|
639
661
|
add_volume_profile(source: series_api, volume_source: series_api, options?: Partial<volume_profile_indicator_options>): volume_profile_indicator_api;
|
|
662
|
+
add_options_volume(rows?: readonly options_volume_row[]): options_volume_api;
|
|
640
663
|
add_wma(source: series_api, period: number, options?: Partial<series_options>): series_api;
|
|
641
664
|
add_vwma(source: series_api, period: number, volume_source?: series_api | null, options?: Partial<series_options>): series_api;
|
|
642
665
|
add_standard_deviation(source: series_api, period: number, options?: Partial<series_options>): series_api;
|