oakscriptjs 0.24.0 → 0.25.1
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/README.md +25 -1
- package/bin/oakscript.mjs +10 -3
- package/dist/cjs/box/index.d.ts +348 -289
- package/dist/cjs/box/index.d.ts.map +1 -1
- package/dist/cjs/box/index.js.map +2 -2
- package/dist/cjs/check/node.d.ts.map +1 -1
- package/dist/cjs/check/node.js +1 -0
- package/dist/cjs/check/node.js.map +2 -2
- package/dist/cjs/check/preview.d.ts +31 -0
- package/dist/cjs/check/preview.d.ts.map +1 -0
- package/dist/cjs/check/preview.js +303 -0
- package/dist/cjs/check/preview.js.map +7 -0
- package/dist/cjs/color/index.d.ts +11 -11
- package/dist/cjs/color/index.js.map +1 -1
- package/dist/cjs/color/parse.d.ts +2 -0
- package/dist/cjs/color/parse.d.ts.map +1 -1
- package/dist/cjs/color/parse.js +6 -0
- package/dist/cjs/color/parse.js.map +2 -2
- package/dist/cjs/compare/index.d.ts +76 -12
- package/dist/cjs/compare/index.d.ts.map +1 -1
- package/dist/cjs/compare/index.js.map +2 -2
- package/dist/cjs/drawing/registry.d.ts +28 -5
- package/dist/cjs/drawing/registry.d.ts.map +1 -1
- package/dist/cjs/drawing/registry.js +14 -0
- package/dist/cjs/drawing/registry.js.map +2 -2
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/label/index.d.ts +265 -187
- package/dist/cjs/label/index.d.ts.map +1 -1
- package/dist/cjs/label/index.js +1 -1
- package/dist/cjs/label/index.js.map +2 -2
- package/dist/cjs/line/index.d.ts +247 -207
- package/dist/cjs/line/index.d.ts.map +1 -1
- package/dist/cjs/line/index.js.map +2 -2
- package/dist/cjs/linefill/index.d.ts +61 -89
- package/dist/cjs/linefill/index.d.ts.map +1 -1
- package/dist/cjs/linefill/index.js.map +2 -2
- package/dist/cjs/math/index.d.ts +49 -40
- package/dist/cjs/math/index.d.ts.map +1 -1
- package/dist/cjs/math/index.js.map +2 -2
- package/dist/cjs/polyline/index.d.ts +57 -78
- package/dist/cjs/polyline/index.d.ts.map +1 -1
- package/dist/cjs/polyline/index.js.map +2 -2
- package/dist/cjs/runtime/input-active.d.ts +2 -2
- package/dist/cjs/runtime/input-active.js.map +1 -1
- package/dist/cjs/runtime/series.d.ts +241 -161
- package/dist/cjs/runtime/series.d.ts.map +1 -1
- package/dist/cjs/runtime/series.js +223 -127
- package/dist/cjs/runtime/series.js.map +2 -2
- package/dist/cjs/script/api/alert.d.ts +37 -0
- package/dist/cjs/script/api/alert.d.ts.map +1 -0
- package/dist/cjs/script/api/alert.js +17 -0
- package/dist/cjs/script/api/alert.js.map +7 -0
- package/dist/cjs/script/api/calc.d.ts +232 -0
- package/dist/cjs/script/api/calc.d.ts.map +1 -0
- package/dist/cjs/script/api/calc.js +17 -0
- package/dist/cjs/script/api/calc.js.map +7 -0
- package/dist/cjs/script/api/color.d.ts +213 -0
- package/dist/cjs/script/api/color.d.ts.map +1 -0
- package/dist/cjs/script/api/color.js +17 -0
- package/dist/cjs/script/api/color.js.map +7 -0
- package/dist/cjs/script/api/context.d.ts +764 -0
- package/dist/cjs/script/api/context.d.ts.map +1 -0
- package/dist/cjs/script/api/context.js +17 -0
- package/dist/cjs/script/api/context.js.map +7 -0
- package/dist/cjs/script/api/log.d.ts +58 -0
- package/dist/cjs/script/api/log.d.ts.map +1 -0
- package/dist/cjs/script/api/log.js +17 -0
- package/dist/cjs/script/api/log.js.map +7 -0
- package/dist/cjs/script/api/strategy.d.ts +391 -0
- package/dist/cjs/script/api/strategy.d.ts.map +1 -0
- package/dist/cjs/script/api/strategy.js +17 -0
- package/dist/cjs/script/api/strategy.js.map +7 -0
- package/dist/cjs/script/api/ta.d.ts +1012 -0
- package/dist/cjs/script/api/ta.d.ts.map +1 -0
- package/dist/cjs/script/api/ta.js +17 -0
- package/dist/cjs/script/api/ta.js.map +7 -0
- package/dist/cjs/script/api/table.d.ts +479 -0
- package/dist/cjs/script/api/table.d.ts.map +1 -0
- package/dist/cjs/script/api/table.js +17 -0
- package/dist/cjs/script/api/table.js.map +7 -0
- package/dist/cjs/script/constants.d.ts +228 -83
- package/dist/cjs/script/constants.d.ts.map +1 -1
- package/dist/cjs/script/constants.js +87 -0
- package/dist/cjs/script/constants.js.map +2 -2
- package/dist/cjs/script/define.d.ts +94 -0
- package/dist/cjs/script/define.d.ts.map +1 -0
- package/dist/cjs/script/define.js +127 -0
- package/dist/cjs/script/define.js.map +7 -0
- package/dist/cjs/script/drawing-args.d.ts.map +1 -1
- package/dist/cjs/script/drawing-args.js +1 -1
- package/dist/cjs/script/drawing-args.js.map +2 -2
- package/dist/cjs/script/formula.d.ts +53 -0
- package/dist/cjs/script/formula.d.ts.map +1 -0
- package/dist/cjs/script/formula.js +402 -0
- package/dist/cjs/script/formula.js.map +7 -0
- package/dist/cjs/script/globals.d.ts +10 -0
- package/dist/cjs/script/globals.d.ts.map +1 -1
- package/dist/cjs/script/globals.js.map +1 -1
- package/dist/cjs/script/index.d.ts +1067 -1006
- package/dist/cjs/script/index.d.ts.map +1 -1
- package/dist/cjs/script/index.js +530 -60
- package/dist/cjs/script/index.js.map +3 -3
- package/dist/cjs/script/json.d.ts +117 -0
- package/dist/cjs/script/json.d.ts.map +1 -0
- package/dist/cjs/script/json.js +321 -0
- package/dist/cjs/script/json.js.map +7 -0
- package/dist/cjs/str/index.d.ts +50 -75
- package/dist/cjs/str/index.d.ts.map +1 -1
- package/dist/cjs/str/index.js +2 -2
- package/dist/cjs/str/index.js.map +2 -2
- package/dist/cjs/strategy/index.d.ts +102 -1
- package/dist/cjs/strategy/index.d.ts.map +1 -1
- package/dist/cjs/strategy/index.js.map +2 -2
- package/dist/cjs/table/index.d.ts +330 -49
- package/dist/cjs/table/index.d.ts.map +1 -1
- package/dist/cjs/table/index.js +55 -27
- package/dist/cjs/table/index.js.map +2 -2
- package/dist/cjs/text/index.d.ts +12 -14
- package/dist/cjs/text/index.d.ts.map +1 -1
- package/dist/cjs/text/index.js.map +2 -2
- package/dist/cjs/types/index.d.ts +15 -8
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +12 -3
- package/dist/cjs/types/index.js.map +2 -2
- package/dist/esm/box/index.d.ts +348 -289
- package/dist/esm/box/index.d.ts.map +1 -1
- package/dist/esm/box/index.js +276 -276
- package/dist/esm/box/index.js.map +1 -1
- package/dist/esm/check/node.d.ts.map +1 -1
- package/dist/esm/check/node.js +1 -0
- package/dist/esm/check/node.js.map +1 -1
- package/dist/esm/check/preview.d.ts +31 -0
- package/dist/esm/check/preview.d.ts.map +1 -0
- package/dist/esm/check/preview.js +296 -0
- package/dist/esm/check/preview.js.map +1 -0
- package/dist/esm/color/index.d.ts +11 -11
- package/dist/esm/color/index.js +11 -11
- package/dist/esm/color/parse.d.ts +2 -0
- package/dist/esm/color/parse.d.ts.map +1 -1
- package/dist/esm/color/parse.js +7 -0
- package/dist/esm/color/parse.js.map +1 -1
- package/dist/esm/compare/index.d.ts +76 -12
- package/dist/esm/compare/index.d.ts.map +1 -1
- package/dist/esm/compare/index.js +76 -12
- package/dist/esm/compare/index.js.map +1 -1
- package/dist/esm/drawing/registry.d.ts +28 -5
- package/dist/esm/drawing/registry.d.ts.map +1 -1
- package/dist/esm/drawing/registry.js +39 -3
- package/dist/esm/drawing/registry.js.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/label/index.d.ts +265 -187
- package/dist/esm/label/index.d.ts.map +1 -1
- package/dist/esm/label/index.js +207 -177
- package/dist/esm/label/index.js.map +1 -1
- package/dist/esm/line/index.d.ts +247 -207
- package/dist/esm/line/index.d.ts.map +1 -1
- package/dist/esm/line/index.js +202 -194
- package/dist/esm/line/index.js.map +1 -1
- package/dist/esm/linefill/index.d.ts +61 -89
- package/dist/esm/linefill/index.d.ts.map +1 -1
- package/dist/esm/linefill/index.js +61 -89
- package/dist/esm/linefill/index.js.map +1 -1
- package/dist/esm/math/index.d.ts +49 -40
- package/dist/esm/math/index.d.ts.map +1 -1
- package/dist/esm/math/index.js +22 -9
- package/dist/esm/math/index.js.map +1 -1
- package/dist/esm/polyline/index.d.ts +57 -78
- package/dist/esm/polyline/index.d.ts.map +1 -1
- package/dist/esm/polyline/index.js +57 -78
- package/dist/esm/polyline/index.js.map +1 -1
- package/dist/esm/runtime/input-active.d.ts +2 -2
- package/dist/esm/runtime/input-active.js +2 -2
- package/dist/esm/runtime/series.d.ts +241 -161
- package/dist/esm/runtime/series.d.ts.map +1 -1
- package/dist/esm/runtime/series.js +241 -161
- package/dist/esm/runtime/series.js.map +1 -1
- package/dist/esm/script/api/alert.d.ts +37 -0
- package/dist/esm/script/api/alert.d.ts.map +1 -0
- package/dist/esm/script/api/alert.js +7 -0
- package/dist/esm/script/api/alert.js.map +1 -0
- package/dist/esm/script/api/calc.d.ts +232 -0
- package/dist/esm/script/api/calc.d.ts.map +1 -0
- package/dist/esm/script/api/calc.js +6 -0
- package/dist/esm/script/api/calc.js.map +1 -0
- package/dist/esm/script/api/color.d.ts +213 -0
- package/dist/esm/script/api/color.d.ts.map +1 -0
- package/dist/esm/script/api/color.js +6 -0
- package/dist/esm/script/api/color.js.map +1 -0
- package/dist/esm/script/api/context.d.ts +764 -0
- package/dist/esm/script/api/context.d.ts.map +1 -0
- package/dist/esm/script/api/context.js +7 -0
- package/dist/esm/script/api/context.js.map +1 -0
- package/dist/esm/script/api/log.d.ts +58 -0
- package/dist/esm/script/api/log.d.ts.map +1 -0
- package/dist/esm/script/api/log.js +6 -0
- package/dist/esm/script/api/log.js.map +1 -0
- package/dist/esm/script/api/strategy.d.ts +391 -0
- package/dist/esm/script/api/strategy.d.ts.map +1 -0
- package/dist/esm/script/api/strategy.js +7 -0
- package/dist/esm/script/api/strategy.js.map +1 -0
- package/dist/esm/script/api/ta.d.ts +1012 -0
- package/dist/esm/script/api/ta.d.ts.map +1 -0
- package/dist/esm/script/api/ta.js +6 -0
- package/dist/esm/script/api/ta.js.map +1 -0
- package/dist/esm/script/api/table.d.ts +479 -0
- package/dist/esm/script/api/table.d.ts.map +1 -0
- package/dist/esm/script/api/table.js +7 -0
- package/dist/esm/script/api/table.js.map +1 -0
- package/dist/esm/script/constants.d.ts +228 -83
- package/dist/esm/script/constants.d.ts.map +1 -1
- package/dist/esm/script/constants.js +110 -24
- package/dist/esm/script/constants.js.map +1 -1
- package/dist/esm/script/define.d.ts +94 -0
- package/dist/esm/script/define.d.ts.map +1 -0
- package/dist/esm/script/define.js +136 -0
- package/dist/esm/script/define.js.map +1 -0
- package/dist/esm/script/drawing-args.d.ts.map +1 -1
- package/dist/esm/script/drawing-args.js +2 -1
- package/dist/esm/script/drawing-args.js.map +1 -1
- package/dist/esm/script/formula.d.ts +53 -0
- package/dist/esm/script/formula.d.ts.map +1 -0
- package/dist/esm/script/formula.js +408 -0
- package/dist/esm/script/formula.js.map +1 -0
- package/dist/esm/script/globals.d.ts +10 -0
- package/dist/esm/script/globals.d.ts.map +1 -1
- package/dist/esm/script/globals.js.map +1 -1
- package/dist/esm/script/index.d.ts +1067 -1006
- package/dist/esm/script/index.d.ts.map +1 -1
- package/dist/esm/script/index.js +1096 -151
- package/dist/esm/script/index.js.map +1 -1
- package/dist/esm/script/json.d.ts +117 -0
- package/dist/esm/script/json.d.ts.map +1 -0
- package/dist/esm/script/json.js +375 -0
- package/dist/esm/script/json.js.map +1 -0
- package/dist/esm/str/index.d.ts +50 -75
- package/dist/esm/str/index.d.ts.map +1 -1
- package/dist/esm/str/index.js +51 -76
- package/dist/esm/str/index.js.map +1 -1
- package/dist/esm/strategy/index.d.ts +102 -1
- package/dist/esm/strategy/index.d.ts.map +1 -1
- package/dist/esm/strategy/index.js +1 -1
- package/dist/esm/strategy/index.js.map +1 -1
- package/dist/esm/table/index.d.ts +330 -49
- package/dist/esm/table/index.d.ts.map +1 -1
- package/dist/esm/table/index.js +372 -61
- package/dist/esm/table/index.js.map +1 -1
- package/dist/esm/text/index.d.ts +12 -14
- package/dist/esm/text/index.d.ts.map +1 -1
- package/dist/esm/text/index.js +12 -14
- package/dist/esm/text/index.js.map +1 -1
- package/dist/esm/types/index.d.ts +15 -8
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +15 -8
- package/dist/esm/types/index.js.map +1 -1
- package/docs/first-indicator.md +152 -0
- package/docs/guide.md +1185 -0
- package/docs/inventory.md +772 -0
- package/docs/no-code.md +207 -0
- package/docs/recipes.md +202 -0
- package/package.json +2 -1
- package/skills/oakscript/SKILL.md +8 -0
- package/skills/oakscript/reference/errors.md +3 -2
- package/src/box/index.ts +348 -289
- package/src/check/node.ts +1 -0
- package/src/check/preview.ts +307 -0
- package/src/color/index.ts +11 -11
- package/src/color/parse.ts +7 -0
- package/src/compare/index.ts +76 -12
- package/src/drawing/registry.ts +44 -5
- package/src/index.ts +1 -1
- package/src/label/index.ts +267 -189
- package/src/line/index.ts +248 -208
- package/src/linefill/index.ts +61 -89
- package/src/math/index.ts +51 -42
- package/src/polyline/index.ts +57 -78
- package/src/runtime/input-active.ts +2 -2
- package/src/runtime/series.ts +243 -163
- package/src/script/api/alert.ts +43 -0
- package/src/script/api/calc.ts +250 -0
- package/src/script/api/color.ts +245 -0
- package/src/script/api/context.ts +944 -0
- package/src/script/api/log.ts +60 -0
- package/src/script/api/strategy.ts +410 -0
- package/src/script/api/ta.ts +1115 -0
- package/src/script/api/table.ts +538 -0
- package/src/script/constants.ts +229 -25
- package/src/script/define.ts +221 -0
- package/src/script/drawing-args.ts +2 -1
- package/src/script/formula.ts +438 -0
- package/src/script/globals.ts +10 -0
- package/src/script/index.ts +1519 -239
- package/src/script/json.ts +457 -0
- package/src/str/index.ts +51 -76
- package/src/strategy/index.ts +102 -1
- package/src/table/index.ts +388 -62
- package/src/text/index.ts +12 -14
- package/src/types/index.ts +15 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ta.d.ts","sourceR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,GAAG,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;;;;;;OAOG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ta.js","sourceRoot":"","sources":["../../../../src/script/api/ta.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Documented type of the `table` script global: tables fixed at a place of the pane, their cells and
|
|
3
|
+
* their look. Inside a bar loop a Series given for a number is read on the current bar.
|
|
4
|
+
* @module script/api/table
|
|
5
|
+
*/
|
|
6
|
+
import type { Series } from '../../runtime/series.js';
|
|
7
|
+
import type { Table } from '../../types/index.js';
|
|
8
|
+
import type { TableCellArgs, TableNewArgs } from '../index.js';
|
|
9
|
+
/** A number, or a Series read on the current bar (inside a bar loop). */
|
|
10
|
+
type Numeric = number | Series;
|
|
11
|
+
/** A colour: `color.red`, `"#FF0000"`, `color.new(color.red, 50)`... */
|
|
12
|
+
type Colour = string;
|
|
13
|
+
/** Where a table sits in the pane (`position.*`). */
|
|
14
|
+
type TablePosition = Table['position'];
|
|
15
|
+
type HAlign = 'left' | 'center' | 'right';
|
|
16
|
+
type VAlign = 'top' | 'center' | 'bottom';
|
|
17
|
+
type FontFamily = 'default' | 'monospace';
|
|
18
|
+
/**
|
|
19
|
+
* The `table` global: tables fixed at a place of the pane (they do not scroll with the bars), to show values,
|
|
20
|
+
* statistics or a dashboard. Create one with `table.new()`, fill it with `table.cell()`. A column or row outside the
|
|
21
|
+
* table is an error; on a deleted table the functions do nothing.
|
|
22
|
+
*/
|
|
23
|
+
export interface TableNamespace {
|
|
24
|
+
/**
|
|
25
|
+
* Creates a table fixed at a place of the pane (it does not scroll with the bars) and returns its handle; fill its
|
|
26
|
+
* cells with `table.cell()`. A pane holds one table per position: a live table at the same position (with the same
|
|
27
|
+
* `force_overlay`) is deleted. The arguments after `rows` can also be given by name in an object.
|
|
28
|
+
* @param position - Where the table sits: `position.top_left`, `position.top_center`, `position.top_right`,
|
|
29
|
+
* `position.middle_left`, `position.middle_center`, `position.middle_right`, `position.bottom_left`,
|
|
30
|
+
* `position.bottom_center` or `position.bottom_right`.
|
|
31
|
+
* @param columns - Number of columns.
|
|
32
|
+
* @param rows - Number of rows.
|
|
33
|
+
* @param bgcolor - Background colour of the whole table. Default: none (transparent).
|
|
34
|
+
* @param frame_color - Colour of the outer frame. Default: none.
|
|
35
|
+
* @param frame_width - Width of the outer frame in pixels. Default: 0 (no frame).
|
|
36
|
+
* @param border_color - Colour of the lines between the cells. Default: none.
|
|
37
|
+
* @param border_width - Width of the lines between the cells in pixels. Default: 0 (no lines).
|
|
38
|
+
* @param force_overlay - When true, the table is drawn on the price pane even if the script has its own pane.
|
|
39
|
+
* Default: false.
|
|
40
|
+
* @returns The new table.
|
|
41
|
+
* @example
|
|
42
|
+
* ```js
|
|
43
|
+
* const t = table.new(position.top_right, 2, 1, color.new(color.black, 20));
|
|
44
|
+
* eachBar((c) => {
|
|
45
|
+
* if (c.i === c.n - 1) table.cell(t, 0, 0, "Close", 0, 0, color.white);
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
'new'(position: TablePosition, columns: Numeric, rows: Numeric, bgcolor?: Colour, frame_color?: Colour, frame_width?: Numeric, border_color?: Colour, border_width?: Numeric, force_overlay?: boolean): Table;
|
|
50
|
+
/**
|
|
51
|
+
* Creates a table, with the arguments after `rows` given by name (see the first form).
|
|
52
|
+
* @param position - Where the table sits (`position.top_right`, `position.bottom_left`...).
|
|
53
|
+
* @param columns - Number of columns.
|
|
54
|
+
* @param rows - Number of rows.
|
|
55
|
+
* @param args - The other arguments by name: `bgcolor`, `frame_color`, `frame_width`, `border_color`,
|
|
56
|
+
* `border_width`, `force_overlay`.
|
|
57
|
+
* @returns The new table.
|
|
58
|
+
* @example
|
|
59
|
+
* ```js
|
|
60
|
+
* const t = table.new(position.bottom_left, 2, 3, { bgcolor: color.new(color.black, 20), border_width: 1 });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
'new'(position: TablePosition, columns: Numeric, rows: Numeric, args: TableNewArgs): Table;
|
|
64
|
+
/**
|
|
65
|
+
* Creates a table, with every argument given by name (see the first form).
|
|
66
|
+
* @param args - `position`, `columns`, `rows`, and optionally `bgcolor`, `frame_color`, `frame_width`,
|
|
67
|
+
* `border_color`, `border_width`, `force_overlay`.
|
|
68
|
+
* @returns The new table.
|
|
69
|
+
* @example
|
|
70
|
+
* ```js
|
|
71
|
+
* const t = table.new({ position: position.top_center, columns: 3, rows: 1 });
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
'new'(args: TableNewArgs): Table;
|
|
75
|
+
/**
|
|
76
|
+
* Creates a table, with its arguments by position only (`table.new()` also takes them by name).
|
|
77
|
+
* @param position - Where the table sits (`position.top_right`, `position.bottom_left`...).
|
|
78
|
+
* @param columns - Number of columns.
|
|
79
|
+
* @param rows - Number of rows.
|
|
80
|
+
* @param bgcolor - Background colour of the whole table. Default: none.
|
|
81
|
+
* @param frame_color - Colour of the outer frame. Default: none.
|
|
82
|
+
* @param frame_width - Width of the outer frame in pixels. Default: 0.
|
|
83
|
+
* @param border_color - Colour of the lines between the cells. Default: none.
|
|
84
|
+
* @param border_width - Width of the lines between the cells in pixels. Default: 0.
|
|
85
|
+
* @param force_overlay - When true, the table is drawn on the price pane. Default: false.
|
|
86
|
+
* @returns The new table.
|
|
87
|
+
* @example
|
|
88
|
+
* ```js
|
|
89
|
+
* const t = table.new_table(position.top_right, 1, 1, color.gray);
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
new_table(position: TablePosition, columns: Numeric, rows: Numeric, bgcolor?: Colour, frame_color?: Colour, frame_width?: Numeric, border_color?: Colour, border_width?: Numeric, force_overlay?: boolean): Table;
|
|
93
|
+
/**
|
|
94
|
+
* Writes a cell of a table: its text and look. The properties not given get their default, so calling it again
|
|
95
|
+
* replaces the whole cell; use `table.cell_set_*()` to change one property. A column or row outside the table is an
|
|
96
|
+
* error; on a deleted table it does nothing. The arguments after `row` can also be given by name in an object.
|
|
97
|
+
* @param table_id - The table (from `table.new()`).
|
|
98
|
+
* @param column - Column of the cell, from 0 (left).
|
|
99
|
+
* @param row - Row of the cell, from 0 (top).
|
|
100
|
+
* @param text - Text of the cell; `\n` starts a new line. Default: "".
|
|
101
|
+
* @param width - Width of the cell in percent of the pane's width; 0 fits the text. Default: 0.
|
|
102
|
+
* @param height - Height of the cell in percent of the pane's height; 0 fits the text. Default: 0.
|
|
103
|
+
* @param text_color - Text colour. Default: dark gray (#363A45).
|
|
104
|
+
* @param text_halign - `text.align_left`, `text.align_center` or `text.align_right`. Default: `text.align_center`.
|
|
105
|
+
* @param text_valign - `text.align_top`, `text.align_center` or `text.align_bottom`. Default: `text.align_center`.
|
|
106
|
+
* @param text_size - `size.tiny`, `size.small`, `size.normal`, `size.large`, `size.huge`, `size.auto`, or a size in
|
|
107
|
+
* points. Default: `size.auto`.
|
|
108
|
+
* @param bgcolor - Background colour of the cell. Default: none (the table's background shows).
|
|
109
|
+
* @param tooltip - Text shown when the pointer is over the cell. Default: none.
|
|
110
|
+
* @param text_font_family - `font.family_default` or `font.family_monospace`. Default: `font.family_default`.
|
|
111
|
+
* @param text_formatting - `text.format_bold`, `text.format_italic`, their sum, or `text.format_none`.
|
|
112
|
+
* Default: `text.format_none`.
|
|
113
|
+
* @returns Nothing.
|
|
114
|
+
* @example
|
|
115
|
+
* ```js
|
|
116
|
+
* const t = table.new(position.bottom_right, 2, 1);
|
|
117
|
+
* eachBar((c) => {
|
|
118
|
+
* if (c.i === c.n - 1) table.cell(t, 1, 0, str.tostring(c.close, "#.##"), 0, 0, color.white, text.align_right);
|
|
119
|
+
* });
|
|
120
|
+
* ```
|
|
121
|
+
*/
|
|
122
|
+
cell(table_id: Table, column: Numeric, row: Numeric, text?: string, width?: Numeric, height?: Numeric, text_color?: Colour, text_halign?: HAlign, text_valign?: VAlign, text_size?: string | number, bgcolor?: Colour, tooltip?: string, text_font_family?: FontFamily, text_formatting?: number): void;
|
|
123
|
+
/**
|
|
124
|
+
* Writes a cell, with the arguments after `row` given by name (see the first form).
|
|
125
|
+
* @param table_id - The table.
|
|
126
|
+
* @param column - Column of the cell, from 0.
|
|
127
|
+
* @param row - Row of the cell, from 0.
|
|
128
|
+
* @param args - The other arguments by name: `text`, `width`, `height`, `text_color`, `text_halign`, `text_valign`,
|
|
129
|
+
* `text_size`, `bgcolor`, `tooltip`, `text_font_family`, `text_formatting`.
|
|
130
|
+
* @returns Nothing.
|
|
131
|
+
* @example
|
|
132
|
+
* ```js
|
|
133
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
134
|
+
* table.cell(t, 0, 0, { text: "Trend", bgcolor: color.teal, text_color: color.white });
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
cell(table_id: Table, column: Numeric, row: Numeric, args: TableCellArgs): void;
|
|
138
|
+
/**
|
|
139
|
+
* Writes a cell, with its text by position and the arguments after it by name (see the first form).
|
|
140
|
+
* @param table_id - The table.
|
|
141
|
+
* @param column - Column of the cell, from 0.
|
|
142
|
+
* @param row - Row of the cell, from 0.
|
|
143
|
+
* @param text - Text of the cell; `\n` starts a new line.
|
|
144
|
+
* @param args - The other arguments by name: `width`, `height`, `text_color`, `text_halign`, `text_valign`,
|
|
145
|
+
* `text_size`, `bgcolor`, `tooltip`, `text_font_family`, `text_formatting`.
|
|
146
|
+
* @returns Nothing.
|
|
147
|
+
* @example
|
|
148
|
+
* ```js
|
|
149
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
150
|
+
* table.cell(t, 0, 0, "Trend", { text_size: size.small, tooltip: "50-bar trend" });
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
cell(table_id: Table, column: Numeric, row: Numeric, text: string, args: TableCellArgs): void;
|
|
154
|
+
/**
|
|
155
|
+
* Writes a cell, with every argument given by name (see the first form).
|
|
156
|
+
* @param args - `table_id`, `column`, `row`, and optionally `text`, `width`, `height`, `text_color`,
|
|
157
|
+
* `text_halign`, `text_valign`, `text_size`, `bgcolor`, `tooltip`, `text_font_family`, `text_formatting`.
|
|
158
|
+
* @returns Nothing.
|
|
159
|
+
* @example
|
|
160
|
+
* ```js
|
|
161
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
162
|
+
* table.cell({ table_id: t, column: 0, row: 0, text: "Trend" });
|
|
163
|
+
* ```
|
|
164
|
+
*/
|
|
165
|
+
cell(args: TableCellArgs): void;
|
|
166
|
+
/**
|
|
167
|
+
* Changes the text of a cell and keeps its other properties. A cell that was not written yet is created.
|
|
168
|
+
* @param table_id - The table.
|
|
169
|
+
* @param column - Column of the cell, from 0.
|
|
170
|
+
* @param row - Row of the cell, from 0.
|
|
171
|
+
* @param value - New text; `\n` starts a new line.
|
|
172
|
+
* @returns Nothing.
|
|
173
|
+
* @example
|
|
174
|
+
* ```js
|
|
175
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
176
|
+
* eachBar((c) => {
|
|
177
|
+
* if (c.i === c.n - 1) table.cell_set_text(t, 0, 0, "Close " + str.tostring(c.close, "#.##"));
|
|
178
|
+
* });
|
|
179
|
+
* ```
|
|
180
|
+
*/
|
|
181
|
+
cell_set_text(table_id: Table, column: Numeric, row: Numeric, value: string): void;
|
|
182
|
+
/**
|
|
183
|
+
* Changes the width of a cell. A cell that was not written yet is created.
|
|
184
|
+
* @param table_id - The table.
|
|
185
|
+
* @param column - Column of the cell, from 0.
|
|
186
|
+
* @param row - Row of the cell, from 0.
|
|
187
|
+
* @param value - Width in percent of the pane's width; 0 fits the text.
|
|
188
|
+
* @returns Nothing.
|
|
189
|
+
* @example
|
|
190
|
+
* ```js
|
|
191
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
192
|
+
* table.cell(t, 0, 0, "Trend");
|
|
193
|
+
* table.cell_set_width(t, 0, 0, 10);
|
|
194
|
+
* ```
|
|
195
|
+
*/
|
|
196
|
+
cell_set_width(table_id: Table, column: Numeric, row: Numeric, value: Numeric): void;
|
|
197
|
+
/**
|
|
198
|
+
* Changes the height of a cell. A cell that was not written yet is created.
|
|
199
|
+
* @param table_id - The table.
|
|
200
|
+
* @param column - Column of the cell, from 0.
|
|
201
|
+
* @param row - Row of the cell, from 0.
|
|
202
|
+
* @param value - Height in percent of the pane's height; 0 fits the text.
|
|
203
|
+
* @returns Nothing.
|
|
204
|
+
* @example
|
|
205
|
+
* ```js
|
|
206
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
207
|
+
* table.cell(t, 0, 0, "Trend");
|
|
208
|
+
* table.cell_set_height(t, 0, 0, 5);
|
|
209
|
+
* ```
|
|
210
|
+
*/
|
|
211
|
+
cell_set_height(table_id: Table, column: Numeric, row: Numeric, value: Numeric): void;
|
|
212
|
+
/**
|
|
213
|
+
* Changes the text colour of a cell. A cell that was not written yet is created.
|
|
214
|
+
* @param table_id - The table.
|
|
215
|
+
* @param column - Column of the cell, from 0.
|
|
216
|
+
* @param row - Row of the cell, from 0.
|
|
217
|
+
* @param value - New text colour.
|
|
218
|
+
* @returns Nothing.
|
|
219
|
+
* @example
|
|
220
|
+
* ```js
|
|
221
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
222
|
+
* eachBar((c) => {
|
|
223
|
+
* if (c.i === c.n - 1) table.cell_set_text_color(t, 0, 0, c.close > c.open ? color.green : color.red);
|
|
224
|
+
* });
|
|
225
|
+
* ```
|
|
226
|
+
*/
|
|
227
|
+
cell_set_text_color(table_id: Table, column: Numeric, row: Numeric, value: Colour): void;
|
|
228
|
+
/**
|
|
229
|
+
* Changes the horizontal alignment of the text of a cell. A cell that was not written yet is created.
|
|
230
|
+
* @param table_id - The table.
|
|
231
|
+
* @param column - Column of the cell, from 0.
|
|
232
|
+
* @param row - Row of the cell, from 0.
|
|
233
|
+
* @param value - `text.align_left`, `text.align_center` or `text.align_right`.
|
|
234
|
+
* @returns Nothing.
|
|
235
|
+
* @example
|
|
236
|
+
* ```js
|
|
237
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
238
|
+
* table.cell(t, 0, 0, "Volume", { width: 15 });
|
|
239
|
+
* table.cell_set_text_halign(t, 0, 0, text.align_left);
|
|
240
|
+
* ```
|
|
241
|
+
*/
|
|
242
|
+
cell_set_text_halign(table_id: Table, column: Numeric, row: Numeric, value: HAlign): void;
|
|
243
|
+
/**
|
|
244
|
+
* Changes the vertical alignment of the text of a cell. A cell that was not written yet is created.
|
|
245
|
+
* @param table_id - The table.
|
|
246
|
+
* @param column - Column of the cell, from 0.
|
|
247
|
+
* @param row - Row of the cell, from 0.
|
|
248
|
+
* @param value - `text.align_top`, `text.align_center` or `text.align_bottom`.
|
|
249
|
+
* @returns Nothing.
|
|
250
|
+
* @example
|
|
251
|
+
* ```js
|
|
252
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
253
|
+
* table.cell(t, 0, 0, "Volume", { height: 8 });
|
|
254
|
+
* table.cell_set_text_valign(t, 0, 0, text.align_bottom);
|
|
255
|
+
* ```
|
|
256
|
+
*/
|
|
257
|
+
cell_set_text_valign(table_id: Table, column: Numeric, row: Numeric, value: VAlign): void;
|
|
258
|
+
/**
|
|
259
|
+
* Changes the text size of a cell. A cell that was not written yet is created.
|
|
260
|
+
* @param table_id - The table.
|
|
261
|
+
* @param column - Column of the cell, from 0.
|
|
262
|
+
* @param row - Row of the cell, from 0.
|
|
263
|
+
* @param value - `size.tiny`, `size.small`, `size.normal`, `size.large`, `size.huge`, `size.auto`, or a size in
|
|
264
|
+
* points.
|
|
265
|
+
* @returns Nothing.
|
|
266
|
+
* @example
|
|
267
|
+
* ```js
|
|
268
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
269
|
+
* table.cell(t, 0, 0, "Signal");
|
|
270
|
+
* table.cell_set_text_size(t, 0, 0, size.large);
|
|
271
|
+
* ```
|
|
272
|
+
*/
|
|
273
|
+
cell_set_text_size(table_id: Table, column: Numeric, row: Numeric, value: string | number): void;
|
|
274
|
+
/**
|
|
275
|
+
* Changes the background colour of a cell. A cell that was not written yet is created.
|
|
276
|
+
* @param table_id - The table.
|
|
277
|
+
* @param column - Column of the cell, from 0.
|
|
278
|
+
* @param row - Row of the cell, from 0.
|
|
279
|
+
* @param value - New background colour.
|
|
280
|
+
* @returns Nothing.
|
|
281
|
+
* @example
|
|
282
|
+
* ```js
|
|
283
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
284
|
+
* eachBar((c) => {
|
|
285
|
+
* if (c.i === c.n - 1) table.cell_set_bgcolor(t, 0, 0, c.close > c.open ? color.teal : color.maroon);
|
|
286
|
+
* });
|
|
287
|
+
* ```
|
|
288
|
+
*/
|
|
289
|
+
cell_set_bgcolor(table_id: Table, column: Numeric, row: Numeric, value: Colour): void;
|
|
290
|
+
/**
|
|
291
|
+
* Changes the tooltip of a cell: the text shown when the pointer is over it. A cell that was not written yet is
|
|
292
|
+
* created.
|
|
293
|
+
* @param table_id - The table.
|
|
294
|
+
* @param column - Column of the cell, from 0.
|
|
295
|
+
* @param row - Row of the cell, from 0.
|
|
296
|
+
* @param value - Tooltip text.
|
|
297
|
+
* @returns Nothing.
|
|
298
|
+
* @example
|
|
299
|
+
* ```js
|
|
300
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
301
|
+
* table.cell(t, 0, 0, "ATR");
|
|
302
|
+
* table.cell_set_tooltip(t, 0, 0, "Average true range over 14 bars");
|
|
303
|
+
* ```
|
|
304
|
+
*/
|
|
305
|
+
cell_set_tooltip(table_id: Table, column: Numeric, row: Numeric, value: string): void;
|
|
306
|
+
/**
|
|
307
|
+
* Changes the font of a cell's text. A cell that was not written yet is created.
|
|
308
|
+
* @param table_id - The table.
|
|
309
|
+
* @param column - Column of the cell, from 0.
|
|
310
|
+
* @param row - Row of the cell, from 0.
|
|
311
|
+
* @param value - `font.family_default` or `font.family_monospace`.
|
|
312
|
+
* @returns Nothing.
|
|
313
|
+
* @example
|
|
314
|
+
* ```js
|
|
315
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
316
|
+
* table.cell(t, 0, 0, "123.45");
|
|
317
|
+
* table.cell_set_text_font_family(t, 0, 0, font.family_monospace);
|
|
318
|
+
* ```
|
|
319
|
+
*/
|
|
320
|
+
cell_set_text_font_family(table_id: Table, column: Numeric, row: Numeric, value: FontFamily): void;
|
|
321
|
+
/**
|
|
322
|
+
* Makes a cell's text bold, italic, both or plain. A cell that was not written yet is created.
|
|
323
|
+
* @param table_id - The table.
|
|
324
|
+
* @param column - Column of the cell, from 0.
|
|
325
|
+
* @param row - Row of the cell, from 0.
|
|
326
|
+
* @param value - `text.format_bold`, `text.format_italic`, their sum, or `text.format_none`.
|
|
327
|
+
* @returns Nothing.
|
|
328
|
+
* @example
|
|
329
|
+
* ```js
|
|
330
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
331
|
+
* table.cell(t, 0, 0, "Summary");
|
|
332
|
+
* table.cell_set_text_formatting(t, 0, 0, text.format_bold + text.format_italic);
|
|
333
|
+
* ```
|
|
334
|
+
*/
|
|
335
|
+
cell_set_text_formatting(table_id: Table, column: Numeric, row: Numeric, value: number): void;
|
|
336
|
+
/**
|
|
337
|
+
* Joins a block of cells into one cell, for a title over several columns for example. The merged cell shows the
|
|
338
|
+
* content and look of its start (top-left) cell. Merging the same block again does nothing. A cell outside the
|
|
339
|
+
* table, or an end before the start, is an error.
|
|
340
|
+
* @param table_id - The table.
|
|
341
|
+
* @param start_column - Column of the top-left cell of the block, from 0.
|
|
342
|
+
* @param start_row - Row of the top-left cell of the block, from 0.
|
|
343
|
+
* @param end_column - Column of the bottom-right cell of the block (not before `start_column`).
|
|
344
|
+
* @param end_row - Row of the bottom-right cell of the block (not before `start_row`).
|
|
345
|
+
* @returns Nothing.
|
|
346
|
+
* @example
|
|
347
|
+
* ```js
|
|
348
|
+
* const t = table.new(position.top_right, 2, 2);
|
|
349
|
+
* table.cell(t, 0, 0, "Daily stats");
|
|
350
|
+
* table.merge_cells(t, 0, 0, 1, 0); // the title spans both columns
|
|
351
|
+
* ```
|
|
352
|
+
*/
|
|
353
|
+
merge_cells(table_id: Table, start_column: Numeric, start_row: Numeric, end_column: Numeric, end_row: Numeric): void;
|
|
354
|
+
/**
|
|
355
|
+
* Empties a block of cells (text and look), and removes the merges that start inside it. Without an end, only the
|
|
356
|
+
* start cell is cleared. A cell outside the table is an error.
|
|
357
|
+
* @param table_id - The table.
|
|
358
|
+
* @param start_column - Column of the top-left cell of the block, from 0.
|
|
359
|
+
* @param start_row - Row of the top-left cell of the block, from 0.
|
|
360
|
+
* @param end_column - Column of the bottom-right cell of the block. Default: `start_column`.
|
|
361
|
+
* @param end_row - Row of the bottom-right cell of the block. Default: `start_row`.
|
|
362
|
+
* @returns Nothing.
|
|
363
|
+
* @example
|
|
364
|
+
* ```js
|
|
365
|
+
* const t = table.new(position.top_right, 3, 3);
|
|
366
|
+
* eachBar((c) => {
|
|
367
|
+
* if (c.i === c.n - 1) table.clear(t, 0, 0, 2, 2); // empty all nine cells
|
|
368
|
+
* });
|
|
369
|
+
* ```
|
|
370
|
+
*/
|
|
371
|
+
clear(table_id: Table, start_column: Numeric, start_row: Numeric, end_column?: Numeric, end_row?: Numeric): void;
|
|
372
|
+
/**
|
|
373
|
+
* Moves the table to another place of the pane. A live table already at that position (with the same
|
|
374
|
+
* `force_overlay`) is deleted. Does nothing on a deleted table.
|
|
375
|
+
* @param table_id - The table.
|
|
376
|
+
* @param position - New place: `position.top_left`, `position.top_center`, `position.top_right`,
|
|
377
|
+
* `position.middle_left`, `position.middle_center`, `position.middle_right`, `position.bottom_left`,
|
|
378
|
+
* `position.bottom_center` or `position.bottom_right`.
|
|
379
|
+
* @returns Nothing.
|
|
380
|
+
* @example
|
|
381
|
+
* ```js
|
|
382
|
+
* const where = input.string("Top right", "Table", { options: ["Top right", "Bottom left"] });
|
|
383
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
384
|
+
* if (where === "Bottom left") table.set_position(t, position.bottom_left);
|
|
385
|
+
* ```
|
|
386
|
+
*/
|
|
387
|
+
set_position(table_id: Table, position: TablePosition): void;
|
|
388
|
+
/**
|
|
389
|
+
* Changes the background colour of the whole table (cells with their own background keep it). Does nothing on a
|
|
390
|
+
* deleted table.
|
|
391
|
+
* @param table_id - The table.
|
|
392
|
+
* @param value - New background colour.
|
|
393
|
+
* @returns Nothing.
|
|
394
|
+
* @example
|
|
395
|
+
* ```js
|
|
396
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
397
|
+
* eachBar((c) => {
|
|
398
|
+
* if (c.i === c.n - 1) table.set_bgcolor(t, c.close > c.open ? color.new(color.green, 80) : color.new(color.red, 80));
|
|
399
|
+
* });
|
|
400
|
+
* ```
|
|
401
|
+
*/
|
|
402
|
+
set_bgcolor(table_id: Table, value: Colour): void;
|
|
403
|
+
/**
|
|
404
|
+
* Changes the colour of the outer frame of the table. Does nothing on a deleted table.
|
|
405
|
+
* @param table_id - The table.
|
|
406
|
+
* @param value - New frame colour.
|
|
407
|
+
* @returns Nothing.
|
|
408
|
+
* @example
|
|
409
|
+
* ```js
|
|
410
|
+
* const t = table.new(position.top_right, 1, 1, { frame_width: 1 });
|
|
411
|
+
* table.set_frame_color(t, color.gray);
|
|
412
|
+
* ```
|
|
413
|
+
*/
|
|
414
|
+
set_frame_color(table_id: Table, value: Colour): void;
|
|
415
|
+
/**
|
|
416
|
+
* Changes the width of the outer frame of the table. Does nothing on a deleted table.
|
|
417
|
+
* @param table_id - The table.
|
|
418
|
+
* @param value - New frame width in pixels; 0 hides the frame.
|
|
419
|
+
* @returns Nothing.
|
|
420
|
+
* @example
|
|
421
|
+
* ```js
|
|
422
|
+
* const t = table.new(position.top_right, 1, 1, { frame_color: color.gray });
|
|
423
|
+
* table.set_frame_width(t, 2);
|
|
424
|
+
* ```
|
|
425
|
+
*/
|
|
426
|
+
set_frame_width(table_id: Table, value: Numeric): void;
|
|
427
|
+
/**
|
|
428
|
+
* Changes the colour of the lines between the cells. Does nothing on a deleted table.
|
|
429
|
+
* @param table_id - The table.
|
|
430
|
+
* @param value - New border colour.
|
|
431
|
+
* @returns Nothing.
|
|
432
|
+
* @example
|
|
433
|
+
* ```js
|
|
434
|
+
* const t = table.new(position.top_right, 2, 2, { border_width: 1 });
|
|
435
|
+
* table.set_border_color(t, color.silver);
|
|
436
|
+
* ```
|
|
437
|
+
*/
|
|
438
|
+
set_border_color(table_id: Table, value: Colour): void;
|
|
439
|
+
/**
|
|
440
|
+
* Changes the width of the lines between the cells. Does nothing on a deleted table.
|
|
441
|
+
* @param table_id - The table.
|
|
442
|
+
* @param value - New border width in pixels; 0 hides the lines.
|
|
443
|
+
* @returns Nothing.
|
|
444
|
+
* @example
|
|
445
|
+
* ```js
|
|
446
|
+
* const t = table.new(position.top_right, 2, 2, { border_color: color.silver });
|
|
447
|
+
* table.set_border_width(t, 1);
|
|
448
|
+
* ```
|
|
449
|
+
*/
|
|
450
|
+
set_border_width(table_id: Table, value: Numeric): void;
|
|
451
|
+
/**
|
|
452
|
+
* Removes the table from the pane and from `table.all`. Afterwards the table functions do nothing on it; deleting
|
|
453
|
+
* it again does nothing.
|
|
454
|
+
* @param table_id - The table to delete.
|
|
455
|
+
* @returns Nothing.
|
|
456
|
+
* @example
|
|
457
|
+
* ```js
|
|
458
|
+
* const show = input.bool(true, "Show table");
|
|
459
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
460
|
+
* if (!show) table.delete(t);
|
|
461
|
+
* ```
|
|
462
|
+
*/
|
|
463
|
+
delete(table_id: Table): void;
|
|
464
|
+
/**
|
|
465
|
+
* Removes the table from the pane and from `table.all` (the same as `table.delete()`).
|
|
466
|
+
* @param table_id - The table to delete.
|
|
467
|
+
* @returns Nothing.
|
|
468
|
+
* @example
|
|
469
|
+
* ```js
|
|
470
|
+
* const t = table.new(position.top_right, 1, 1);
|
|
471
|
+
* table.delete_table(t);
|
|
472
|
+
* ```
|
|
473
|
+
*/
|
|
474
|
+
delete_table(table_id: Table): void;
|
|
475
|
+
/** The tables still on the pane, oldest first (a new array on each read). */
|
|
476
|
+
readonly all: Table[];
|
|
477
|
+
}
|
|
478
|
+
export {};
|
|
479
|
+
//# sourceMappingURL=table.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../../src/script/api/table.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/D,yEAAyE;AACzE,KAAK,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAC/B,wEAAwE;AACxE,KAAK,MAAM,GAAG,MAAM,CAAC;AACrB,qDAAqD;AACrD,KAAK,aAAa,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC;AACvC,KAAK,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC1C,KAAK,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAC1C,KAAK,UAAU,GAAG,SAAS,GAAG,WAAW,CAAC;AAE1C;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACH,KAAK,CACH,QAAQ,EAAE,aAAa,EACvB,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,OAAO,EACb,OAAO,CAAC,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,CAAC,EAAE,OAAO,EACrB,YAAY,CAAC,EAAE,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,IAAI,CAAC;IAC7D;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAClD;;;;;;;;;;OAUG;IACH,eAAe,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACtD;;;;;;;;;;OAUG;IACH,eAAe,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IACvD;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACvD;;;;;;;;;;OAUG;IACH,gBAAgB,CAAC,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;IAExD;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,CAAC;IAC9B;;;;;;;;;OASG;IACH,YAAY,CAAC,QAAQ,EAAE,KAAK,GAAG,IAAI,CAAC;IAEpC,6EAA6E;IAC7E,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,CAAC;CACvB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview Documented type of the `table` script global: tables fixed at a place of the pane, their cells and
|
|
3
|
+
* their look. Inside a bar loop a Series given for a number is read on the current bar.
|
|
4
|
+
* @module script/api/table
|
|
5
|
+
*/
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=table.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../src/script/api/table.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|