raain-ui 2.3.21 → 2.3.23
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/CHANGELOG.md +9 -0
- package/README.md +5 -56
- package/data/wind-markers.css +71 -536
- package/drawers/CartesianDrawer.js +2 -2
- package/drawers/PolarDrawer.js +3 -3
- package/factories/DynamicDateStatusElement.js +5 -6
- package/factories/MapElement.d.ts +19 -20
- package/factories/MapElement.js +52 -50
- package/layers/MarkersLayer.d.ts +3 -3
- package/layers/MarkersLayer.js +13 -12
- package/package.json +3 -3
- package/tools/RaainDivIcon.d.ts +130 -0
- package/tools/RaainDivIcon.js +243 -0
- package/tools/index.d.ts +1 -0
- package/tools/index.js +2 -1
- package/utils/spinning-ball-wrapper.js +2 -2
- package/data/wind-markers-test.css +0 -174
- package/data/wind-markers.v1.css +0 -260
- package/data/wind-markers.v2.css +0 -619
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Added
|
|
11
|
+
|
|
12
|
+
- Add `RaainDivIcon` to show markers in map: it allows rotation and more complex design manipulation
|
|
13
|
+
- Add `example-rotated-icons.html` to use raain-ui MapElement pattern
|
|
14
|
+
|
|
15
|
+
## [2.3.22] - 2025-10-26
|
|
16
|
+
|
|
17
|
+
## [2.3.21] - 2025-10-16
|
|
18
|
+
|
|
10
19
|
### Changed
|
|
11
20
|
|
|
12
21
|
- wind-markers.css updated to show trustful indicator
|
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
## ✨ Features
|
|
31
31
|
|
|
32
32
|
- **Interactive Maps**: Leaflet-based map visualizations for geospatial rainfall data
|
|
33
|
-
- **
|
|
33
|
+
- **Performance Rendering**: Pixi.js-powered rendering for smooth visualizations
|
|
34
34
|
- **Data Charting**: Chart.js integration for time-series and statistical analysis
|
|
35
35
|
- **3D Globe Visualization**: Earth visualization for global rainfall patterns
|
|
36
36
|
- **Time Navigation**: Advanced date/time controls for temporal data exploration
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
|
|
40
40
|
## 📸 Screenshots
|
|
41
41
|
|
|
42
|
-
Here are some screenshots showcasing the raain-ui components in action:
|
|
42
|
+
Here are some screenshots showcasing the `raain-ui` components in action:
|
|
43
43
|
|
|
44
44
|
### Map Visualization
|
|
45
45
|
|
|
@@ -61,7 +61,7 @@ npm install raain-ui
|
|
|
61
61
|
|
|
62
62
|
## 🚀 Usage
|
|
63
63
|
|
|
64
|
-
raain-ui provides a set of components that can be
|
|
64
|
+
`raain-ui` provides a set of components that can be integrated into your application. Here's an example of
|
|
65
65
|
how to use the MapElement component:
|
|
66
66
|
|
|
67
67
|
```javascript
|
|
@@ -97,58 +97,7 @@ npm start
|
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
This will open the example application at http://localhost:1234, where you can explore the various components and
|
|
100
|
-
features of raain-ui
|
|
101
|
-
|
|
102
|
-
### 🌬️ Wind Marker Animations
|
|
103
|
-
|
|
104
|
-
raain-ui includes CSS animations for visualizing wind speed and direction on map markers. To use these animations in
|
|
105
|
-
your application:
|
|
106
|
-
|
|
107
|
-
**1. Import the CSS file in your global styles:**
|
|
108
|
-
|
|
109
|
-
```scss
|
|
110
|
-
// In your global.scss or styles.scss
|
|
111
|
-
@import "~raain-ui/data/wind-markers.css";
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
**Or in HTML:**
|
|
115
|
-
|
|
116
|
-
```html
|
|
117
|
-
|
|
118
|
-
<link rel="stylesheet" href="node_modules/raain-ui/dist/data/wind-markers.css">
|
|
119
|
-
```
|
|
120
|
-
|
|
121
|
-
**2. Use with MapElement:**
|
|
122
|
-
|
|
123
|
-
```typescript
|
|
124
|
-
import {MapLatLng} from 'raain-ui';
|
|
125
|
-
|
|
126
|
-
// Create a marker with wind data
|
|
127
|
-
const windMarker = new MapLatLng(
|
|
128
|
-
lat, // latitude
|
|
129
|
-
lng, // longitude
|
|
130
|
-
azimuth, // alt property: azimuth 0-360° (0=North, 90=East, 180=South, 270=West)
|
|
131
|
-
id, // marker id
|
|
132
|
-
name, // marker name
|
|
133
|
-
strengthInMs // value property: wind strength in meters/second
|
|
134
|
-
);
|
|
135
|
-
|
|
136
|
-
// Apply wind animation
|
|
137
|
-
mapElement.changeMarkerStyle(
|
|
138
|
-
windMarker,
|
|
139
|
-
'marker-wind marker-wind-225', // classes: base + direction
|
|
140
|
-
{strength: 10} // CSS variable: wind strength
|
|
141
|
-
);
|
|
142
|
-
```
|
|
143
|
-
|
|
144
|
-
**Available azimuth classes:** 0, 10, 20, 30, 45, 90, 135, 180, 200, 225, 270, 315
|
|
145
|
-
|
|
146
|
-
The animation automatically:
|
|
147
|
-
|
|
148
|
-
- Shows a directional arrow indicating wind direction
|
|
149
|
-
- Animates marker movement in the wind direction
|
|
150
|
-
- Adjusts animation speed based on wind strength
|
|
151
|
-
- Displays a blue glow with intensity matching wind strength
|
|
100
|
+
features of `raain-ui`.
|
|
152
101
|
|
|
153
102
|
## 📚 Documentation
|
|
154
103
|
|
|
@@ -215,7 +164,7 @@ See the [Changelog](./CHANGELOG.md) for a detailed list of changes in each versi
|
|
|
215
164
|
|
|
216
165
|
## 👥 Contributing
|
|
217
166
|
|
|
218
|
-
Contributions are welcome! If you'd like to contribute to raain-ui
|
|
167
|
+
Contributions are welcome! If you'd like to contribute to `raain-ui`, please follow these steps:
|
|
219
168
|
|
|
220
169
|
1. Fork the repository
|
|
221
170
|
2. Create a feature branch (`git checkout -b feature/amazing-feature`)
|