@smartnet360/svelte-components 0.0.24 → 0.0.25
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/dist/apps/antenna-pattern/components/AntennaSettingsModal.svelte +1 -4
- package/dist/apps/antenna-pattern/helpers/plotly-utils.d.ts +1 -0
- package/dist/apps/antenna-pattern/helpers/plotly-utils.js +2 -1
- package/dist/apps/antenna-pattern/utils/chart-engines/polar-area-utils.d.ts +1 -0
- package/dist/apps/antenna-pattern/utils/chart-engines/polar-area-utils.js +2 -1
- package/dist/apps/antenna-pattern/utils/chart-engines/polar-bar-utils.d.ts +1 -0
- package/dist/apps/antenna-pattern/utils/chart-engines/polar-bar-utils.js +2 -1
- package/dist/apps/antenna-pattern/utils/chart-engines/polar-line-utils.d.ts +1 -0
- package/dist/apps/antenna-pattern/utils/chart-engines/polar-line-utils.js +2 -1
- package/dist/apps/antenna-pattern/utils/msi-parser.js +1 -1
- package/package.json +1 -1
@@ -194,11 +194,8 @@
|
|
194
194
|
<!-- Clear Data Section -->
|
195
195
|
<div class="card border-danger">
|
196
196
|
<div class="card-body">
|
197
|
-
<h6 class="card-title text-danger">
|
198
|
-
<i class="bi bi-exclamation-triangle me-2"></i>Danger Zone
|
199
|
-
</h6>
|
200
197
|
<p class="text-muted mb-3">
|
201
|
-
Permanently delete all antenna data from the database.
|
198
|
+
Permanently delete all antenna data from the database.
|
202
199
|
</p>
|
203
200
|
|
204
201
|
{#if !showClearConfirm}
|
@@ -149,7 +149,8 @@ export function convertAntennaToPlotlyData(antenna, mechanicalTilt, patternType,
|
|
149
149
|
line: {
|
150
150
|
color,
|
151
151
|
width: 2
|
152
|
-
}
|
152
|
+
},
|
153
|
+
hovertemplate: 'Gain: %{r:.1f} dB<br>Angle: %{theta}°<extra></extra>'
|
153
154
|
};
|
154
155
|
if (fillColor) {
|
155
156
|
plotlyData.fill = 'toself';
|
@@ -45,7 +45,8 @@ export function convertAntennaPatternToArea(pattern, name, baseColor, opacity =
|
|
45
45
|
width: 2
|
46
46
|
},
|
47
47
|
fillcolor: fillColor,
|
48
|
-
opacity: 1 // Set to 1 since we control opacity via fillcolor
|
48
|
+
opacity: 1, // Set to 1 since we control opacity via fillcolor
|
49
|
+
hovertemplate: '%{theta} <br>%{r:.2f} dB<extra></extra>'
|
49
50
|
};
|
50
51
|
}
|
51
52
|
/**
|
@@ -12,7 +12,7 @@ export async function parseMSIFile(file) {
|
|
12
12
|
vertical_pattern: Array(360).fill(0)
|
13
13
|
};
|
14
14
|
// Parse filename for metadata
|
15
|
-
const filename = file.name;
|
15
|
+
const filename = file.name.replace(/\.(msi|pnt)$/i, '');
|
16
16
|
const filenameParts = filename.split('_');
|
17
17
|
// Initialize filename metadata
|
18
18
|
const filenameMetadata = {
|