@jannchie/icons 0.3.0 → 0.5.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/dist/all.js +84 -0
- package/dist/icons/arrows-up-down-half.js +8 -0
- package/dist/icons/c.js +8 -0
- package/dist/icons/continent.js +8 -0
- package/dist/icons/cpp.js +8 -0
- package/dist/icons/csharp.js +8 -0
- package/dist/icons/diorama.js +8 -0
- package/dist/icons/droplet-off.js +8 -0
- package/dist/icons/github.js +8 -0
- package/dist/icons/golang.js +8 -0
- package/dist/icons/haskell.js +8 -0
- package/dist/icons/hologram.js +8 -0
- package/dist/icons/java.js +8 -0
- package/dist/icons/javascript.js +8 -0
- package/dist/icons/kotlin.js +8 -0
- package/dist/icons/lua.js +8 -0
- package/dist/icons/map-pin-ban.js +8 -0
- package/dist/icons/map-pin-bookmark.js +8 -0
- package/dist/icons/map-pin-check.js +8 -0
- package/dist/icons/map-pin-clock.js +8 -0
- package/dist/icons/map-pin-cloud.js +8 -0
- package/dist/icons/map-pin-heart.js +8 -0
- package/dist/icons/map-pin-image.js +8 -0
- package/dist/icons/map-pin-lock.js +8 -0
- package/dist/icons/map-pin-minus.js +8 -0
- package/dist/icons/map-pin-music.js +8 -0
- package/dist/icons/map-pin-plus.js +8 -0
- package/dist/icons/map-pin-search.js +8 -0
- package/dist/icons/map-pin-sparkle.js +8 -0
- package/dist/icons/map-pin-star.js +8 -0
- package/dist/icons/map-pin-video.js +8 -0
- package/dist/icons/map-pin-x.js +8 -0
- package/dist/icons/php.js +8 -0
- package/dist/icons/python.js +8 -0
- package/dist/icons/region.js +8 -0
- package/dist/icons/ruby.js +8 -0
- package/dist/icons/rust.js +8 -0
- package/dist/icons/swift.js +8 -0
- package/dist/icons/terrain-lower.js +8 -0
- package/dist/icons/terrain-raise.js +8 -0
- package/dist/icons/terrain-smooth.js +8 -0
- package/dist/icons/turntable.js +8 -0
- package/dist/icons/typescript.js +8 -0
- package/dist/index.d.ts +84 -0
- package/dist/index.js +43 -1
- package/dist/src/battery.js +22 -1
- package/dist/src/cc.js +2 -1
- package/dist/src/controller.js +5 -2
- package/dist/src/icons/api.js +2 -2
- package/dist/src/icons/arrows-up-down-half.js +13 -0
- package/dist/src/icons/battery-full.js +1 -1
- package/dist/src/icons/battery-low.js +1 -1
- package/dist/src/icons/battery-medium.js +1 -1
- package/dist/src/icons/bee.js +3 -2
- package/dist/src/icons/bike.js +5 -13
- package/dist/src/icons/billiards.js +2 -2
- package/dist/src/icons/bingo.js +2 -2
- package/dist/src/icons/c.js +12 -0
- package/dist/src/icons/card-plus-four.js +2 -2
- package/dist/src/icons/card-plus-two.js +2 -2
- package/dist/src/icons/cat.js +4 -3
- package/dist/src/icons/continent.js +5 -0
- package/dist/src/icons/cpp.js +21 -0
- package/dist/src/icons/csharp.js +17 -0
- package/dist/src/icons/diorama.js +25 -0
- package/dist/src/icons/droplet-off.js +6 -0
- package/dist/src/icons/element.js +3 -3
- package/dist/src/icons/fog.js +2 -2
- package/dist/src/icons/github.js +4 -0
- package/dist/src/icons/golang.js +10 -0
- package/dist/src/icons/haskell.js +10 -0
- package/dist/src/icons/hologram.js +32 -0
- package/dist/src/icons/html.js +6 -2
- package/dist/src/icons/java.js +10 -0
- package/dist/src/icons/javascript.js +14 -0
- package/dist/src/icons/json.js +2 -2
- package/dist/src/icons/kotlin.js +15 -0
- package/dist/src/icons/list-arrow-down.js +2 -2
- package/dist/src/icons/list-arrow-left.js +2 -2
- package/dist/src/icons/list-arrow-right.js +2 -2
- package/dist/src/icons/list-arrow-up.js +2 -2
- package/dist/src/icons/list-assets.js +2 -2
- package/dist/src/icons/list-ban.js +2 -2
- package/dist/src/icons/list-bookmark.js +2 -2
- package/dist/src/icons/list-check.js +2 -2
- package/dist/src/icons/list-circle.js +2 -2
- package/dist/src/icons/list-clock.js +2 -2
- package/dist/src/icons/list-cloud.js +2 -2
- package/dist/src/icons/list-code.js +2 -2
- package/dist/src/icons/list-gauge.js +2 -2
- package/dist/src/icons/list-heart.js +2 -2
- package/dist/src/icons/list-image.js +2 -2
- package/dist/src/icons/list-lock.js +2 -2
- package/dist/src/icons/list-minus.js +2 -2
- package/dist/src/icons/list-music-plus.js +2 -2
- package/dist/src/icons/list-music.js +2 -2
- package/dist/src/icons/list-ordered.js +4 -3
- package/dist/src/icons/list-plug.js +2 -2
- package/dist/src/icons/list-plus.js +2 -2
- package/dist/src/icons/list-puzzle.js +2 -2
- package/dist/src/icons/list-search.js +2 -2
- package/dist/src/icons/list-shield.js +2 -2
- package/dist/src/icons/list-sparkle.js +2 -2
- package/dist/src/icons/list-star.js +2 -2
- package/dist/src/icons/list-video.js +2 -2
- package/dist/src/icons/list-x.js +2 -2
- package/dist/src/icons/lua.js +9 -0
- package/dist/src/icons/map-pin-ban.js +7 -0
- package/dist/src/icons/map-pin-bookmark.js +7 -0
- package/dist/src/icons/map-pin-check.js +7 -0
- package/dist/src/icons/map-pin-clock.js +7 -0
- package/dist/src/icons/map-pin-cloud.js +7 -0
- package/dist/src/icons/map-pin-heart.js +7 -0
- package/dist/src/icons/map-pin-image.js +7 -0
- package/dist/src/icons/map-pin-lock.js +7 -0
- package/dist/src/icons/map-pin-minus.js +7 -0
- package/dist/src/icons/map-pin-music.js +7 -0
- package/dist/src/icons/map-pin-plus.js +7 -0
- package/dist/src/icons/map-pin-search.js +7 -0
- package/dist/src/icons/map-pin-sparkle.js +7 -0
- package/dist/src/icons/map-pin-star.js +7 -0
- package/dist/src/icons/map-pin-video.js +7 -0
- package/dist/src/icons/map-pin-x.js +7 -0
- package/dist/src/icons/medal-1.js +2 -2
- package/dist/src/icons/medal-2.js +2 -2
- package/dist/src/icons/medal-3.js +2 -2
- package/dist/src/icons/microscope.js +10 -10
- package/dist/src/icons/mushroom.js +5 -5
- package/dist/src/icons/php.js +8 -0
- package/dist/src/icons/pig.js +4 -3
- package/dist/src/icons/piggy-bank.js +15 -14
- package/dist/src/icons/python.js +25 -0
- package/dist/src/icons/region.js +13 -0
- package/dist/src/icons/ruby.js +16 -0
- package/dist/src/icons/rugby.js +6 -6
- package/dist/src/icons/rust.js +16 -0
- package/dist/src/icons/scooter.js +3 -8
- package/dist/src/icons/sudoku.js +2 -2
- package/dist/src/icons/swift.js +4 -0
- package/dist/src/icons/tag-0.js +2 -2
- package/dist/src/icons/tag-1.js +2 -2
- package/dist/src/icons/tag-2.js +2 -2
- package/dist/src/icons/tag-3.js +2 -2
- package/dist/src/icons/tag-4.js +2 -2
- package/dist/src/icons/tag-5.js +2 -2
- package/dist/src/icons/tag-6.js +2 -2
- package/dist/src/icons/tag-7.js +2 -2
- package/dist/src/icons/tag-8.js +2 -2
- package/dist/src/icons/tag-9.js +2 -2
- package/dist/src/icons/tag-a.js +2 -2
- package/dist/src/icons/tag-b.js +2 -2
- package/dist/src/icons/tag-c.js +2 -2
- package/dist/src/icons/tag-d.js +2 -2
- package/dist/src/icons/tag-e.js +2 -2
- package/dist/src/icons/tag-f.js +2 -2
- package/dist/src/icons/tag-g.js +2 -2
- package/dist/src/icons/tag-h.js +2 -2
- package/dist/src/icons/tag-i.js +2 -2
- package/dist/src/icons/tag-j.js +2 -2
- package/dist/src/icons/tag-k.js +2 -2
- package/dist/src/icons/tag-l.js +2 -2
- package/dist/src/icons/tag-m.js +2 -2
- package/dist/src/icons/tag-n.js +2 -2
- package/dist/src/icons/tag-o.js +2 -2
- package/dist/src/icons/tag-p.js +2 -2
- package/dist/src/icons/tag-q.js +2 -2
- package/dist/src/icons/tag-r.js +2 -2
- package/dist/src/icons/tag-s.js +2 -2
- package/dist/src/icons/tag-t.js +2 -2
- package/dist/src/icons/tag-u.js +2 -2
- package/dist/src/icons/tag-v.js +2 -2
- package/dist/src/icons/tag-w.js +2 -2
- package/dist/src/icons/tag-x.js +2 -2
- package/dist/src/icons/tag-y.js +2 -2
- package/dist/src/icons/tag-z.js +2 -2
- package/dist/src/icons/taxi.js +1 -1
- package/dist/src/icons/terrain-lower.js +10 -0
- package/dist/src/icons/terrain-raise.js +10 -0
- package/dist/src/icons/terrain-smooth.js +19 -0
- package/dist/src/icons/traffic-cone.js +9 -8
- package/dist/src/icons/turntable.js +21 -0
- package/dist/src/icons/typescript.js +14 -0
- package/dist/src/laundry.js +3 -3
- package/dist/src/letters.js +35 -16
- package/dist/src/license.js +3 -3
- package/dist/src/list.js +7 -2
- package/dist/src/loading.js +3 -3
- package/dist/src/pin.js +35 -0
- package/dist/src/quality.js +3 -3
- package/dist/src/rate.js +3 -3
- package/dist/src/rating.js +15 -12
- package/dist/src/resin.js +3 -3
- package/dist/src/scene.js +5 -1
- package/dist/src/sensor.js +7 -6
- package/dist/src/symbols.js +35 -22
- package/dist/src/unit.js +2 -2
- package/package.json +1 -1
package/dist/src/battery.js
CHANGED
|
@@ -6,6 +6,27 @@ var shell = (radius) => [rounded([
|
|
|
6
6
|
[19.5, 16.5],
|
|
7
7
|
[2.5, 16.5]
|
|
8
8
|
], Math.min(radius, 2)), "M21.5 9.75V13.25"];
|
|
9
|
-
var level = (ratio) =>
|
|
9
|
+
var level = (ratio, radius) => {
|
|
10
|
+
const x = Math.round(2.5 + 17 * ratio - .5) + .5;
|
|
11
|
+
const r = Math.min(radius, 2);
|
|
12
|
+
const rx = x >= 19.5 ? r : 0;
|
|
13
|
+
return {
|
|
14
|
+
d: rounded([
|
|
15
|
+
[
|
|
16
|
+
x,
|
|
17
|
+
6.5,
|
|
18
|
+
rx
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
x,
|
|
22
|
+
16.5,
|
|
23
|
+
rx
|
|
24
|
+
],
|
|
25
|
+
[2.5, 16.5],
|
|
26
|
+
[2.5, 6.5]
|
|
27
|
+
], r),
|
|
28
|
+
fill: true
|
|
29
|
+
};
|
|
30
|
+
};
|
|
10
31
|
//#endregion
|
|
11
32
|
export { level, shell };
|
package/dist/src/cc.js
CHANGED
package/dist/src/controller.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { crisp, rounded } from "./geometry.js";
|
|
2
|
-
import { line, snap } from "./letters.js";
|
|
2
|
+
import { LABEL, line, snap } from "./letters.js";
|
|
3
3
|
//#region src/controller.js
|
|
4
|
-
var text = (str, center, s = 1, gap =
|
|
4
|
+
var text = (str, center, s = 1, gap = 2) => snap(line(str, center, s, gap, s, LABEL)).map((d) => ({
|
|
5
|
+
d,
|
|
6
|
+
thin: true
|
|
7
|
+
}));
|
|
5
8
|
var bumperLeft = "M2.5 18.5V12.5C2.5 9 5 6.5 8.5 6.5H16.5C19.75 6.5 21.5 8 21.5 10.5V18.5Z";
|
|
6
9
|
var bumperRight = "M21.5 18.5V12.5C21.5 9 19 6.5 15.5 6.5H7.5C4.25 6.5 2.5 8 2.5 10.5V18.5Z";
|
|
7
10
|
var triggerLeft = "M5.5 20.5V10C5.5 6 8.5 3.5 12.5 3.5C16 3.5 18.5 5 18.5 8V20.5Z";
|
package/dist/src/icons/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { line, snap } from "../letters.js";
|
|
1
|
+
import { LABEL, line, snap } from "../letters.js";
|
|
2
2
|
//#region src/icons/api.js
|
|
3
|
-
var api_default = () => snap(line("API", [12, 12], 1.05, 2, 1.5));
|
|
3
|
+
var api_default = () => snap(line("API", [12, 12], 1.05, 2, 1.5, LABEL));
|
|
4
4
|
//#endregion
|
|
5
5
|
export { api_default as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { crisp, rounded } from "../geometry.js";
|
|
2
|
+
//#region src/icons/arrows-up-down-half.js
|
|
3
|
+
var arrows_up_down_half_default = ({ radius }) => [rounded([
|
|
4
|
+
[9.5, 20.5],
|
|
5
|
+
[9.5, 3.5],
|
|
6
|
+
[5.5, 7.5]
|
|
7
|
+
], crisp(radius), false), rounded([
|
|
8
|
+
[14.5, 3.5],
|
|
9
|
+
[14.5, 20.5],
|
|
10
|
+
[18.5, 16.5]
|
|
11
|
+
], crisp(radius), false)];
|
|
12
|
+
//#endregion
|
|
13
|
+
export { arrows_up_down_half_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { level, shell } from "../battery.js";
|
|
2
2
|
//#region src/icons/battery-full.js
|
|
3
|
-
var battery_full_default = ({ radius }) => [...shell(radius), level(
|
|
3
|
+
var battery_full_default = ({ radius }) => [...shell(radius), level(1, radius)];
|
|
4
4
|
//#endregion
|
|
5
5
|
export { battery_full_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { level, shell } from "../battery.js";
|
|
2
2
|
//#region src/icons/battery-low.js
|
|
3
|
-
var battery_low_default = ({ radius }) => [...shell(radius), level(.3)];
|
|
3
|
+
var battery_low_default = ({ radius }) => [...shell(radius), level(.3, radius)];
|
|
4
4
|
//#endregion
|
|
5
5
|
export { battery_low_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { level, shell } from "../battery.js";
|
|
2
2
|
//#region src/icons/battery-medium.js
|
|
3
|
-
var battery_medium_default = ({ radius }) => [...shell(radius), level(.55)];
|
|
3
|
+
var battery_medium_default = ({ radius }) => [...shell(radius), level(.55, radius)];
|
|
4
4
|
//#endregion
|
|
5
5
|
export { battery_medium_default as default };
|
package/dist/src/icons/bee.js
CHANGED
|
@@ -5,7 +5,8 @@ var wing = (cx, cy, deg) => rotate(`M${cx - 3.5} ${cy}A3.5 2 0 1 0 ${cx + 3.5} $
|
|
|
5
5
|
var rad = (d) => d * Math.PI / 180;
|
|
6
6
|
var antenna = (deg) => {
|
|
7
7
|
const p = (r) => `${+(12 + r * Math.cos(rad(deg))).toFixed(3)} ${+(4.5 + r * Math.sin(rad(deg))).toFixed(3)}`;
|
|
8
|
-
|
|
8
|
+
const c = `${+(12 + 2.5 * Math.cos(rad(deg))).toFixed(3)} ${+(4.5 + 2.5 * Math.sin(rad(deg)) - .75).toFixed(3)}`;
|
|
9
|
+
return `M${p(1)}Q${c} ${p(4.25)}`;
|
|
9
10
|
};
|
|
10
11
|
var bee_default = () => [
|
|
11
12
|
{
|
|
@@ -14,7 +15,7 @@ var bee_default = () => [
|
|
|
14
15
|
},
|
|
15
16
|
antenna(-130),
|
|
16
17
|
antenna(-50),
|
|
17
|
-
"M8.5 12A3.5 3.5 0 0 1 15.5
|
|
18
|
+
"M8.5 12A3.5 3.5 0 0 1 15.5 12V15C15.5 17.25 13.75 19.25 12 20.5C10.25 19.25 8.5 17.25 8.5 15Z",
|
|
18
19
|
"M8.5 12.5H15.5",
|
|
19
20
|
"M8.5 14.5H15.5",
|
|
20
21
|
wing(5, 10, -25),
|
package/dist/src/icons/bike.js
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import { circle
|
|
1
|
+
import { circle } from "../geometry.js";
|
|
2
2
|
//#region src/icons/bike.js
|
|
3
|
-
var bike_default = (
|
|
3
|
+
var bike_default = () => [
|
|
4
4
|
circle(5.5, 16.5, 4),
|
|
5
5
|
circle(18.5, 16.5, 4),
|
|
6
|
-
|
|
7
|
-
[5.5, 16.5],
|
|
8
|
-
[11.5, 16.5],
|
|
9
|
-
[11.5, 9.5]
|
|
10
|
-
], 0),
|
|
11
|
-
rounded([
|
|
12
|
-
[11.5, 16.5],
|
|
13
|
-
[15.5, 9.5],
|
|
14
|
-
[11.5, 9.5]
|
|
15
|
-
], 0),
|
|
6
|
+
"M5.5 16.5H11.5L15.5 9.5",
|
|
16
7
|
"M18.5 16.5L15.5 9.5L14.64 7.5H17",
|
|
17
|
-
"M11.5
|
|
8
|
+
"M11.5 16.5V9.5",
|
|
9
|
+
"M9.5 9.5H13"
|
|
18
10
|
];
|
|
19
11
|
//#endregion
|
|
20
12
|
export { bike_default as default };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { circle } from "../geometry.js";
|
|
2
|
-
import { glyph } from "../letters.js";
|
|
2
|
+
import { LABEL, glyph } from "../letters.js";
|
|
3
3
|
import { ring } from "../marks.js";
|
|
4
4
|
//#region src/icons/billiards.js
|
|
5
5
|
var billiards_default = ({ radius }) => [
|
|
6
6
|
ring(),
|
|
7
7
|
circle(12, 11, 4.25),
|
|
8
8
|
{
|
|
9
|
-
d: glyph("8", 10.25, 8, 1),
|
|
9
|
+
d: glyph("8", 10.25, 8, 1, 1, LABEL),
|
|
10
10
|
thin: true
|
|
11
11
|
}
|
|
12
12
|
];
|
package/dist/src/icons/bingo.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { circle } from "../geometry.js";
|
|
2
|
-
import { glyph } from "../letters.js";
|
|
2
|
+
import { LABEL, glyph } from "../letters.js";
|
|
3
3
|
import { ring } from "../marks.js";
|
|
4
4
|
//#region src/icons/bingo.js
|
|
5
5
|
var bingo_default = ({ radius }) => [
|
|
6
6
|
ring(),
|
|
7
7
|
circle(12, 12, 5),
|
|
8
8
|
{
|
|
9
|
-
d: glyph("7", 10.25, 9, 1),
|
|
9
|
+
d: glyph("7", 10.25, 9, 1, 1, LABEL),
|
|
10
10
|
thin: true
|
|
11
11
|
}
|
|
12
12
|
];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import hexagon_default from "./hexagon.js";
|
|
2
|
+
//#region src/icons/c.js
|
|
3
|
+
var [cx, cy, r] = [
|
|
4
|
+
12,
|
|
5
|
+
12,
|
|
6
|
+
4.5
|
|
7
|
+
];
|
|
8
|
+
var a = Math.PI / 4;
|
|
9
|
+
var [dx, dy] = [r * Math.cos(a), r * Math.sin(a)].map((v) => +v.toFixed(3));
|
|
10
|
+
var c_default = (opts) => [...hexagon_default(opts), `M${cx + dx} ${cy - dy}A${r} ${r} 0 1 0 ${cx + dx} ${cy + dy}`];
|
|
11
|
+
//#endregion
|
|
12
|
+
export { c_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { glyph } from "../letters.js";
|
|
1
|
+
import { LABEL, glyph } from "../letters.js";
|
|
2
2
|
import { card } from "../game-card.js";
|
|
3
3
|
//#region src/icons/card-plus-four.js
|
|
4
4
|
var card_plus_four_default = ({ radius }) => [
|
|
@@ -12,7 +12,7 @@ var card_plus_four_default = ({ radius }) => [
|
|
|
12
12
|
thin: true
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
d: glyph("4", 12.5, 9.4, .7),
|
|
15
|
+
d: glyph("4", 12.5, 9.4, .7, .7, LABEL),
|
|
16
16
|
thin: true
|
|
17
17
|
}
|
|
18
18
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { glyph } from "../letters.js";
|
|
1
|
+
import { LABEL, glyph } from "../letters.js";
|
|
2
2
|
import { card } from "../game-card.js";
|
|
3
3
|
//#region src/icons/card-plus-two.js
|
|
4
4
|
var card_plus_two_default = ({ radius }) => [
|
|
@@ -12,7 +12,7 @@ var card_plus_two_default = ({ radius }) => [
|
|
|
12
12
|
thin: true
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
d: glyph("2", 12.25, 9.4, .7),
|
|
15
|
+
d: glyph("2", 12.25, 9.4, .7, .7, LABEL),
|
|
16
16
|
thin: true
|
|
17
17
|
}
|
|
18
18
|
];
|
package/dist/src/icons/cat.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { eye } from "../scene.js";
|
|
1
|
+
import { eye, softEar } from "../scene.js";
|
|
2
2
|
//#region src/icons/cat.js
|
|
3
3
|
var [cx, cy, rx, ry] = [
|
|
4
4
|
12,
|
|
@@ -7,9 +7,10 @@ var [cx, cy, rx, ry] = [
|
|
|
7
7
|
6.5
|
|
8
8
|
];
|
|
9
9
|
var rad = (d) => d * Math.PI / 180;
|
|
10
|
-
var
|
|
10
|
+
var Q = (d, k = 1) => [cx + rx * k * Math.cos(rad(d)), cy + ry * k * Math.sin(rad(d))];
|
|
11
|
+
var P = (d, k = 1) => Q(d, k).map((v) => +v.toFixed(3)).join(" ");
|
|
11
12
|
var cat_default = () => [
|
|
12
|
-
`M${P(-160)}
|
|
13
|
+
`M${P(-160)}${softEar(Q(-160), Q(-132, 1.85), Q(-100), 1.12)}A${rx} ${ry} 0 0 1 ${P(-80)}${softEar(Q(-80), Q(-48, 1.85), Q(-20), 1.12)}A${rx} ${ry} 0 1 1 ${P(-160)}Z`,
|
|
13
14
|
eye(8.75, 12.5, 2.5),
|
|
14
15
|
eye(15.25, 12.5, 2.5),
|
|
15
16
|
{
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { circle } from "../geometry.js";
|
|
2
|
+
//#region src/icons/continent.js
|
|
3
|
+
var continent_default = () => ["M4 7C6 4 9.5 3 12.5 4.5C14.5 5.5 15.5 4 18 4.5C20.5 5 21.5 7.5 20 9.5C18.8 11 16.5 10.8 16 13C15.5 15.5 13.5 16 12 18.5C11 20.2 9 21 8.5 19C8 17 9.5 15.5 7.5 13.5C6 12 3 12.5 2.8 10C2.7 8.7 3.2 8 4 7Z", circle(18, 18, 1.75)];
|
|
4
|
+
//#endregion
|
|
5
|
+
export { continent_default as default };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import hexagon_default from "./hexagon.js";
|
|
2
|
+
//#region src/icons/cpp.js
|
|
3
|
+
var [cx, cy, r] = [
|
|
4
|
+
9,
|
|
5
|
+
12.5,
|
|
6
|
+
3.25
|
|
7
|
+
];
|
|
8
|
+
var a = 50 * Math.PI / 180;
|
|
9
|
+
var [dx, dy] = [r * Math.cos(a), r * Math.sin(a)].map((v) => +v.toFixed(3));
|
|
10
|
+
var plus = (x) => ({
|
|
11
|
+
d: `M${x - 1} ${cy}H${x + 1}M${x} ${cy - 1}V${cy + 1}`,
|
|
12
|
+
detail: true
|
|
13
|
+
});
|
|
14
|
+
var cpp_default = (opts) => [
|
|
15
|
+
...hexagon_default(opts),
|
|
16
|
+
`M${cx + dx} ${cy - dy}A${r} ${r} 0 1 0 ${cx + dx} ${cy + dy}`,
|
|
17
|
+
plus(13.5),
|
|
18
|
+
plus(17.5)
|
|
19
|
+
];
|
|
20
|
+
//#endregion
|
|
21
|
+
export { cpp_default as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import hexagon_default from "./hexagon.js";
|
|
2
|
+
//#region src/icons/csharp.js
|
|
3
|
+
var [cx, cy, r] = [
|
|
4
|
+
9.25,
|
|
5
|
+
12,
|
|
6
|
+
3.25
|
|
7
|
+
];
|
|
8
|
+
var a = 50 * Math.PI / 180;
|
|
9
|
+
var [dx, dy] = [r * Math.cos(a), r * Math.sin(a)].map((v) => +v.toFixed(3));
|
|
10
|
+
var csharp_default = (opts) => [
|
|
11
|
+
...hexagon_default(opts),
|
|
12
|
+
`M${cx + dx} ${cy - dy}A${r} ${r} 0 1 0 ${cx + dx} ${cy + dy}`,
|
|
13
|
+
"M14.5 9.5V14.5M17.5 9.5V14.5",
|
|
14
|
+
"M13.5 10.5H18.5M13.5 13.5H18.5"
|
|
15
|
+
];
|
|
16
|
+
//#endregion
|
|
17
|
+
export { csharp_default as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { rounded } from "../geometry.js";
|
|
2
|
+
//#region src/icons/diorama.js
|
|
3
|
+
var [cx, hw, cy, t] = [
|
|
4
|
+
12.5,
|
|
5
|
+
8,
|
|
6
|
+
12,
|
|
7
|
+
4
|
|
8
|
+
];
|
|
9
|
+
var dy = +(hw * Math.tan(Math.PI / 6)).toFixed(3);
|
|
10
|
+
var diorama_default = ({ radius }) => [
|
|
11
|
+
rounded([
|
|
12
|
+
[cx - hw, cy],
|
|
13
|
+
[9.5, 4],
|
|
14
|
+
[12.5, 8.5],
|
|
15
|
+
[15, 6],
|
|
16
|
+
[cx + hw, cy],
|
|
17
|
+
[cx + hw, cy + t],
|
|
18
|
+
[cx, cy + dy + t],
|
|
19
|
+
[cx - hw, cy + t]
|
|
20
|
+
], Math.min(radius, 1)),
|
|
21
|
+
`M${cx - hw} ${cy}L${cx} ${cy + dy}L${cx + hw} ${cy}`,
|
|
22
|
+
`M${cx} ${cy + dy}V${cy + dy + t}`
|
|
23
|
+
];
|
|
24
|
+
//#endregion
|
|
25
|
+
export { diorama_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { rounded } from "../geometry.js";
|
|
2
|
-
import { glyph } from "../letters.js";
|
|
2
|
+
import { LABEL, glyph } from "../letters.js";
|
|
3
3
|
//#region src/icons/element.js
|
|
4
4
|
var element_default = ({ radius }) => [
|
|
5
5
|
rounded([
|
|
@@ -9,10 +9,10 @@ var element_default = ({ radius }) => [
|
|
|
9
9
|
[3.5, 20.5]
|
|
10
10
|
], Math.min(radius, 2.5)),
|
|
11
11
|
{
|
|
12
|
-
d: glyph("1", 5.5, 5.25, .6),
|
|
12
|
+
d: glyph("1", 5.5, 5.25, .6, .6, LABEL),
|
|
13
13
|
thin: true
|
|
14
14
|
},
|
|
15
|
-
glyph("H", 9.5, 8, 10 / 7, 1.5)
|
|
15
|
+
glyph("H", 9.5, 8, 10 / 7, 1.5, LABEL)
|
|
16
16
|
];
|
|
17
17
|
//#endregion
|
|
18
18
|
export { element_default as default };
|
package/dist/src/icons/fog.js
CHANGED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/icons/github.js
|
|
2
|
+
var github_default = () => ["M9.5 20.5V18C9.5 17 9.75 16.25 10.5 15.5C6.75 15 4.5 13 4.5 10C4.5 8.75 5 7.75 5.5 7.25L6 3.5L9.5 5.5C11 5.25 13 5.25 14.5 5.5L18 3.5L18.5 7.25C19 7.75 19.5 8.75 19.5 10C19.5 13 17.25 15 13.5 15.5C14.25 16.25 14.5 17 14.5 18V20.5", "M9.5 18.25C6.5 19.25 6.25 16.5 4 16.5"];
|
|
3
|
+
//#endregion
|
|
4
|
+
export { github_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { glyph, snap } from "../letters.js";
|
|
2
|
+
//#region src/icons/golang.js
|
|
3
|
+
var golang_default = () => [
|
|
4
|
+
"M3.5 9.5H5.5",
|
|
5
|
+
"M2.5 12.5H6",
|
|
6
|
+
"M3.5 15.5H5",
|
|
7
|
+
...snap([glyph("G", 8.5, 7.5, 1.4, 1.5), glyph("O", 15.4, 7.5, 1.4, 1.5)])
|
|
8
|
+
];
|
|
9
|
+
//#endregion
|
|
10
|
+
export { golang_default as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { rounded } from "../geometry.js";
|
|
2
|
+
//#region src/icons/hologram.js
|
|
3
|
+
var [cx, hw, top, bottom] = [
|
|
4
|
+
12.5,
|
|
5
|
+
5,
|
|
6
|
+
2.5,
|
|
7
|
+
14
|
|
8
|
+
];
|
|
9
|
+
var dy = +(hw * Math.tan(Math.PI / 6)).toFixed(3);
|
|
10
|
+
var hologram_default = ({ radius }) => [
|
|
11
|
+
rounded([
|
|
12
|
+
[cx, top],
|
|
13
|
+
[cx + hw, top + dy],
|
|
14
|
+
[cx + hw, bottom - dy],
|
|
15
|
+
[cx, bottom],
|
|
16
|
+
[cx - hw, bottom - dy],
|
|
17
|
+
[cx - hw, top + dy]
|
|
18
|
+
], Math.min(radius, 1)),
|
|
19
|
+
`M${cx - hw} ${top + dy}L${cx} ${top + 2 * dy}L${cx + hw} ${top + dy}`,
|
|
20
|
+
`M${cx} ${top + 2 * dy}V${bottom}`,
|
|
21
|
+
"M9 20.5H16",
|
|
22
|
+
{
|
|
23
|
+
d: "M10 18.5L6.5 13.5",
|
|
24
|
+
thin: true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
d: "M15 18.5L18.5 13.5",
|
|
28
|
+
thin: true
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
//#endregion
|
|
32
|
+
export { hologram_default as default };
|
package/dist/src/icons/html.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { code } from "../symbols.js";
|
|
2
1
|
import window_default from "./window.js";
|
|
3
2
|
//#region src/icons/html.js
|
|
4
|
-
var html_default = (opts) => [
|
|
3
|
+
var html_default = (opts) => [
|
|
4
|
+
...window_default(opts),
|
|
5
|
+
"M9 11L6 14L9 17",
|
|
6
|
+
"M15 11L18 14L15 17",
|
|
7
|
+
"M13 10.5L11 17.5"
|
|
8
|
+
];
|
|
5
9
|
//#endregion
|
|
6
10
|
export { html_default as default };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/icons/java.js
|
|
2
|
+
var java_default = () => [
|
|
3
|
+
"M5.5 10.5H16.5V13.5A4 4 0 0 1 12.5 17.5H9.5A4 4 0 0 1 5.5 13.5Z",
|
|
4
|
+
"M16.5 11.5H17A1.5 1.5 0 0 1 17 14.5H16.5",
|
|
5
|
+
"M3.5 20.5H18.5",
|
|
6
|
+
"M10 2.5C8 4.25 12 5.75 10 8",
|
|
7
|
+
"M13.5 4.5C12.5 5.5 14.5 6.75 13.5 8"
|
|
8
|
+
];
|
|
9
|
+
//#endregion
|
|
10
|
+
export { java_default as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { rounded } from "../geometry.js";
|
|
2
|
+
import { LABEL, line, snap } from "../letters.js";
|
|
3
|
+
//#region src/icons/javascript.js
|
|
4
|
+
var javascript_default = ({ radius }) => [rounded([
|
|
5
|
+
[3.5, 3.5],
|
|
6
|
+
[20.5, 3.5],
|
|
7
|
+
[20.5, 20.5],
|
|
8
|
+
[3.5, 20.5]
|
|
9
|
+
], Math.min(radius, 2.5)), ...snap(line("JS", [12.5, 14], 1.2, 2.5, 1.2, LABEL)).map((d) => ({
|
|
10
|
+
d,
|
|
11
|
+
thin: true
|
|
12
|
+
}))];
|
|
13
|
+
//#endregion
|
|
14
|
+
export { javascript_default as default };
|
package/dist/src/icons/json.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { dot } from "../scene.js";
|
|
2
|
-
import code_braces_default from "./code-braces.js";
|
|
3
2
|
//#region src/icons/json.js
|
|
4
3
|
var json_default = () => [
|
|
5
|
-
|
|
4
|
+
"M8.5 4.5H7.5A1.5 1.5 0 0 0 6 6V10A2 2 0 0 1 4 12A2 2 0 0 1 6 14V18A1.5 1.5 0 0 0 7.5 19.5H8.5",
|
|
5
|
+
"M15.5 4.5H16.5A1.5 1.5 0 0 1 18 6V10A2 2 0 0 0 20 12A2 2 0 0 0 18 14V18A1.5 1.5 0 0 1 16.5 19.5H15.5",
|
|
6
6
|
dot(9, 12),
|
|
7
7
|
dot(12, 12),
|
|
8
8
|
dot(15, 12)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { crisp, rounded } from "../geometry.js";
|
|
2
|
+
//#region src/icons/kotlin.js
|
|
3
|
+
var kotlin_default = ({ radius }) => [rounded([
|
|
4
|
+
[3.5, 3.5],
|
|
5
|
+
[20.5, 3.5],
|
|
6
|
+
[
|
|
7
|
+
12,
|
|
8
|
+
12,
|
|
9
|
+
crisp(radius)
|
|
10
|
+
],
|
|
11
|
+
[20.5, 20.5],
|
|
12
|
+
[3.5, 20.5]
|
|
13
|
+
], Math.min(radius, 2.5))];
|
|
14
|
+
//#endregion
|
|
15
|
+
export { kotlin_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-arrow-down.js
|
|
5
5
|
var k = cornerScale.arrowDown;
|
|
6
6
|
var list_arrow_down_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.arrowDown, k, stroke);
|
|
8
|
-
return [...lines, ...info(arrowDown(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.arrowDown, k, stroke);
|
|
8
|
+
return [...lines, ...info(arrowDown(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_arrow_down_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-arrow-left.js
|
|
5
5
|
var k = cornerScale.arrowLeft;
|
|
6
6
|
var list_arrow_left_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.arrowLeft, k, stroke);
|
|
8
|
-
return [...lines, ...info(arrowLeft(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.arrowLeft, k, stroke);
|
|
8
|
+
return [...lines, ...info(arrowLeft(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_arrow_left_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-arrow-right.js
|
|
5
5
|
var k = cornerScale.arrowRight;
|
|
6
6
|
var list_arrow_right_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.arrowRight, k, stroke);
|
|
8
|
-
return [...lines, ...info(arrowRight(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.arrowRight, k, stroke);
|
|
8
|
+
return [...lines, ...info(arrowRight(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_arrow_right_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-arrow-up.js
|
|
5
5
|
var k = cornerScale.arrowUp;
|
|
6
6
|
var list_arrow_up_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.arrowUp, k, stroke);
|
|
8
|
-
return [...lines, ...info(arrowUp(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.arrowUp, k, stroke);
|
|
8
|
+
return [...lines, ...info(arrowUp(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_arrow_up_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-assets.js
|
|
5
5
|
var k = cornerScale.assets;
|
|
6
6
|
var list_assets_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.assets, k, stroke);
|
|
8
|
-
return [...lines, ...accent(assets(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.assets, k, stroke);
|
|
8
|
+
return [...lines, ...accent(assets(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_assets_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-ban.js
|
|
5
5
|
var k = cornerScale.ban;
|
|
6
6
|
var list_ban_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.ban, k, stroke);
|
|
8
|
-
return [...lines, ...danger(ban(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.ban, k, stroke);
|
|
8
|
+
return [...lines, ...danger(ban(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_ban_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-bookmark.js
|
|
5
5
|
var k = cornerScale.bookmark;
|
|
6
6
|
var list_bookmark_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.bookmark, k, stroke);
|
|
8
|
-
return [...lines, ...accent(bookmark(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.bookmark, k, stroke);
|
|
8
|
+
return [...lines, ...accent(bookmark(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_bookmark_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-check.js
|
|
5
5
|
var k = cornerScale.check;
|
|
6
6
|
var list_check_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.check, k, stroke);
|
|
8
|
-
return [...lines, ...success(check(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.check, k, stroke);
|
|
8
|
+
return [...lines, ...success(check(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_check_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-circle.js
|
|
5
5
|
var k = cornerScale.ring;
|
|
6
6
|
var list_circle_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.ring, k, stroke);
|
|
8
|
-
return [...lines, ...accent(ring(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.ring, k, stroke);
|
|
8
|
+
return [...lines, ...accent(ring(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_circle_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-clock.js
|
|
5
5
|
var k = cornerScale.clock;
|
|
6
6
|
var list_clock_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.clock, k, stroke);
|
|
8
|
-
return [...lines, ...info(clock(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.clock, k, stroke);
|
|
8
|
+
return [...lines, ...info(clock(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_clock_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-cloud.js
|
|
5
5
|
var k = cornerScale.cloud;
|
|
6
6
|
var list_cloud_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.cloud, k, stroke);
|
|
8
|
-
return [...lines, ...info(cloud(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.cloud, k, stroke);
|
|
8
|
+
return [...lines, ...info(cloud(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_cloud_default as default };
|
|
@@ -4,8 +4,8 @@ import { listBadge } from "../list.js";
|
|
|
4
4
|
//#region src/icons/list-code.js
|
|
5
5
|
var k = cornerScale.code;
|
|
6
6
|
var list_code_default = ({ radius, stroke }) => {
|
|
7
|
-
const { center, lines } = listBadge(outlines.code, k, stroke);
|
|
8
|
-
return [...lines, ...accent(code(center,
|
|
7
|
+
const { center, size, lines } = listBadge(outlines.code, k, stroke);
|
|
8
|
+
return [...lines, ...accent(code(center, size, radius))];
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
11
11
|
export { list_code_default as default };
|