@guihz/trading-vue-editor-tes 0.0.98 → 0.0.100

Sign up to get free protection for your applications and to get access to all the features.
@@ -26,6 +26,7 @@ export interface IBoxArgs {
26
26
  color?: string;
27
27
  point?: Point;
28
28
  width?: number;
29
+ index?: number;
29
30
  }
30
31
  type VBoxArgs = Omit<IBoxArgs, 'id'> & {
31
32
  id: Box;
@@ -71,7 +72,9 @@ export declare class Box {
71
72
  private _id;
72
73
  private _variables;
73
74
  private _errorListener;
75
+ private _index;
74
76
  constructor(variables: BuiltInVariables, key: string, errorListener: TccErrorListener);
77
+ set index(index: number);
75
78
  copy(posStr: string): Box;
76
79
  delete(): void;
77
80
  get_top(): number | undefined;
@@ -16,6 +16,7 @@ interface ILabelArgs {
16
16
  textcolor: string;
17
17
  tooltip: string;
18
18
  text_font_family: string;
19
+ index: number;
19
20
  }
20
21
  export type PartialLabelArgs = Partial<ILabelArgs>;
21
22
  type TLabelArgs = Omit<PartialLabelArgs, 'id'> & {
@@ -56,7 +57,9 @@ export declare class Label {
56
57
  private _id;
57
58
  private _variables;
58
59
  private _errorListener;
60
+ private _index;
59
61
  constructor(key: string, variables: BuiltInVariables, errorListener: TccErrorListener);
62
+ set index(index: number);
60
63
  copy(posStr: string): Label;
61
64
  get_x(posStr: string): number | undefined;
62
65
  get_y(posStr: string): number | undefined;
@@ -18,6 +18,7 @@ export interface ILineArgs {
18
18
  style?: VLineStyle;
19
19
  width?: number;
20
20
  linefills?: string[];
21
+ index?: number;
21
22
  }
22
23
  type LineArgs = Omit<ILineArgs, 'id'> & {
23
24
  id: Line;
@@ -58,8 +59,10 @@ export declare class Line {
58
59
  private _variables;
59
60
  private _id;
60
61
  private _errorListener;
62
+ private _index;
61
63
  constructor(key: string, variables: BuiltInVariables, errorListener: TccErrorListener);
62
64
  get data(): ILineArgs | undefined;
65
+ set index(index: number);
63
66
  copy(posStr: string): Line;
64
67
  delete(): void;
65
68
  get_price({ x }: ILineArgs, posStr: string): number | undefined;
@@ -5,6 +5,7 @@ interface ILinefillArgs {
5
5
  line1?: Line;
6
6
  line2?: Line;
7
7
  color?: string;
8
+ index?: number;
8
9
  }
9
10
  export type TLinefill = Omit<ILinefillArgs, 'line1' | 'line2' | 'id'> & {
10
11
  id: string;
@@ -25,7 +26,9 @@ export declare class Linefill {
25
26
  private _line1?;
26
27
  private _line2?;
27
28
  private _variables;
29
+ private _index;
28
30
  constructor(variables: BuiltInVariables, key: string, line1?: Line, line2?: Line);
31
+ set index(index: number);
29
32
  linefill(args: {
30
33
  x?: Linefill;
31
34
  }, posStr: string): Linefill;
@@ -11,6 +11,7 @@ export interface IPolyline {
11
11
  fill_color?: string;
12
12
  line_style?: VLineStyle;
13
13
  line_width?: number;
14
+ index?: number;
14
15
  }
15
16
  type TPolylineArgs = Omit<IPolyline, 'id'> & {
16
17
  id: Polyline;
@@ -28,7 +29,9 @@ export default class BuildInPolyline {
28
29
  export declare class Polyline {
29
30
  private _id;
30
31
  private _variables;
32
+ private _index;
31
33
  constructor(key: string, variables: BuiltInVariables);
34
+ set index(index: number);
32
35
  delete(): void;
33
36
  }
34
37
  export {};
@@ -17,6 +17,7 @@ export interface ITableArgs {
17
17
  start_row?: number;
18
18
  end_column?: number;
19
19
  end_row?: number;
20
+ index?: number;
20
21
  }
21
22
  interface ITableCellArgs {
22
23
  table_id?: Table;
@@ -71,8 +72,10 @@ export declare class Table {
71
72
  private _id;
72
73
  private _variables;
73
74
  private _errorListener;
75
+ private _index;
74
76
  private _defaultCell;
75
77
  constructor(variables: BuiltInVariables, key: string, errorListener: TccErrorListener);
78
+ set index(index: number);
76
79
  cell(args: ITableCellArgs): void;
77
80
  cell_set_bgcolor({ column, row, bgcolor }: ITableCellArgs): void;
78
81
  cell_set_height({ column, row, height }: ITableCellArgs): void;
@@ -3,8 +3,10 @@ import "./style.css";
3
3
  import { Theme } from "@monaco-editor/react";
4
4
  interface IProps {
5
5
  theme?: Theme;
6
- currentKey?: string;
7
- currentIndex?: number;
6
+ currentValue: {
7
+ index?: number;
8
+ value?: string;
9
+ };
8
10
  }
9
11
  declare const ReferenceManual: FC<IProps>;
10
12
  export default ReferenceManual;