@tachyon-charts/geo 0.0.0-stage → 1.1.0
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/LICENSE +202 -0
- package/README.md +10 -2
- package/dist/charts.d.ts +24 -0
- package/dist/charts.d.ts.map +1 -0
- package/dist/charts.js +36 -0
- package/dist/charts.js.map +1 -0
- package/dist/geo-map.d.ts +92 -0
- package/dist/geo-map.d.ts.map +1 -0
- package/dist/geo-map.js +408 -0
- package/dist/geo-map.js.map +1 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/map-series.d.ts +95 -0
- package/dist/map-series.d.ts.map +1 -0
- package/dist/map-series.js +370 -0
- package/dist/map-series.js.map +1 -0
- package/dist/projection.d.ts +51 -0
- package/dist/projection.d.ts.map +1 -0
- package/dist/projection.js +96 -0
- package/dist/projection.js.map +1 -0
- package/dist/shapefile.d.ts +48 -0
- package/dist/shapefile.d.ts.map +1 -0
- package/dist/shapefile.js +210 -0
- package/dist/shapefile.js.map +1 -0
- package/dist/tiles.d.ts +118 -0
- package/dist/tiles.d.ts.map +1 -0
- package/dist/tiles.js +338 -0
- package/dist/tiles.js.map +1 -0
- package/dist/triangulator.d.ts +20 -0
- package/dist/triangulator.d.ts.map +1 -0
- package/dist/triangulator.js +270 -0
- package/dist/triangulator.js.map +1 -0
- package/maps/countries-10m.tgeo.gz +0 -0
- package/maps/countries-110m.tgeo.gz +0 -0
- package/maps/countries-50m.tgeo.gz +0 -0
- package/package.json +37 -3
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
// Reads shapefiles (ESRI, 1998) with their dBASE tables, as ShapefileReader of the .NET version: points, lines, areas
|
|
2
|
+
// and groups of points, Z and M read as plain shapes. A damaged file says what is wrong and at which byte.
|
|
3
|
+
/** A shapefile or its table that is damaged. */
|
|
4
|
+
export class ShapefileError extends Error {
|
|
5
|
+
/** The byte where the damage lies. */
|
|
6
|
+
offset;
|
|
7
|
+
constructor(message, offset) {
|
|
8
|
+
super(message);
|
|
9
|
+
this.name = 'ShapefileError';
|
|
10
|
+
this.offset = offset;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
const fileCode = 9994;
|
|
14
|
+
const headerSize = 100;
|
|
15
|
+
function damaged(name, what, offset) {
|
|
16
|
+
return new ShapefileError(`${name} ${what} (at byte ${String(offset)}).`, offset);
|
|
17
|
+
}
|
|
18
|
+
function kindOf(type, name, offset) {
|
|
19
|
+
switch (type) {
|
|
20
|
+
case 1:
|
|
21
|
+
case 11:
|
|
22
|
+
case 21:
|
|
23
|
+
return 'point';
|
|
24
|
+
case 3:
|
|
25
|
+
case 13:
|
|
26
|
+
case 23:
|
|
27
|
+
return 'line';
|
|
28
|
+
case 5:
|
|
29
|
+
case 15:
|
|
30
|
+
case 25:
|
|
31
|
+
return 'polygon';
|
|
32
|
+
case 8:
|
|
33
|
+
case 18:
|
|
34
|
+
case 28:
|
|
35
|
+
return 'multiPoint';
|
|
36
|
+
default:
|
|
37
|
+
throw damaged(name, `has shapes of the type ${String(type)}, which this reader does not know (multipatches are not supported)`, offset);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
const count = (value) => value.toLocaleString('en-US');
|
|
41
|
+
/** Reads shapefiles and their tables. */
|
|
42
|
+
export const ShapefileReader = {
|
|
43
|
+
/**
|
|
44
|
+
* Reads a shapefile from its bytes and those of its table.
|
|
45
|
+
* @param shapes - The bytes of the `.shp` file.
|
|
46
|
+
* @param table - The bytes of the `.dbf` file, or undefined for shapes without fields.
|
|
47
|
+
* @param name - The name the messages of a damaged file use.
|
|
48
|
+
* @throws ShapefileError when a file is damaged.
|
|
49
|
+
*/
|
|
50
|
+
read(shapes, table, name = 'shapefile') {
|
|
51
|
+
const { fields, records } = table && table.length > 0 ? readTable(table, name) : { fields: [], records: [] };
|
|
52
|
+
return readShapes(shapes, name, fields, records);
|
|
53
|
+
},
|
|
54
|
+
/**
|
|
55
|
+
* Reads a shapefile from files, such as those a person drops on the page; the table is the `.dbf` file beside it.
|
|
56
|
+
* @throws ShapefileError when a file is damaged.
|
|
57
|
+
*/
|
|
58
|
+
async readFiles(shapes, table, name = shapes instanceof File ? shapes.name : 'shapefile') {
|
|
59
|
+
const bytes = new Uint8Array(await shapes.arrayBuffer());
|
|
60
|
+
const rows = table ? new Uint8Array(await table.arrayBuffer()) : undefined;
|
|
61
|
+
return ShapefileReader.read(bytes, rows, name);
|
|
62
|
+
},
|
|
63
|
+
};
|
|
64
|
+
function readShapes(bytes, name, fields, records) {
|
|
65
|
+
if (bytes.length < headerSize) {
|
|
66
|
+
throw damaged(name, 'is shorter than the header of 100 bytes', 0);
|
|
67
|
+
}
|
|
68
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
69
|
+
if (view.getInt32(0, false) !== fileCode) {
|
|
70
|
+
throw damaged(name, 'is no shapefile: the file code is not 9994', 0);
|
|
71
|
+
}
|
|
72
|
+
const declared = view.getInt32(24, false) * 2;
|
|
73
|
+
if (declared > bytes.length) {
|
|
74
|
+
throw damaged(name, `is cut off: the header announces ${count(declared)} bytes, the file has ${count(bytes.length)}`, 24);
|
|
75
|
+
}
|
|
76
|
+
const kind = kindOf(view.getInt32(32, true), name, 32);
|
|
77
|
+
const shapes = [];
|
|
78
|
+
let at = headerSize;
|
|
79
|
+
let record = 0;
|
|
80
|
+
while (at + 8 <= declared) {
|
|
81
|
+
record++;
|
|
82
|
+
const length = view.getInt32(at + 4, false) * 2;
|
|
83
|
+
const content = at + 8;
|
|
84
|
+
if (length < 4 || content + length > declared) {
|
|
85
|
+
throw damaged(name, `has a record ${String(record)} of ${String(length)} bytes that runs past the end`, at);
|
|
86
|
+
}
|
|
87
|
+
const parts = readShape(new DataView(bytes.buffer, bytes.byteOffset + content, length), kind, name, record, content);
|
|
88
|
+
if (parts) {
|
|
89
|
+
shapes.push({ parts, attributes: records[record - 1] ?? new Map() });
|
|
90
|
+
}
|
|
91
|
+
at = content + length;
|
|
92
|
+
}
|
|
93
|
+
if (at !== declared) {
|
|
94
|
+
throw damaged(name, `ends inside the header of record ${String(record + 1)}`, at);
|
|
95
|
+
}
|
|
96
|
+
return { kind, shapes, fields };
|
|
97
|
+
}
|
|
98
|
+
// A record: its type, then the points of a point, the points of a group, or the parts of a line or an area.
|
|
99
|
+
function readShape(content, kind, name, record, offset) {
|
|
100
|
+
const type = content.getInt32(0, true);
|
|
101
|
+
if (type === 0) {
|
|
102
|
+
return undefined;
|
|
103
|
+
}
|
|
104
|
+
if (kindOf(type, name, offset) !== kind) {
|
|
105
|
+
throw damaged(name, `mixes kinds: record ${String(record)} has the type ${String(type)}`, offset);
|
|
106
|
+
}
|
|
107
|
+
if (kind === 'point') {
|
|
108
|
+
need(content, 20, name, record, offset);
|
|
109
|
+
return [{ x: Float64Array.of(content.getFloat64(4, true)), y: Float64Array.of(content.getFloat64(12, true)) }];
|
|
110
|
+
}
|
|
111
|
+
if (kind === 'multiPoint') {
|
|
112
|
+
need(content, 40, name, record, offset);
|
|
113
|
+
const points = content.getInt32(36, true);
|
|
114
|
+
need(content, 40 + points * 16, name, record, offset);
|
|
115
|
+
const x = new Float64Array(points);
|
|
116
|
+
const y = new Float64Array(points);
|
|
117
|
+
for (let i = 0; i < points; i++) {
|
|
118
|
+
x[i] = content.getFloat64(40 + i * 16, true);
|
|
119
|
+
y[i] = content.getFloat64(48 + i * 16, true);
|
|
120
|
+
}
|
|
121
|
+
return [{ x, y }];
|
|
122
|
+
}
|
|
123
|
+
return readParts(content, name, record, offset);
|
|
124
|
+
}
|
|
125
|
+
// Lines and polygons: the parts, each a run of the points.
|
|
126
|
+
function readParts(content, name, record, offset) {
|
|
127
|
+
need(content, 44, name, record, offset);
|
|
128
|
+
const parts = content.getInt32(36, true);
|
|
129
|
+
const points = content.getInt32(40, true);
|
|
130
|
+
if (parts < 0 || points < 0) {
|
|
131
|
+
throw damaged(name, `has a record ${String(record)} with ${String(parts)} parts and ${String(points)} points`, offset);
|
|
132
|
+
}
|
|
133
|
+
need(content, 44 + parts * 4 + points * 16, name, record, offset);
|
|
134
|
+
const start = 44 + parts * 4;
|
|
135
|
+
const result = [];
|
|
136
|
+
for (let part = 0; part < parts; part++) {
|
|
137
|
+
const first = content.getInt32(44 + part * 4, true);
|
|
138
|
+
const end = part + 1 < parts ? content.getInt32(48 + part * 4, true) : points;
|
|
139
|
+
if (first < 0 || end > points || end < first) {
|
|
140
|
+
throw damaged(name, `has a record ${String(record)} whose part ${String(part + 1)} runs from point ${String(first)} to ${String(end)} of ${String(points)}`, offset);
|
|
141
|
+
}
|
|
142
|
+
const x = new Float64Array(end - first);
|
|
143
|
+
const y = new Float64Array(end - first);
|
|
144
|
+
for (let i = first; i < end; i++) {
|
|
145
|
+
x[i - first] = content.getFloat64(start + i * 16, true);
|
|
146
|
+
y[i - first] = content.getFloat64(start + 8 + i * 16, true);
|
|
147
|
+
}
|
|
148
|
+
result.push({ x, y });
|
|
149
|
+
}
|
|
150
|
+
return result;
|
|
151
|
+
}
|
|
152
|
+
function need(content, bytes, name, record, offset) {
|
|
153
|
+
if (content.byteLength < bytes) {
|
|
154
|
+
throw damaged(name, `has a record ${String(record)} of ${String(content.byteLength)} bytes that needs ${String(bytes)}`, offset);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
// dBASE: a header with the number of records and the sizes, the fields of 32 bytes each up to 0x0D, then the records.
|
|
158
|
+
function readTable(bytes, name) {
|
|
159
|
+
if (bytes.length < 32) {
|
|
160
|
+
throw damaged(name, 'is shorter than the header of a table', 0);
|
|
161
|
+
}
|
|
162
|
+
const view = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
|
|
163
|
+
const records = view.getInt32(4, true);
|
|
164
|
+
const size = view.getInt16(8, true);
|
|
165
|
+
const recordSize = view.getInt16(10, true);
|
|
166
|
+
if (records < 0 || size < 33 || recordSize < 1 || size + records * recordSize > bytes.length) {
|
|
167
|
+
throw damaged(name, `announces ${count(records)} records of ${String(recordSize)} bytes after ${String(size)} bytes, more than it holds`, 4);
|
|
168
|
+
}
|
|
169
|
+
const ascii = new TextDecoder('ascii');
|
|
170
|
+
const utf8 = new TextDecoder('utf-8');
|
|
171
|
+
const fields = [];
|
|
172
|
+
let offset = 1;
|
|
173
|
+
for (let at = 32; at + 32 <= size && bytes[at] !== 0x0d; at += 32) {
|
|
174
|
+
const field = trimEndOf(ascii.decode(bytes.subarray(at, at + 11)), '\0 ');
|
|
175
|
+
const length = bytes[at + 16];
|
|
176
|
+
fields.push({ name: field, offset, length });
|
|
177
|
+
offset += length;
|
|
178
|
+
}
|
|
179
|
+
const rows = [];
|
|
180
|
+
for (let record = 0; record < records; record++) {
|
|
181
|
+
const row = bytes.subarray(size + record * recordSize, size + (record + 1) * recordSize);
|
|
182
|
+
const values = new Map();
|
|
183
|
+
for (const field of fields) {
|
|
184
|
+
values.set(field.name, field.offset + field.length <= row.length
|
|
185
|
+
? trimEndOf(trimStartOf(utf8.decode(row.subarray(field.offset, field.offset + field.length)), blanks), blanks)
|
|
186
|
+
: '');
|
|
187
|
+
}
|
|
188
|
+
rows.push(values);
|
|
189
|
+
}
|
|
190
|
+
return { fields: fields.map((field) => field.name), records: rows };
|
|
191
|
+
}
|
|
192
|
+
// The text without the given characters at its end, as a pattern anchored at the end would cut them, in one pass.
|
|
193
|
+
function trimEndOf(text, characters) {
|
|
194
|
+
let end = text.length;
|
|
195
|
+
while (end > 0 && characters.includes(text.charAt(end - 1))) {
|
|
196
|
+
end--;
|
|
197
|
+
}
|
|
198
|
+
return text.slice(0, end);
|
|
199
|
+
}
|
|
200
|
+
// The spaces that pad the fields of a table of attributes.
|
|
201
|
+
const blanks = ' ';
|
|
202
|
+
// The text without the given characters at its start.
|
|
203
|
+
function trimStartOf(text, characters) {
|
|
204
|
+
let start = 0;
|
|
205
|
+
while (start < text.length && characters.includes(text.charAt(start))) {
|
|
206
|
+
start++;
|
|
207
|
+
}
|
|
208
|
+
return text.slice(start);
|
|
209
|
+
}
|
|
210
|
+
//# sourceMappingURL=shapefile.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shapefile.js","sourceRoot":"","sources":["../src/shapefile.ts"],"names":[],"mappings":"AAAA,sHAAsH;AACtH,2GAA2G;AA+B3G,gDAAgD;AAChD,MAAM,OAAO,cAAe,SAAQ,KAAK;IACvC,sCAAsC;IAC7B,MAAM,CAAS;IAExB,YAAY,OAAe,EAAE,MAAc;QACzC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,gBAAgB,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF;AAED,MAAM,QAAQ,GAAG,IAAI,CAAC;AACtB,MAAM,UAAU,GAAG,GAAG,CAAC;AAEvB,SAAS,OAAO,CAAC,IAAY,EAAE,IAAY,EAAE,MAAc;IACzD,OAAO,IAAI,cAAc,CAAC,GAAG,IAAI,IAAI,IAAI,aAAa,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AACpF,CAAC;AAED,SAAS,MAAM,CAAC,IAAY,EAAE,IAAY,EAAE,MAAc;IACxD,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,CAAC,CAAC;QACP,KAAK,EAAE,CAAC;QACR,KAAK,EAAE;YACL,OAAO,OAAO,CAAC;QACjB,KAAK,CAAC,CAAC;QACP,KAAK,EAAE,CAAC;QACR,KAAK,EAAE;YACL,OAAO,MAAM,CAAC;QAChB,KAAK,CAAC,CAAC;QACP,KAAK,EAAE,CAAC;QACR,KAAK,EAAE;YACL,OAAO,SAAS,CAAC;QACnB,KAAK,CAAC,CAAC;QACP,KAAK,EAAE,CAAC;QACR,KAAK,EAAE;YACL,OAAO,YAAY,CAAC;QACtB;YACE,MAAM,OAAO,CACX,IAAI,EACJ,0BAA0B,MAAM,CAAC,IAAI,CAAC,oEAAoE,EAC1G,MAAM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,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AACtE,CAAC;AAED,kHAAkH;AAClH,SAAS,SAAS,CAAC,IAAY,EAAE,UAAkB;IACjD,IAAI,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;IACtB,OAAO,GAAG,GAAG,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,GAAG,EAAE,CAAC;IACR,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC5B,CAAC;AAED,2DAA2D;AAC3D,MAAM,MAAM,GAAG,IAAI,CAAC;AAEpB,sDAAsD;AACtD,SAAS,WAAW,CAAC,IAAY,EAAE,UAAkB;IACnD,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,OAAO,KAAK,GAAG,IAAI,CAAC,MAAM,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QACtE,KAAK,EAAE,CAAC;IACV,CAAC;IACD,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;AAC3B,CAAC"}
|
package/dist/tiles.d.ts
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { ChartOverlay, ChartSeries, DoubleRange, type Axis, type CommandList, type OverlayCanvas, type RenderDevice, type SeriesFrame } from '@tachyon-charts/core';
|
|
2
|
+
/** The pixels of a tile, four bytes each (red, green, blue, alpha), row by row from the top. */
|
|
3
|
+
export interface TileImage {
|
|
4
|
+
/** The pixels. */
|
|
5
|
+
readonly pixels: Uint8Array | Uint8ClampedArray;
|
|
6
|
+
/** The width in pixels. */
|
|
7
|
+
readonly width: number;
|
|
8
|
+
/** The height in pixels. */
|
|
9
|
+
readonly height: number;
|
|
10
|
+
}
|
|
11
|
+
/** How a tile source is set up beyond its address. */
|
|
12
|
+
export interface TileSourceOptions {
|
|
13
|
+
/** The finest level the server has; 19 by default. */
|
|
14
|
+
readonly maxZoom?: number;
|
|
15
|
+
/** The tiles kept in memory; 512 by default. */
|
|
16
|
+
readonly memoryTiles?: number;
|
|
17
|
+
/** The name of a cache of the browser (Cache Storage) that keeps tiles for the next visit; none by default. */
|
|
18
|
+
readonly cacheName?: string;
|
|
19
|
+
/** Fetches the bytes of a tile, such as with headers the server asks for; `fetch` by default. */
|
|
20
|
+
readonly fetch?: (address: string, signal: AbortSignal) => Promise<ArrayBuffer>;
|
|
21
|
+
/** Decodes the bytes of a tile; PNG and JPEG through the browser by default. */
|
|
22
|
+
readonly decode?: (bytes: ArrayBuffer) => Promise<TileImage | undefined>;
|
|
23
|
+
}
|
|
24
|
+
/** Where the tiles of a map come from: the address of a server with `{z}`, `{x}` and `{y}`, and the notice of its source. */
|
|
25
|
+
export declare class TileSource {
|
|
26
|
+
/** The address of a tile, with `{z}`, `{x}` and `{y}`. */
|
|
27
|
+
readonly urlTemplate: string;
|
|
28
|
+
/** The notice of the source, shown in the corner of the map. */
|
|
29
|
+
readonly attribution: string;
|
|
30
|
+
/** The finest level the server has. */
|
|
31
|
+
readonly maxZoom: number;
|
|
32
|
+
/** The tiles kept in memory. */
|
|
33
|
+
readonly memoryTiles: number;
|
|
34
|
+
/** The name of the cache of the browser that keeps tiles, if any. */
|
|
35
|
+
readonly cacheName: string | undefined;
|
|
36
|
+
private readonly fetcher;
|
|
37
|
+
private readonly decoder;
|
|
38
|
+
private painter;
|
|
39
|
+
/**
|
|
40
|
+
* @param urlTemplate - The address of a tile, with `{z}`, `{x}` and `{y}`.
|
|
41
|
+
* @param attribution - The notice of the source the server asks for, shown in the corner of the map.
|
|
42
|
+
* @param options - Levels, memory, cache, fetching and decoding.
|
|
43
|
+
* @throws RangeError when the address lacks `{z}`, `{x}` or `{y}`, or the notice is empty.
|
|
44
|
+
*/
|
|
45
|
+
constructor(
|
|
46
|
+
/** The address of a tile, with `{z}`, `{x}` and `{y}`. */
|
|
47
|
+
urlTemplate: string,
|
|
48
|
+
/** The notice of the source, shown in the corner of the map. */
|
|
49
|
+
attribution: string, options?: TileSourceOptions);
|
|
50
|
+
/** A grid of tiles drawn on the spot, without a server: it shows how the levels stack. */
|
|
51
|
+
static grid(): TileSource;
|
|
52
|
+
/** The address of a tile. */
|
|
53
|
+
addressOf(z: number, x: number, y: number): string;
|
|
54
|
+
/** @internal Brings a tile: drawn, from the cache of the browser, or from the server. */
|
|
55
|
+
load(z: number, x: number, y: number, signal: AbortSignal): Promise<TileImage | undefined>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The tiles of a server below the series of a map in Web Mercator: they arrive in the background, the newest view
|
|
59
|
+
* first, and where a tile is missing a coarser one stands in, or the map below shows.
|
|
60
|
+
*/
|
|
61
|
+
export declare class TileLayerSeries extends ChartSeries {
|
|
62
|
+
/** Where the tiles come from. */
|
|
63
|
+
readonly source: TileSource;
|
|
64
|
+
private readonly tiles;
|
|
65
|
+
private readonly failed;
|
|
66
|
+
private readonly pending;
|
|
67
|
+
private readonly wanted;
|
|
68
|
+
private readonly stop;
|
|
69
|
+
private texture;
|
|
70
|
+
private device;
|
|
71
|
+
private pixels;
|
|
72
|
+
private arrived;
|
|
73
|
+
private built;
|
|
74
|
+
private builtFrame;
|
|
75
|
+
private running;
|
|
76
|
+
private zoomLevel;
|
|
77
|
+
/**
|
|
78
|
+
* @param source - Where the tiles come from.
|
|
79
|
+
* @param xAxis - The X axis of the map.
|
|
80
|
+
* @param yAxis - The Y axis of the map.
|
|
81
|
+
*/
|
|
82
|
+
constructor(
|
|
83
|
+
/** Where the tiles come from. */
|
|
84
|
+
source: TileSource, xAxis: Axis, yAxis: Axis);
|
|
85
|
+
/** The level of the tiles of the last frame. */
|
|
86
|
+
get zoom(): number;
|
|
87
|
+
/** The tiles in memory. */
|
|
88
|
+
get tileCount(): number;
|
|
89
|
+
/** {@inheritDoc @tachyon-charts/core#ChartSeries.version} */
|
|
90
|
+
get version(): number;
|
|
91
|
+
/** {@inheritDoc @tachyon-charts/core#ChartSeries.dataRange} */
|
|
92
|
+
dataRange(): DoubleRange | undefined;
|
|
93
|
+
/** Stops the tiles on their way and frees the texture. */
|
|
94
|
+
dispose(): void;
|
|
95
|
+
/** {@inheritDoc @tachyon-charts/core#ChartSeries.releaseResources} */
|
|
96
|
+
releaseResources(): void;
|
|
97
|
+
/** {@inheritDoc @tachyon-charts/core#ChartSeries.prepare} */
|
|
98
|
+
prepare(device: RenderDevice, frame: SeriesFrame): void;
|
|
99
|
+
/** {@inheritDoc @tachyon-charts/core#ChartSeries.draw} */
|
|
100
|
+
draw(commands: CommandList, frame: SeriesFrame): void;
|
|
101
|
+
private want;
|
|
102
|
+
private work;
|
|
103
|
+
private keep;
|
|
104
|
+
private fill;
|
|
105
|
+
private sample;
|
|
106
|
+
}
|
|
107
|
+
/** The notice of the source of tiles or of a map, in the lower right corner of the plot. */
|
|
108
|
+
export declare class AttributionOverlay extends ChartOverlay {
|
|
109
|
+
/** The notice. */
|
|
110
|
+
readonly text: string;
|
|
111
|
+
/** @param text - The notice. */
|
|
112
|
+
constructor(
|
|
113
|
+
/** The notice. */
|
|
114
|
+
text: string);
|
|
115
|
+
/** {@inheritDoc @tachyon-charts/core#ChartOverlay.draw} */
|
|
116
|
+
draw(canvas: OverlayCanvas): void;
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=tiles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tiles.d.ts","sourceRoot":"","sources":["../src/tiles.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,YAAY,EACZ,WAAW,EACX,WAAW,EACX,KAAK,IAAI,EACT,KAAK,WAAW,EAEhB,KAAK,aAAa,EAClB,KAAK,YAAY,EACjB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAE9B,gGAAgG;AAChG,MAAM,WAAW,S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