tsichart-core 1.0.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 +22 -0
- package/README.MD +189 -0
- package/dist/AggregateExpression.d.ts +13 -0
- package/dist/AggregateExpression.js +70 -0
- package/dist/AvailabilityChart-i_efwXCX.js +488 -0
- package/dist/AvailabilityChart.d.ts +59 -0
- package/dist/AvailabilityChart.js +26 -0
- package/dist/ChartComponent-DTcc6aED.d.ts +80 -0
- package/dist/ChartComponent-DnKLTxWe.js +302 -0
- package/dist/ChartComponentData-D5wuQmmZ.d.ts +47 -0
- package/dist/ChartDataOptions-DBS28b1-.d.ts +38 -0
- package/dist/ChartDataOptions-DRd8NHra.js +49 -0
- package/dist/ChartVisualizationComponent-CG7e5xlc.js +23 -0
- package/dist/ChartVisualizationComponent-DBjiqR1n.d.ts +8 -0
- package/dist/ColorPicker-CH__K8xm.js +120 -0
- package/dist/ColorPicker.d.ts +28 -0
- package/dist/ColorPicker.js +6 -0
- package/dist/Component-CofgyEw0.js +401 -0
- package/dist/Component-Rp30sSAW.d.ts +226 -0
- package/dist/ContextMenu-DABSkTA2.js +197 -0
- package/dist/DateTimeButton-CMcCxc8x.d.ts +16 -0
- package/dist/DateTimeButton-Ca1487GR.js +38 -0
- package/dist/DateTimeButtonRange-DpgfhHQt.js +71 -0
- package/dist/DateTimeButtonRange.d.ts +19 -0
- package/dist/DateTimeButtonRange.js +15 -0
- package/dist/DateTimeButtonSingle-C6cTx5VO.js +48 -0
- package/dist/DateTimeButtonSingle.d.ts +17 -0
- package/dist/DateTimeButtonSingle.js +14 -0
- package/dist/DateTimePicker-BH6qiVfQ.js +532 -0
- package/dist/DateTimePicker.d.ts +69 -0
- package/dist/DateTimePicker.js +13 -0
- package/dist/EllipsisMenu-30FNqoIv.js +116 -0
- package/dist/EllipsisMenu.d.ts +20 -0
- package/dist/EllipsisMenu.js +6 -0
- package/dist/Enums-ChUuTtHV.d.ts +12 -0
- package/dist/EventsTable-a0XLbsMF.js +553 -0
- package/dist/EventsTable.d.ts +34 -0
- package/dist/EventsTable.js +10 -0
- package/dist/GeoProcessGraphic-AVAzyF7k.js +145 -0
- package/dist/GeoProcessGraphic.d.ts +34 -0
- package/dist/GeoProcessGraphic.js +7 -0
- package/dist/Grid-DfFAkeeV.js +874 -0
- package/dist/Grid.d.ts +43 -0
- package/dist/Grid.js +6 -0
- package/dist/GroupedBarChart-BspwM8r2.js +579 -0
- package/dist/GroupedBarChart.d.ts +22 -0
- package/dist/GroupedBarChart.js +17 -0
- package/dist/GroupedBarChartData-BRCyDxbA.js +121 -0
- package/dist/GroupedBarChartData-C0YQydrP.d.ts +20 -0
- package/dist/Heatmap-D8ET8Ue8.js +524 -0
- package/dist/Heatmap.d.ts +31 -0
- package/dist/Heatmap.js +14 -0
- package/dist/Hierarchy-QkWLHkxo.js +260 -0
- package/dist/Hierarchy.d.ts +39 -0
- package/dist/Hierarchy.js +6 -0
- package/dist/HierarchyNavigation-CR6YUilh.js +336 -0
- package/dist/HierarchyNavigation.d.ts +34 -0
- package/dist/HierarchyNavigation.js +6 -0
- package/dist/HistoryPlayback-BmA-54lT.d.ts +68 -0
- package/dist/HistoryPlayback-SjeQbAPq.js +175 -0
- package/dist/Interfaces-BKRQ685G.d.ts +6 -0
- package/dist/Legend-DlSXQXHF.js +497 -0
- package/dist/LineChart-CExEyjZa.js +3181 -0
- package/dist/LineChart.d.ts +163 -0
- package/dist/LineChart.js +18 -0
- package/dist/ModelAutocomplete-TRD16egq.js +100 -0
- package/dist/ModelAutocomplete.d.ts +12 -0
- package/dist/ModelAutocomplete.js +7 -0
- package/dist/ModelSearch-WEa7Ud20.js +189 -0
- package/dist/ModelSearch.d.ts +23 -0
- package/dist/ModelSearch.js +9 -0
- package/dist/PieChart-B1ZXk13Q.js +258 -0
- package/dist/PieChart.d.ts +26 -0
- package/dist/PieChart.js +17 -0
- package/dist/PlaybackControls-Dwt6dif9.js +195 -0
- package/dist/PlaybackControls.d.ts +39 -0
- package/dist/PlaybackControls.js +13 -0
- package/dist/ProcessGraphic-CixT-zZl.js +154 -0
- package/dist/ProcessGraphic.d.ts +31 -0
- package/dist/ProcessGraphic.js +7 -0
- package/dist/README.MD +189 -0
- package/dist/ScatterPlot-DrPoHNDJ.js +924 -0
- package/dist/ScatterPlot.d.ts +115 -0
- package/dist/ScatterPlot.js +17 -0
- package/dist/SingleDateTimePicker-7anflEq8.js +213 -0
- package/dist/SingleDateTimePicker.d.ts +45 -0
- package/dist/SingleDateTimePicker.js +12 -0
- package/dist/Slider-BtSdC4fj.js +186 -0
- package/dist/Slider.d.ts +31 -0
- package/dist/Slider.js +6 -0
- package/dist/TemporalXAxisComponent-CyiM5EH0.d.ts +23 -0
- package/dist/TemporalXAxisComponent-DkyVvASs.js +129 -0
- package/dist/TimezonePicker-ClfP1lBL.js +58 -0
- package/dist/TimezonePicker.d.ts +16 -0
- package/dist/TimezonePicker.js +10 -0
- package/dist/Tooltip-Fa-0Xekn.js +104 -0
- package/dist/TsqExpression.d.ts +36 -0
- package/dist/TsqExpression.js +89 -0
- package/dist/UXClient-DydSPZwM.js +230 -0
- package/dist/UXClient.d.ts +74 -0
- package/dist/UXClient.js +47 -0
- package/dist/Utils-BsPLzJBC.d.ts +104 -0
- package/dist/Utils-C_j8IgZh.js +1138 -0
- package/dist/Utils.d.ts +7 -0
- package/dist/Utils.js +7 -0
- package/dist/_tslib-5_9pMg1F.js +96 -0
- package/dist/package.json +106 -0
- package/dist/pikaday-DMSzaLH6.js +1252 -0
- package/dist/tsiclient.cjs.js +3 -0
- package/dist/tsiclient.cjs.js.LICENSE.txt +19 -0
- package/dist/tsiclient.cjs.js.map +1 -0
- package/dist/tsiclient.css +17323 -0
- package/dist/tsiclient.d.ts +46 -0
- package/dist/tsiclient.esm.js +3 -0
- package/dist/tsiclient.esm.js.LICENSE.txt +19 -0
- package/dist/tsiclient.esm.js.map +1 -0
- package/dist/tsiclient.js +58 -0
- package/dist/tsiclient.min.css +6 -0
- package/dist/tsiclient.min.css.map +1 -0
- package/dist/tsiclient.umd.js +3 -0
- package/dist/tsiclient.umd.js.LICENSE.txt +19 -0
- package/dist/tsiclient.umd.js.map +1 -0
- package/dist/tsiclient.umd.min.js +3 -0
- package/dist/tsiclient.umd.min.js.LICENSE.txt +19 -0
- package/dist/tsiclient.umd.min.js.map +1 -0
- package/package.json +106 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { _ as __extends } from './_tslib-5_9pMg1F.js';
|
|
2
|
+
import { H as HistoryPlayback } from './HistoryPlayback-SjeQbAPq.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 };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { H as HistoryPlayback } from './HistoryPlayback-BmA-54lT.js';
|
|
2
|
+
import TsqExpression from './TsqExpression.js';
|
|
3
|
+
import 'd3';
|
|
4
|
+
import './Component-Rp30sSAW.js';
|
|
5
|
+
import './Enums-ChUuTtHV.js';
|
|
6
|
+
import './Interfaces-BKRQ685G.js';
|
|
7
|
+
import './PlaybackControls.js';
|
|
8
|
+
import './ChartDataOptions-DBS28b1-.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 };
|