UNPKG

@devexperts/dxcharts-lite

Version:
33 lines (32 loc) 1.25 kB
/* * Copyright (C) 2019 - 2026 Devexperts Solutions IE Limited * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. * If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. */ export type SafariThrottleTimeMS = number; /** * Safari canvas performance limits because of Safari's GPU limits */ export declare const SAFARI_CANVAS_LIMITS: { readonly MAX_DIMENSION: 2048; readonly MAX_TOTAL_PIXELS: 1800000; readonly ZOOM_OPTIMIZED_PIXELS: 1200000; }; export declare const LARGE_SCREEN_PIXEL_THRESHOLD = 2000000; export declare const LARGE_SCREEN_THROTTLE_MS = 24; export declare const SAFARI_THROTTLE_MS = 20; export declare const DEFAULT_THROTTLE_MS = 16; export declare const LOW_WHEEL_EVENTS_THRESHOLD = 10; export declare const WHEEL_MONITORING_INTERVAL_MS = 1000; /** * Threshold for significant canvas area change to trigger subscription recreation * Prevents unnecessary recreation for minor size adjustments */ export declare const CANVAS_AREA_CHANGE_THRESHOLD = 50000; export declare const SafariThrottleTimeMSMap: { readonly MIN: 60; readonly LOW: 80; readonly MEDIUM: 100; readonly HIGH: 120; readonly MAX: 150; };