magic-glyphs 0.8.1 → 0.8.5
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/README.md +10 -2
- package/data/index.json +1 -1
- package/docs/native-lottie.md +1 -1
- package/lib.js +3 -1
- package/package.json +1 -1
- package/react/index.d.ts +2 -0
- package/react/index.js +1 -1
- package/tools/audio.js +15 -2
- package/vue/index.d.ts +2 -2
- package/vue/index.js +1 -1
- package/web/magic-glyphs.all.js +123 -10
- package/web/runtime.d.ts +17 -0
- package/web/runtime.js +123 -10
- package/wordpress/magic-glyphs/magic-glyphs.all.js +123 -10
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
**[Live demo, docs and free icon browser →](https://magicglyphs.com)**
|
|
8
8
|
|
|
9
9
|
- **120 free icons** in this package, free for personal and commercial use.
|
|
10
|
-
- **
|
|
10
|
+
- **7,000+ icons** in the full library with a licence key: interface, arrows, files, commerce, devices, media, food, nature, people, travel and flags.
|
|
11
11
|
- **Tiny:** about 8 KB compressed for the code that draws, animates and plays every icon, about 0.2 KB per icon (import single icons: `magic-glyphs/icons/heart`), and no browser dependencies.
|
|
12
12
|
- **Animated GIF, APNG, MP4 and WebM** for places that cannot run code: `--format gif`, video with the sound baked in.
|
|
13
13
|
- **Accessible:** respects reduced motion, takes an accessible label, and sound is easy to mute.
|
|
@@ -16,8 +16,15 @@
|
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
npm install magic-glyphs
|
|
19
|
+
# or
|
|
20
|
+
yarn add magic-glyphs
|
|
21
|
+
pnpm add magic-glyphs
|
|
22
|
+
bun add magic-glyphs
|
|
23
|
+
deno add npm:magic-glyphs
|
|
19
24
|
```
|
|
20
25
|
|
|
26
|
+
Rust: `cargo add magic-glyphs` ([crates.io](https://crates.io/crates/magic-glyphs)). No install at all: `<script src="https://cdn.jsdelivr.net/npm/magic-glyphs/web/magic-glyphs.all.js" defer></script>` gives you the free icons.
|
|
27
|
+
|
|
21
28
|
The command line tool needs Node.js 18 or later. The browser code has no dependencies.
|
|
22
29
|
|
|
23
30
|
## Quick start
|
|
@@ -111,7 +118,8 @@ Every icon has a short synthesized sound matched to its motion, panned left or r
|
|
|
111
118
|
|
|
112
119
|
| Setting | Range |
|
|
113
120
|
|---|---|
|
|
114
|
-
| `sound-name` | any of the
|
|
121
|
+
| `sound-name` | any of the 100 sounds |
|
|
122
|
+
| `sound-src` | your own audio file: a URL or `data:` URI |
|
|
115
123
|
| `sound-volume` | 0 to 2 |
|
|
116
124
|
| `sound-pitch` | -12 to 12 semitones |
|
|
117
125
|
| `sound-speed` | 0.5 to 2 |
|