tsichart-core 1.0.5 → 2.0.0-beta.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/LICENSE +22 -22
- package/README.md +80 -0
- package/dist/index.d.ts +1744 -0
- package/dist/index.js +14284 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +14209 -0
- package/dist/index.mjs.map +1 -0
- package/dist/{tsiclient.css → styles/index.css} +9498 -9497
- package/dist/styles/index.css.map +1 -0
- package/package.json +115 -124
- package/README.MD +0 -171
- package/dist/AggregateExpression.d.ts +0 -13
- package/dist/AggregateExpression.js +0 -70
- package/dist/AvailabilityChart-C8ewvn3T.js +0 -488
- package/dist/AvailabilityChart.d.ts +0 -59
- package/dist/AvailabilityChart.js +0 -26
- package/dist/ChartComponent-Dg8P-BTZ.js +0 -302
- package/dist/ChartComponent-ONNW31RL.d.ts +0 -80
- package/dist/ChartComponentData-DBW8_FnY.d.ts +0 -47
- package/dist/ChartDataOptions-CNTSB636.js +0 -49
- package/dist/ChartDataOptions-D0BJuRZy.d.ts +0 -38
- package/dist/ChartVisualizationComponent-CTs5Q_sg.js +0 -23
- package/dist/ChartVisualizationComponent-CpR8xZla.d.ts +0 -8
- package/dist/ColorPicker-0p6vkATj.js +0 -120
- package/dist/ColorPicker.d.ts +0 -28
- package/dist/ColorPicker.js +0 -6
- package/dist/Component-BgifJdKl.js +0 -401
- package/dist/Component-DXwYPoSo.d.ts +0 -226
- package/dist/ContextMenu-wqGGgAzp.js +0 -197
- package/dist/DateTimeButton-D7N8XG0S.js +0 -38
- package/dist/DateTimeButton-DfJL5kvr.d.ts +0 -16
- package/dist/DateTimeButtonRange-BM_J646m.js +0 -71
- package/dist/DateTimeButtonRange.d.ts +0 -19
- package/dist/DateTimeButtonRange.js +0 -15
- package/dist/DateTimeButtonSingle-BxMSitQG.js +0 -48
- package/dist/DateTimeButtonSingle.d.ts +0 -17
- package/dist/DateTimeButtonSingle.js +0 -14
- package/dist/DateTimePicker-BgTi-DY9.js +0 -532
- package/dist/DateTimePicker.d.ts +0 -69
- package/dist/DateTimePicker.js +0 -13
- package/dist/EllipsisMenu-CxJ0LoVm.js +0 -116
- package/dist/EllipsisMenu.d.ts +0 -20
- package/dist/EllipsisMenu.js +0 -6
- package/dist/Enums-DWpaQlXk.d.ts +0 -12
- package/dist/EventsTable-CsnBvvIW.js +0 -553
- package/dist/EventsTable.d.ts +0 -34
- package/dist/EventsTable.js +0 -10
- package/dist/GeoProcessGraphic-CUBMHIHX.js +0 -145
- package/dist/GeoProcessGraphic.d.ts +0 -34
- package/dist/GeoProcessGraphic.js +0 -7
- package/dist/Grid-uoHKTet9.js +0 -874
- package/dist/Grid.d.ts +0 -43
- package/dist/Grid.js +0 -6
- package/dist/GroupedBarChart-Bc3cGhgz.js +0 -579
- package/dist/GroupedBarChart.d.ts +0 -22
- package/dist/GroupedBarChart.js +0 -17
- package/dist/GroupedBarChartData-B7BTM9JH.d.ts +0 -20
- package/dist/GroupedBarChartData-Ml5JJimg.js +0 -121
- package/dist/Heatmap-5gFc_AVW.js +0 -524
- package/dist/Heatmap.d.ts +0 -31
- package/dist/Heatmap.js +0 -14
- package/dist/Hierarchy-C5ueDsus.js +0 -260
- package/dist/Hierarchy.d.ts +0 -39
- package/dist/Hierarchy.js +0 -6
- package/dist/HierarchyNavigation-C3Pwt0D6.js +0 -336
- package/dist/HierarchyNavigation.d.ts +0 -34
- package/dist/HierarchyNavigation.js +0 -6
- package/dist/HistoryPlayback-D09bter3.js +0 -175
- package/dist/HistoryPlayback-DmJ6u7lU.d.ts +0 -68
- package/dist/Interfaces-R_1l9lIT.d.ts +0 -6
- package/dist/Legend-gCIrAytG.js +0 -497
- package/dist/LineChart-CzDp5ULB.js +0 -3181
- package/dist/LineChart.d.ts +0 -163
- package/dist/LineChart.js +0 -18
- package/dist/ModelAutocomplete-lU71Ndju.js +0 -100
- package/dist/ModelAutocomplete.d.ts +0 -12
- package/dist/ModelAutocomplete.js +0 -7
- package/dist/ModelSearch-OF4DygOJ.js +0 -189
- package/dist/ModelSearch.d.ts +0 -23
- package/dist/ModelSearch.js +0 -9
- package/dist/PieChart-XLc9Itne.js +0 -258
- package/dist/PieChart.d.ts +0 -26
- package/dist/PieChart.js +0 -17
- package/dist/PlaybackControls-DbG9gExy.js +0 -195
- package/dist/PlaybackControls.d.ts +0 -39
- package/dist/PlaybackControls.js +0 -13
- package/dist/ProcessGraphic-Cft1b4Mf.js +0 -154
- package/dist/ProcessGraphic.d.ts +0 -31
- package/dist/ProcessGraphic.js +0 -7
- package/dist/ScatterPlot-CdnqSHq2.js +0 -924
- package/dist/ScatterPlot.d.ts +0 -115
- package/dist/ScatterPlot.js +0 -17
- package/dist/SingleDateTimePicker-Ddr-ogTk.js +0 -213
- package/dist/SingleDateTimePicker.d.ts +0 -45
- package/dist/SingleDateTimePicker.js +0 -12
- package/dist/Slider-CX0nvlqx.js +0 -186
- package/dist/Slider.d.ts +0 -31
- package/dist/Slider.js +0 -6
- package/dist/TemporalXAxisComponent-DXmMekYq.js +0 -129
- package/dist/TemporalXAxisComponent-PIeiJYUr.d.ts +0 -23
- package/dist/TimezonePicker-CQpXR5eb.js +0 -58
- package/dist/TimezonePicker.d.ts +0 -16
- package/dist/TimezonePicker.js +0 -10
- package/dist/Tooltip-C13k0eeH.js +0 -104
- package/dist/TsqExpression.d.ts +0 -36
- package/dist/TsqExpression.js +0 -89
- package/dist/UXClient-Bn1afElm.js +0 -230
- package/dist/UXClient.d.ts +0 -74
- package/dist/UXClient.js +0 -47
- package/dist/Utils-BcQeZOM3.d.ts +0 -104
- package/dist/Utils-DDGqSryb.js +0 -1138
- package/dist/Utils.d.ts +0 -7
- package/dist/Utils.js +0 -7
- package/dist/_tslib-BYFmvNeL.js +0 -96
- package/dist/pikaday-jh_aVtJs.js +0 -1252
- package/dist/tsiclient.cjs.js +0 -3
- package/dist/tsiclient.cjs.js.LICENSE.txt +0 -19
- package/dist/tsiclient.cjs.js.map +0 -1
- package/dist/tsiclient.d.ts +0 -46
- package/dist/tsiclient.esm.js +0 -3
- package/dist/tsiclient.esm.js.LICENSE.txt +0 -19
- package/dist/tsiclient.esm.js.map +0 -1
- package/dist/tsiclient.js +0 -58
- package/dist/tsiclient.min.css +0 -6
- package/dist/tsiclient.min.css.map +0 -1
- package/dist/tsiclient.umd.js +0 -3
- package/dist/tsiclient.umd.js.LICENSE.txt +0 -19
- package/dist/tsiclient.umd.js.map +0 -1
- package/dist/tsiclient.umd.min.js +0 -3
- package/dist/tsiclient.umd.min.js.LICENSE.txt +0 -19
- package/dist/tsiclient.umd.min.js.map +0 -1
- package/tsiclient.css +0 -17323
- package/tsiclient.d.ts +0 -46
- package/tsiclient.js +0 -58
- package/tsiclient.min.css +0 -6
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { _ as __extends } from './_tslib-BYFmvNeL.js';
|
|
2
|
-
import { H as HistoryPlayback } from './HistoryPlayback-D09bter3.js';
|
|
3
|
-
|
|
4
|
-
var GeoProcessGraphic = /** @class */ (function (_super) {
|
|
5
|
-
__extends(GeoProcessGraphic, _super);
|
|
6
|
-
// private map: atlas.Map;
|
|
7
|
-
function GeoProcessGraphic(renderTarget) {
|
|
8
|
-
var _this = _super.call(this, renderTarget) || this;
|
|
9
|
-
_this.currentCancelTrigger = null;
|
|
10
|
-
return _this;
|
|
11
|
-
}
|
|
12
|
-
GeoProcessGraphic.prototype.render = function (environmentFqdn, getToken, data, chartOptions) {
|
|
13
|
-
this.zoom = chartOptions.zoom;
|
|
14
|
-
this.center = chartOptions.center;
|
|
15
|
-
this.bearing = chartOptions.bearing;
|
|
16
|
-
this.pitch = chartOptions.pitch;
|
|
17
|
-
this.maxZoom = chartOptions.maxZoom;
|
|
18
|
-
this.minZoom = chartOptions.minZoom;
|
|
19
|
-
this.duration = chartOptions.duration;
|
|
20
|
-
this.azureMapsSubscriptionKey = chartOptions.subscriptionKey;
|
|
21
|
-
this.width = chartOptions.width;
|
|
22
|
-
this.height = chartOptions.height;
|
|
23
|
-
this.theme = chartOptions.theme;
|
|
24
|
-
this.renderBase(environmentFqdn, getToken, data, chartOptions);
|
|
25
|
-
};
|
|
26
|
-
GeoProcessGraphic.prototype.loadResources = function () {
|
|
27
|
-
this.component.node().style.width = "".concat(this.width, "px");
|
|
28
|
-
this.component.node().style.height = "".concat(this.height, "px");
|
|
29
|
-
// this.map = new atlas.Map(<HTMLElement>this.component.node(), {
|
|
30
|
-
// authOptions: {
|
|
31
|
-
// authType: atlas.AuthenticationType.subscriptionKey,
|
|
32
|
-
// subscriptionKey: this.azureMapsSubscriptionKey,
|
|
33
|
-
// },
|
|
34
|
-
// });
|
|
35
|
-
// this.map.events.add("ready", () => {
|
|
36
|
-
// this.dataSource = new atlas.source.DataSource();
|
|
37
|
-
// this.map.sources.add(this.dataSource);
|
|
38
|
-
// for (let i = 0; i < this.tsqExpressions.length; i++) {
|
|
39
|
-
// let popup = new atlas.Popup({
|
|
40
|
-
// content: `<div class = 'tsi-gpgPopUp id= tsi-popup${i}'></div>`,
|
|
41
|
-
// pixelOffset: [0, -30],
|
|
42
|
-
// });
|
|
43
|
-
// let marker = new atlas.HtmlMarker({
|
|
44
|
-
// htmlContent:
|
|
45
|
-
// `<div class = tsi-geoprocess-graphic> <img class='tsi-gpgcircleImage
|
|
46
|
-
// id= tsi-htmlMarker${i}' src= "` +
|
|
47
|
-
// this.tsqExpressions[i].image +
|
|
48
|
-
// '" /> </div>',
|
|
49
|
-
// position: [0, 0],
|
|
50
|
-
// popup: popup,
|
|
51
|
-
// });
|
|
52
|
-
// this.map.markers.add(marker);
|
|
53
|
-
// this.map.popups.add(popup);
|
|
54
|
-
// this.map.events.add("click", marker, () => {
|
|
55
|
-
// marker.togglePopup();
|
|
56
|
-
// });
|
|
57
|
-
// }
|
|
58
|
-
// });
|
|
59
|
-
// this.map.setCamera({
|
|
60
|
-
// center: this.center,
|
|
61
|
-
// bearing: this.bearing,
|
|
62
|
-
// pitch: this.pitch,
|
|
63
|
-
// zoom: this.zoom,
|
|
64
|
-
// maxZoom: this.maxZoom,
|
|
65
|
-
// minZoom: this.minZoom,
|
|
66
|
-
// type: "fly",
|
|
67
|
-
// duration: this.duration,
|
|
68
|
-
// });
|
|
69
|
-
return Promise.resolve();
|
|
70
|
-
};
|
|
71
|
-
GeoProcessGraphic.prototype.draw = function () {
|
|
72
|
-
this.drawBase();
|
|
73
|
-
};
|
|
74
|
-
GeoProcessGraphic.prototype.getDataPoints = function (results) {
|
|
75
|
-
// let dataPoints = results.map((r): IGeoProcessGraphicLabelInfo => {
|
|
76
|
-
// // return this.parseTsqResponse(r);
|
|
77
|
-
// });
|
|
78
|
-
// this.updateDataMarkers(dataPoints);
|
|
79
|
-
};
|
|
80
|
-
GeoProcessGraphic.prototype.parseTsqResponse = function (response) {
|
|
81
|
-
var parsedResponse = {};
|
|
82
|
-
if (response && response.properties) {
|
|
83
|
-
for (var i = 0; i < response.properties.length; i++) {
|
|
84
|
-
response.properties[i] &&
|
|
85
|
-
response.properties[i].name &&
|
|
86
|
-
response.properties[i].values
|
|
87
|
-
? (parsedResponse[response.properties[i].name] =
|
|
88
|
-
response.properties[i].values[0])
|
|
89
|
-
: null;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
return parsedResponse;
|
|
93
|
-
};
|
|
94
|
-
GeoProcessGraphic.prototype.updateDataMarkers = function (dataPoints) {
|
|
95
|
-
for (var i = 0; i < dataPoints.length; i++) {
|
|
96
|
-
dataPoints[i][this.tsqExpressions[i].positionXVariableName];
|
|
97
|
-
dataPoints[i][this.tsqExpressions[i].positionYVariableName];
|
|
98
|
-
// this.map.markers.getMarkers()[i].setOptions({
|
|
99
|
-
// position: [lat, lon],
|
|
100
|
-
// });
|
|
101
|
-
// let dataPointArr = Object.entries(dataPoints[i]);
|
|
102
|
-
// this.map.popups.getPopups()[i].setOptions({
|
|
103
|
-
// position: [lat, lon],
|
|
104
|
-
// content: this.createTable(dataPointArr, i),
|
|
105
|
-
// });
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
GeoProcessGraphic.prototype.createTable = function (dataPointArr, idx) {
|
|
109
|
-
var gpgTooltipDiv = document.createElement("div");
|
|
110
|
-
gpgTooltipDiv.className = "tsi-gpgTooltip tsi-" + this.theme;
|
|
111
|
-
var gpgTooltipInnerDiv = document.createElement("div");
|
|
112
|
-
gpgTooltipInnerDiv.className = "tsi-gpgTooltipInner";
|
|
113
|
-
var gpgTooltipTitleDiv = document.createElement("div");
|
|
114
|
-
gpgTooltipTitleDiv.className = "tsi-gpgTooltipTitle";
|
|
115
|
-
var title = document.createTextNode(this.tsqExpressions[idx].alias);
|
|
116
|
-
gpgTooltipTitleDiv.appendChild(title);
|
|
117
|
-
var gpgTooltipTable = document.createElement("table");
|
|
118
|
-
gpgTooltipTable.className = "tsi-gpgTooltipValues";
|
|
119
|
-
gpgTooltipTable.classList.add("tsi-gpgTooltipTable");
|
|
120
|
-
for (var i = 0; i < dataPointArr.length; i++) {
|
|
121
|
-
var spacer = document.createElement("tr");
|
|
122
|
-
spacer.className = "tsi-gpgTableSpacer";
|
|
123
|
-
gpgTooltipTable.appendChild(spacer);
|
|
124
|
-
var gpgTooltipValueRow = document.createElement("tr");
|
|
125
|
-
var gpgValueLabelCell = document.createElement("td");
|
|
126
|
-
gpgValueLabelCell.className = "tsi-gpgValueLabel";
|
|
127
|
-
var labelName = document.createTextNode(dataPointArr[i][0]);
|
|
128
|
-
gpgValueLabelCell.appendChild(labelName);
|
|
129
|
-
gpgTooltipValueRow.appendChild(gpgValueLabelCell);
|
|
130
|
-
var gpgValueCell = document.createElement("td");
|
|
131
|
-
gpgValueCell.className = "tsi-gpgValueCell";
|
|
132
|
-
var cellData = document.createTextNode(dataPointArr[i][1].toFixed(5));
|
|
133
|
-
gpgValueCell.appendChild(cellData);
|
|
134
|
-
gpgTooltipValueRow.appendChild(gpgValueCell);
|
|
135
|
-
gpgTooltipTable.appendChild(gpgTooltipValueRow);
|
|
136
|
-
}
|
|
137
|
-
gpgTooltipInnerDiv.appendChild(gpgTooltipTitleDiv);
|
|
138
|
-
gpgTooltipInnerDiv.appendChild(gpgTooltipTable);
|
|
139
|
-
gpgTooltipDiv.appendChild(gpgTooltipInnerDiv);
|
|
140
|
-
return gpgTooltipDiv;
|
|
141
|
-
};
|
|
142
|
-
return GeoProcessGraphic;
|
|
143
|
-
}(HistoryPlayback));
|
|
144
|
-
|
|
145
|
-
export { GeoProcessGraphic as G };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { H as HistoryPlayback } from './HistoryPlayback-DmJ6u7lU.js';
|
|
2
|
-
import TsqExpression from './TsqExpression.js';
|
|
3
|
-
import 'd3';
|
|
4
|
-
import './Component-DXwYPoSo.js';
|
|
5
|
-
import './Enums-DWpaQlXk.js';
|
|
6
|
-
import './Interfaces-R_1l9lIT.js';
|
|
7
|
-
import './PlaybackControls.js';
|
|
8
|
-
import './ChartDataOptions-D0BJuRZy.js';
|
|
9
|
-
|
|
10
|
-
declare class GeoProcessGraphic extends HistoryPlayback {
|
|
11
|
-
private azureMapsSubscriptionKey;
|
|
12
|
-
private zoom;
|
|
13
|
-
private width;
|
|
14
|
-
private height;
|
|
15
|
-
private theme;
|
|
16
|
-
private center;
|
|
17
|
-
private bearing;
|
|
18
|
-
private pitch;
|
|
19
|
-
private maxZoom;
|
|
20
|
-
private minZoom;
|
|
21
|
-
private duration;
|
|
22
|
-
constructor(renderTarget: Element);
|
|
23
|
-
render(environmentFqdn: string, getToken: () => Promise<string>, data: Array<TsqExpression>, chartOptions: any): void;
|
|
24
|
-
protected loadResources(): Promise<any>;
|
|
25
|
-
protected draw(): void;
|
|
26
|
-
protected getDataPoints(results: Array<IGeoProcessGraphicLabelInfo>): void;
|
|
27
|
-
protected parseTsqResponse(response: any): {};
|
|
28
|
-
protected updateDataMarkers(dataPoints: Array<any>): void;
|
|
29
|
-
protected createTable(dataPointArr: any, idx: any): HTMLDivElement;
|
|
30
|
-
}
|
|
31
|
-
interface IGeoProcessGraphicLabelInfo {
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export { GeoProcessGraphic as default };
|