@aeristerminal/aeris-charts 0.14.1 → 0.14.2

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.
Binary file
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, ema_ribbon_options, ema_ribbon_periods, kst_periods, fair_value_gap_options, order_block_options, structure_break_on, 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_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";
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;
@@ -360,6 +360,8 @@ export declare class chart_impl implements chart_api {
360
360
  private interacting;
361
361
  /** Pending rAF handle for a coalesced repaint; `null` when no repaint is scheduled. */
362
362
  private repaint_raf;
363
+ /** The plugin canvas holds pixels from a previous canvas-primitive pass. */
364
+ private plugin_canvas_painted;
363
365
  /** Container position the canvases were last placed on the device-pixel grid for. */
364
366
  private aligned_left;
365
367
  private aligned_top;
@@ -427,6 +429,7 @@ export declare class chart_impl implements chart_api {
427
429
  private attribution_left;
428
430
  private attribution_bottom;
429
431
  private readonly backend_loss_handler;
432
+ private readonly font_loading_done_handler;
430
433
  constructor(wasm: AerisChart, container: HTMLElement, gpu_pane: HTMLCanvasElement, fallback_pane: HTMLCanvasElement, plugin_canvas: HTMLCanvasElement, overlay: HTMLCanvasElement, auto_size: boolean, selected_theme: theme_name | undefined, initial_general: boolean | undefined, host_snapshot: chart_host_snapshot);
431
434
  /** Internal package boundary. Every post-disposal operation fails with one stable error. */
432
435
  get wasm(): AerisChart;
@@ -604,8 +607,6 @@ export declare class chart_impl implements chart_api {
604
607
  add_smma(source: series_api, period: number, options?: Partial<series_options>): series_api;
605
608
  add_rma(source: series_api, period: number, options?: Partial<series_options>): series_api;
606
609
  add_hma(source: series_api, period: number, options?: Partial<series_options>): series_api;
607
- add_ema_ribbon(source: series_api, periods?: ema_ribbon_periods, options?: ema_ribbon_options): [series_api, series_api, series_api, series_api, series_api];
608
- set_ema_ribbon_periods(indicator: series_api, periods: ema_ribbon_periods): boolean;
609
610
  add_bollinger(source: series_api, period: number, deviation?: number, options?: Partial<series_options>): [series_api, series_api, series_api];
610
611
  add_bollinger_with_source(source: series_api, input: indicator_input_source, period: number, deviation?: number, options?: Partial<series_options>): [series_api, series_api, series_api];
611
612
  add_rsi(source: series_api, period: number, options?: Partial<series_options>): series_api;
@@ -726,15 +727,11 @@ export declare class chart_impl implements chart_api {
726
727
  drawing_kind_options(drawing: drawing_api | number): drawing_kind_options;
727
728
  add_aroon(source: series_api, period: number, options?: Partial<series_options>): [series_api, series_api];
728
729
  private validate_structure_pivots;
729
- private validate_structure_zones;
730
730
  add_swing_points(source: series_api, left?: number, right?: number, options?: Partial<series_options>): [series_api, series_api];
731
731
  private validate_study_calendar_policy;
732
732
  add_session_levels(source: series_api, calendar?: study_calendar_policy, options?: Partial<series_options>): [series_api, series_api];
733
733
  add_previous_period_levels(source: series_api, period?: previous_period, calendar?: study_calendar_policy, options?: Partial<series_options>): [series_api, series_api, series_api];
734
734
  add_opening_range(source: series_api, duration_seconds: number, calendar?: study_calendar_policy, options?: Partial<series_options>): [series_api, series_api, series_api];
735
- add_market_structure(source: series_api, left?: number, right?: number, break_on?: structure_break_on, options?: Partial<series_options>): series_api;
736
- add_fair_value_gaps(source: series_api, config?: fair_value_gap_options, options?: Partial<series_options>): series_api;
737
- add_order_blocks(source: series_api, config?: order_block_options, options?: Partial<series_options>): series_api;
738
735
  add_awesome_oscillator(source: series_api, options?: Partial<series_options>): series_api;
739
736
  add_dpo(source: series_api, period: number, options?: Partial<series_options>): series_api;
740
737
  add_chande_momentum(source: series_api, period: number, options?: Partial<series_options>): series_api;
@@ -776,6 +773,14 @@ export declare class chart_impl implements chart_api {
776
773
  subscribe_drawing_created(handler: drawing_created_handler): void;
777
774
  unsubscribe_drawing_created(handler: drawing_created_handler): void;
778
775
  selected_drawing(): drawing_api | null;
776
+ selected_drawings(): drawing_api[];
777
+ set_selected_drawings(drawings: readonly (drawing_api | number)[]): void;
778
+ remove_selected_drawings(): number;
779
+ apply_selected_drawings_options(options: Partial<drawing_options>): number;
780
+ set_selected_drawings_locked(locked: boolean): number;
781
+ set_selected_drawings_visibility(visible: boolean): number;
782
+ clone_selected_drawings(logical_offset?: number, price_offset?: number): drawing_api[];
783
+ private drawing_handles;
779
784
  /** Whether an interactive drawing tool is armed (the recognizer routes pane clicks to creation). */
780
785
  creation_armed(): boolean;
781
786
  /** Whether an interactive creation is mid-placement/capture in the engine controller. */
@@ -805,8 +810,8 @@ export declare class chart_impl implements chart_api {
805
810
  * Open the typing-mode editor for a text drawing (the public reference's overlay-caret model): a
806
811
  * borderless wrap whose glyphs are TRANSPARENT — the engine keeps painting both the label
807
812
  * and the focus border underneath, so entering edit cannot lift the text or shift the
808
- * outline. Each keystroke pushes the text into the engine live; Enter/blur commits, Escape
809
- * restores the pre-edit text. Leaving empty removes the drawing.
813
+ * outline. Each keystroke pushes the text into the engine live; Shift+Enter breaks the line,
814
+ * Enter/blur commits, Escape restores the pre-edit text. Leaving empty removes the drawing.
810
815
  */
811
816
  open_text_editor(drawing: drawing_api): void;
812
817
  private open_inline_editor;