Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

helpers.rtl.d.ts 585B

12345678910
  1. export interface RTLAdapter {
  2. x(x: number): number;
  3. setWidth(w: number): void;
  4. textAlign(align: 'center' | 'left' | 'right'): 'center' | 'left' | 'right';
  5. xPlus(x: number, value: number): number;
  6. leftForLtr(x: number, itemWidth: number): number;
  7. }
  8. export declare function getRtlAdapter(rtl: boolean, rectX: number, width: number): RTLAdapter;
  9. export declare function overrideTextDirection(ctx: CanvasRenderingContext2D, direction: 'ltr' | 'rtl'): void;
  10. export declare function restoreTextDirection(ctx: CanvasRenderingContext2D, original?: [string, string]): void;