@20baht/stickers 0.1.0 → 0.1.1
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/icons/cron.d.ts +2 -0
- package/dist/icons/cron.js +86 -0
- package/dist/icons/index.d.ts +3 -1
- package/dist/icons/index.js +5 -1
- package/dist/icons/kanban.d.ts +2 -0
- package/dist/icons/kanban.js +85 -0
- package/dist/load.d.ts +2 -0
- package/dist/load.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// Drawn for @20baht/stickers (kammacron's cron jobs): a week planner on the leaned face, the same day marked
|
|
2
|
+
// week after week, and a repeat arrow that spins once round its disc.
|
|
3
|
+
import { jolt, springTurn, twinkle } from '../motions.js';
|
|
4
|
+
import { arc, ellipse, line, pill, poly, rect } from '../sticker.js';
|
|
5
|
+
import { EXT, FACE, glow, LINE } from './shared.js';
|
|
6
|
+
const X0 = -122;
|
|
7
|
+
const Y0 = -50;
|
|
8
|
+
const CW = 49;
|
|
9
|
+
const RH = 46;
|
|
10
|
+
// the grid of days: five columns, three weeks
|
|
11
|
+
const grid = [
|
|
12
|
+
...[1, 2].map((r) => ({ d: line([X0, Y0 + r * RH], [X0 + 5 * CW, Y0 + r * RH]) })),
|
|
13
|
+
...[1, 2, 3, 4].map((c) => ({
|
|
14
|
+
d: line([X0 + c * CW, Y0 + 8], [X0 + c * CW, Y0 + 3 * RH - 8]),
|
|
15
|
+
})),
|
|
16
|
+
];
|
|
17
|
+
// the day that repeats: Tuesday, every week
|
|
18
|
+
const day = (week) => [X0 + 1.5 * CW, Y0 + (week + 0.5) * RH];
|
|
19
|
+
const mark = (week, start) => {
|
|
20
|
+
const [x, y] = day(week);
|
|
21
|
+
return {
|
|
22
|
+
parent: 'face',
|
|
23
|
+
a: [x, y],
|
|
24
|
+
p: [x, y],
|
|
25
|
+
m: [twinkle(start), twinkle(130 + week * 4, true)],
|
|
26
|
+
shapes: [{ d: rect(x - 15, y - 13, 30, 26, 7), fill: 'main', depth: 0.3 }],
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
const DISC = [104, 104];
|
|
30
|
+
const R = 30;
|
|
31
|
+
const head = () => {
|
|
32
|
+
const a = (200 * Math.PI) / 180;
|
|
33
|
+
const [x, y] = [DISC[0] + Math.cos(a) * R, DISC[1] + Math.sin(a) * R];
|
|
34
|
+
return poly([
|
|
35
|
+
[x - 11, y + 2],
|
|
36
|
+
[x + 11, y + 2],
|
|
37
|
+
[x, y - 14],
|
|
38
|
+
], 3);
|
|
39
|
+
};
|
|
40
|
+
export const cron = {
|
|
41
|
+
name: 'cron',
|
|
42
|
+
frames: 180,
|
|
43
|
+
still: 100,
|
|
44
|
+
line: LINE,
|
|
45
|
+
extrude: EXT,
|
|
46
|
+
layers: [
|
|
47
|
+
{ id: 'cron', p: [250, 280], m: { ...jolt(), at: 8 }, shapes: [] },
|
|
48
|
+
{
|
|
49
|
+
id: 'face',
|
|
50
|
+
parent: 'cron',
|
|
51
|
+
tilt: FACE,
|
|
52
|
+
shapes: [
|
|
53
|
+
{ d: rect(-140, -126, 280, 260, 22), fill: 'tint', depth: 0.6 },
|
|
54
|
+
{ d: rect(-140, -140, 280, 260, 22), fill: 'white', depth: 0.4 },
|
|
55
|
+
{ d: rect(-140, -140, 280, 72, 22), fill: 'deep' },
|
|
56
|
+
...grid,
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
mark(0, 30),
|
|
60
|
+
mark(1, 42),
|
|
61
|
+
mark(2, 54),
|
|
62
|
+
{
|
|
63
|
+
parent: 'face',
|
|
64
|
+
shapes: [-70, 70].map((x) => ({
|
|
65
|
+
d: pill(x - 10, -160, 20, 46),
|
|
66
|
+
fill: 'main',
|
|
67
|
+
depth: 0.6,
|
|
68
|
+
})),
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: 'disc',
|
|
72
|
+
parent: 'face',
|
|
73
|
+
a: DISC,
|
|
74
|
+
p: DISC,
|
|
75
|
+
shapes: [{ d: ellipse(DISC[0], DISC[1], 54), fill: 'gold', depth: 0.8 }],
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
parent: 'disc',
|
|
79
|
+
a: DISC,
|
|
80
|
+
p: DISC,
|
|
81
|
+
m: { r: springTurn(360, 18, 1.2) },
|
|
82
|
+
shapes: [{ d: arc(DISC[0], DISC[1], R, -150, 190) }, { d: head(), fill: 'ink' }],
|
|
83
|
+
},
|
|
84
|
+
glow('cron', [150, -150], 24, [twinkle(64), twinkle(140, true)]),
|
|
85
|
+
],
|
|
86
|
+
};
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -150,6 +150,8 @@ import { calculator } from './calculator.js';
|
|
|
150
150
|
import { budgetJar } from './budget-jar.js';
|
|
151
151
|
import { pieChart } from './pie-chart.js';
|
|
152
152
|
import { calendarMonth } from './calendar-month.js';
|
|
153
|
+
import { cron } from './cron.js';
|
|
154
|
+
import { kanban } from './kanban.js';
|
|
153
155
|
import { goal } from './goal.js';
|
|
154
156
|
import { overBudget } from './over-budget.js';
|
|
155
157
|
import { savingStreak } from './saving-streak.js';
|
|
@@ -180,6 +182,6 @@ import { redmiNote9sPro } from './redmi-note-9s-pro.js';
|
|
|
180
182
|
import { nas2bay } from './nas-2bay.js';
|
|
181
183
|
import { powerStation } from './power-station.js';
|
|
182
184
|
import { studioMonitors } from './studio-monitors.js';
|
|
183
|
-
export { file, trash, copyFiles, compare, remoteFolder, photo, hardDrive, usbDrive, snip, scissors, clipboard, highlighter, eyedropper, timer, snapshots, remoteDesktop, cursor, keyboard, terminal, tunnel, wakeOnLan, lockScreen, aiAgent, certificate, sslCertificate, piggyBank, stock, bahtNote, dollarNote, bond, goldBar, kaprao, noodleSoup, padSeeEw, trainTicket, tukTuk, chaYen, mangoStickyRice, twoFactor, otp, sms, email, register, support, idCard, fingerprint, faceId, password, verified, qrCode, accessPoint, allInOne, badgeReader, bear, bladeChassis, cctv, classicPhone, cooling, coreSwitch, database, desktopTower, firewall, homeRouter, hsm, iotSensor, ipPhone, key, kvm, laptop, loadBalancer, miniPc, modem, monitor, nas, notebook, patchPanel, pdu, pos, printer, rack, router, server, serverCabinet, shield, smartphone, smartTv, storageArray, switchBox, tablet, tapeLibrary, ups, vpnGateway, wallet, macMini, thinkpadL380, macbookAir, ipadGen8, iphone17, redmiNote9sPro, nas2bay, powerStation, studioMonitors, receipt, income, expense, coins, calculator, budgetJar, pieChart, calendarMonth, goal, overBudget, savingStreak, emptyState, exportFile, scanSlip, interest, btsCard, motorbikeTaxi, convenienceBag, electricBill, phoneTopup, rent, marketBasket, lottery, templeDonation, fuel, shoppingBox, salary, angpao, freelance, spiritHouse, thaiHouse, woodenWindow, waterJar, streetFoodCart, plasticStool, powerPole, streetSign, mailboxThai, chedi, marigold, phuangMalai, bananaTree, bamboo, longTailBoat, bananaLeaf, thaiLantern, lotus, sun, moon, cloud, rainCloud, storm, rainbow, star, shootingStar, rock, pottedPlant, cactus, monstera, flower, tulip, tree, palmTree, campfire, tent, confetti, musicNote, mediaPlayer, paperBoat, kite, alarmClock, books, hotDrink, lamp, discImage, keyPair, metrics, virtualMachine, floatingIp, };
|
|
185
|
+
export { file, trash, copyFiles, compare, remoteFolder, photo, hardDrive, usbDrive, snip, scissors, clipboard, highlighter, eyedropper, timer, snapshots, remoteDesktop, cursor, keyboard, terminal, tunnel, wakeOnLan, lockScreen, aiAgent, certificate, sslCertificate, piggyBank, stock, bahtNote, dollarNote, bond, goldBar, kaprao, noodleSoup, padSeeEw, trainTicket, tukTuk, chaYen, mangoStickyRice, twoFactor, otp, sms, email, register, support, idCard, fingerprint, faceId, password, verified, qrCode, accessPoint, allInOne, badgeReader, bear, bladeChassis, cctv, classicPhone, cooling, coreSwitch, database, desktopTower, firewall, homeRouter, hsm, iotSensor, ipPhone, key, kvm, laptop, loadBalancer, miniPc, modem, monitor, nas, notebook, patchPanel, pdu, pos, printer, rack, router, server, serverCabinet, shield, smartphone, smartTv, storageArray, switchBox, tablet, tapeLibrary, ups, vpnGateway, wallet, macMini, thinkpadL380, macbookAir, ipadGen8, iphone17, redmiNote9sPro, nas2bay, powerStation, studioMonitors, receipt, income, expense, coins, calculator, budgetJar, pieChart, calendarMonth, cron, kanban, goal, overBudget, savingStreak, emptyState, exportFile, scanSlip, interest, btsCard, motorbikeTaxi, convenienceBag, electricBill, phoneTopup, rent, marketBasket, lottery, templeDonation, fuel, shoppingBox, salary, angpao, freelance, spiritHouse, thaiHouse, woodenWindow, waterJar, streetFoodCart, plasticStool, powerPole, streetSign, mailboxThai, chedi, marigold, phuangMalai, bananaTree, bamboo, longTailBoat, bananaLeaf, thaiLantern, lotus, sun, moon, cloud, rainCloud, storm, rainbow, star, shootingStar, rock, pottedPlant, cactus, monstera, flower, tulip, tree, palmTree, campfire, tent, confetti, musicNote, mediaPlayer, paperBoat, kite, alarmClock, books, hotDrink, lamp, discImage, keyPair, metrics, virtualMachine, floatingIp, };
|
|
184
186
|
/** The whole set, in catalogue order. */
|
|
185
187
|
export declare const ICONS: readonly Icon[];
|
package/dist/icons/index.js
CHANGED
|
@@ -149,6 +149,8 @@ import { calculator } from './calculator.js';
|
|
|
149
149
|
import { budgetJar } from './budget-jar.js';
|
|
150
150
|
import { pieChart } from './pie-chart.js';
|
|
151
151
|
import { calendarMonth } from './calendar-month.js';
|
|
152
|
+
import { cron } from './cron.js';
|
|
153
|
+
import { kanban } from './kanban.js';
|
|
152
154
|
import { goal } from './goal.js';
|
|
153
155
|
import { overBudget } from './over-budget.js';
|
|
154
156
|
import { savingStreak } from './saving-streak.js';
|
|
@@ -179,7 +181,7 @@ import { redmiNote9sPro } from './redmi-note-9s-pro.js';
|
|
|
179
181
|
import { nas2bay } from './nas-2bay.js';
|
|
180
182
|
import { powerStation } from './power-station.js';
|
|
181
183
|
import { studioMonitors } from './studio-monitors.js';
|
|
182
|
-
export { file, trash, copyFiles, compare, remoteFolder, photo, hardDrive, usbDrive, snip, scissors, clipboard, highlighter, eyedropper, timer, snapshots, remoteDesktop, cursor, keyboard, terminal, tunnel, wakeOnLan, lockScreen, aiAgent, certificate, sslCertificate, piggyBank, stock, bahtNote, dollarNote, bond, goldBar, kaprao, noodleSoup, padSeeEw, trainTicket, tukTuk, chaYen, mangoStickyRice, twoFactor, otp, sms, email, register, support, idCard, fingerprint, faceId, password, verified, qrCode, accessPoint, allInOne, badgeReader, bear, bladeChassis, cctv, classicPhone, cooling, coreSwitch, database, desktopTower, firewall, homeRouter, hsm, iotSensor, ipPhone, key, kvm, laptop, loadBalancer, miniPc, modem, monitor, nas, notebook, patchPanel, pdu, pos, printer, rack, router, server, serverCabinet, shield, smartphone, smartTv, storageArray, switchBox, tablet, tapeLibrary, ups, vpnGateway, wallet, macMini, thinkpadL380, macbookAir, ipadGen8, iphone17, redmiNote9sPro, nas2bay, powerStation, studioMonitors, receipt, income, expense, coins, calculator, budgetJar, pieChart, calendarMonth, goal, overBudget, savingStreak, emptyState, exportFile, scanSlip, interest, btsCard, motorbikeTaxi, convenienceBag, electricBill, phoneTopup, rent, marketBasket, lottery, templeDonation, fuel, shoppingBox, salary, angpao, freelance, spiritHouse, thaiHouse, woodenWindow, waterJar, streetFoodCart, plasticStool, powerPole, streetSign, mailboxThai, chedi, marigold, phuangMalai, bananaTree, bamboo, longTailBoat, bananaLeaf, thaiLantern, lotus, sun, moon, cloud, rainCloud, storm, rainbow, star, shootingStar, rock, pottedPlant, cactus, monstera, flower, tulip, tree, palmTree, campfire, tent, confetti, musicNote, mediaPlayer, paperBoat, kite, alarmClock, books, hotDrink, lamp, discImage, keyPair, metrics, virtualMachine, floatingIp, };
|
|
184
|
+
export { file, trash, copyFiles, compare, remoteFolder, photo, hardDrive, usbDrive, snip, scissors, clipboard, highlighter, eyedropper, timer, snapshots, remoteDesktop, cursor, keyboard, terminal, tunnel, wakeOnLan, lockScreen, aiAgent, certificate, sslCertificate, piggyBank, stock, bahtNote, dollarNote, bond, goldBar, kaprao, noodleSoup, padSeeEw, trainTicket, tukTuk, chaYen, mangoStickyRice, twoFactor, otp, sms, email, register, support, idCard, fingerprint, faceId, password, verified, qrCode, accessPoint, allInOne, badgeReader, bear, bladeChassis, cctv, classicPhone, cooling, coreSwitch, database, desktopTower, firewall, homeRouter, hsm, iotSensor, ipPhone, key, kvm, laptop, loadBalancer, miniPc, modem, monitor, nas, notebook, patchPanel, pdu, pos, printer, rack, router, server, serverCabinet, shield, smartphone, smartTv, storageArray, switchBox, tablet, tapeLibrary, ups, vpnGateway, wallet, macMini, thinkpadL380, macbookAir, ipadGen8, iphone17, redmiNote9sPro, nas2bay, powerStation, studioMonitors, receipt, income, expense, coins, calculator, budgetJar, pieChart, calendarMonth, cron, kanban, goal, overBudget, savingStreak, emptyState, exportFile, scanSlip, interest, btsCard, motorbikeTaxi, convenienceBag, electricBill, phoneTopup, rent, marketBasket, lottery, templeDonation, fuel, shoppingBox, salary, angpao, freelance, spiritHouse, thaiHouse, woodenWindow, waterJar, streetFoodCart, plasticStool, powerPole, streetSign, mailboxThai, chedi, marigold, phuangMalai, bananaTree, bamboo, longTailBoat, bananaLeaf, thaiLantern, lotus, sun, moon, cloud, rainCloud, storm, rainbow, star, shootingStar, rock, pottedPlant, cactus, monstera, flower, tulip, tree, palmTree, campfire, tent, confetti, musicNote, mediaPlayer, paperBoat, kite, alarmClock, books, hotDrink, lamp, discImage, keyPair, metrics, virtualMachine, floatingIp, };
|
|
183
185
|
/** The whole set, in catalogue order. */
|
|
184
186
|
export const ICONS = [
|
|
185
187
|
wallet,
|
|
@@ -200,6 +202,8 @@ export const ICONS = [
|
|
|
200
202
|
budgetJar,
|
|
201
203
|
pieChart,
|
|
202
204
|
calendarMonth,
|
|
205
|
+
cron,
|
|
206
|
+
kanban,
|
|
203
207
|
goal,
|
|
204
208
|
overBudget,
|
|
205
209
|
savingStreak,
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Drawn for @20baht/stickers (kammacron's board): three columns of cards on the leaned face; one card is
|
|
2
|
+
// lifted out of To do, carried to Doing and set down there.
|
|
3
|
+
import { SNAP, twinkle } from '../motions.js';
|
|
4
|
+
import { line, pill, rect } from '../sticker.js';
|
|
5
|
+
import { EXT, FACE, glow, LINE } from './shared.js';
|
|
6
|
+
const COL = 92;
|
|
7
|
+
const X0 = -146;
|
|
8
|
+
const TOP = -70;
|
|
9
|
+
const CARD_H = 52;
|
|
10
|
+
const GAP = 14;
|
|
11
|
+
const colX = (c) => X0 + c * (COL + 8);
|
|
12
|
+
// a card: a white slab with a line of text on it
|
|
13
|
+
const card = (c, row, fill = 'white') => {
|
|
14
|
+
const x = colX(c) + 8;
|
|
15
|
+
const y = TOP + row * (CARD_H + GAP);
|
|
16
|
+
return [
|
|
17
|
+
{ d: rect(x, y, COL - 16, CARD_H, 10), fill, depth: 0.3 },
|
|
18
|
+
{ d: line([x + 12, y + 20], [x + COL - 30, y + 20]) },
|
|
19
|
+
{ d: line([x + 12, y + 34], [x + 38, y + 34]) },
|
|
20
|
+
];
|
|
21
|
+
};
|
|
22
|
+
const FROM = [colX(0) + COL / 2, TOP + CARD_H + GAP + CARD_H / 2];
|
|
23
|
+
const MOVE = [COL + 8, -(CARD_H + GAP)];
|
|
24
|
+
export const kanban = {
|
|
25
|
+
name: 'kanban',
|
|
26
|
+
frames: 180,
|
|
27
|
+
still: 110,
|
|
28
|
+
line: LINE,
|
|
29
|
+
extrude: EXT,
|
|
30
|
+
layers: [
|
|
31
|
+
{ id: 'kanban', p: [250, 290], shapes: [] },
|
|
32
|
+
{
|
|
33
|
+
id: 'face',
|
|
34
|
+
parent: 'kanban',
|
|
35
|
+
tilt: FACE,
|
|
36
|
+
shapes: [
|
|
37
|
+
{ d: rect(-160, -116, 316, 220, 22), fill: 'tint', depth: 0.6 },
|
|
38
|
+
{ d: rect(-160, -130, 316, 220, 22), fill: 'white', depth: 0.4 },
|
|
39
|
+
...[0, 1, 2].map((c) => ({
|
|
40
|
+
d: pill(colX(c) + 8, -116, COL - 16, 26),
|
|
41
|
+
fill: c === 2 ? 'ok' : 'main',
|
|
42
|
+
depth: 0.3,
|
|
43
|
+
})),
|
|
44
|
+
...[1, 2].map((c) => ({ d: line([colX(c) - 4, -110], [colX(c) - 4, 76]) })),
|
|
45
|
+
...card(0, 0),
|
|
46
|
+
...card(2, 0),
|
|
47
|
+
...card(2, 1),
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
id: 'card',
|
|
52
|
+
parent: 'face',
|
|
53
|
+
a: FROM,
|
|
54
|
+
p: FROM,
|
|
55
|
+
m: [
|
|
56
|
+
{
|
|
57
|
+
p: [
|
|
58
|
+
[20, [0, 0], SNAP],
|
|
59
|
+
[64, MOVE, 0],
|
|
60
|
+
[140, MOVE, SNAP],
|
|
61
|
+
[170, [0, 0]],
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
s: [
|
|
66
|
+
[14, [100, 100], SNAP],
|
|
67
|
+
[26, [112, 112], 0],
|
|
68
|
+
[58, [112, 112], SNAP],
|
|
69
|
+
[70, [100, 100], 0],
|
|
70
|
+
],
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
x: [
|
|
74
|
+
[14, 0, SNAP],
|
|
75
|
+
[26, 10, 0],
|
|
76
|
+
[58, 10, SNAP],
|
|
77
|
+
[70, 0],
|
|
78
|
+
],
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
shapes: card(0, 1, 'gold'),
|
|
82
|
+
},
|
|
83
|
+
glow('kanban', [70, -170], 22, [twinkle(66), twinkle(140, true)]),
|
|
84
|
+
],
|
|
85
|
+
};
|
package/dist/load.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ declare const LOADERS: {
|
|
|
19
19
|
cactus: () => Promise<Icon>;
|
|
20
20
|
calculator: () => Promise<Icon>;
|
|
21
21
|
'calendar-month': () => Promise<Icon>;
|
|
22
|
+
cron: () => Promise<Icon>;
|
|
23
|
+
kanban: () => Promise<Icon>;
|
|
22
24
|
campfire: () => Promise<Icon>;
|
|
23
25
|
cctv: () => Promise<Icon>;
|
|
24
26
|
certificate: () => Promise<Icon>;
|
package/dist/load.js
CHANGED
|
@@ -18,6 +18,8 @@ const LOADERS = {
|
|
|
18
18
|
cactus: async () => (await import('./icons/cactus.js')).cactus,
|
|
19
19
|
calculator: async () => (await import('./icons/calculator.js')).calculator,
|
|
20
20
|
'calendar-month': async () => (await import('./icons/calendar-month.js')).calendarMonth,
|
|
21
|
+
cron: async () => (await import('./icons/cron.js')).cron,
|
|
22
|
+
kanban: async () => (await import('./icons/kanban.js')).kanban,
|
|
21
23
|
campfire: async () => (await import('./icons/campfire.js')).campfire,
|
|
22
24
|
cctv: async () => (await import('./icons/cctv.js')).cctv,
|
|
23
25
|
certificate: async () => (await import('./icons/certificate.js')).certificate,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@20baht/stickers",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Animated isometric slab stickers for bahtui: a <baht-sticker> Lit element that follows the --baht-* tokens and banknote themes, a growing set of illustrations, and the canvas runtime that plays them on After Effects keyframe presets.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
92
|
"happy-dom": "^20.0.0",
|
|
93
|
-
"typescript": "^5.
|
|
93
|
+
"typescript": "^5.9.3",
|
|
94
94
|
"vitest": "^3.2.4"
|
|
95
95
|
},
|
|
96
96
|
"main": "./dist/index.js",
|