vintage-frames 0.16.2 → 0.17.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/README.md +2 -0
- package/dist/build/app-file.d.ts +21 -0
- package/dist/build/app-file.js +41 -0
- package/dist/build/box.d.ts +55 -0
- package/dist/build/box.js +90 -0
- package/dist/build/client.d.ts +12 -0
- package/dist/build/frame-picture.d.ts +6 -0
- package/dist/build/frame-picture.js +4 -0
- package/dist/build/frame.d.ts +11 -0
- package/dist/build/frame.js +42 -0
- package/dist/build/index.d.ts +14 -0
- package/dist/build/index.js +4 -0
- package/dist/build/plugins.d.ts +40 -0
- package/dist/build/plugins.js +129 -0
- package/dist/build/png.d.ts +24 -0
- package/dist/build/png.js +116 -0
- package/dist/shell/app-file.d.ts +77 -0
- package/dist/shell/app-file.js +161 -0
- package/dist/shell/index.d.ts +3 -0
- package/dist/shell/index.js +3 -1
- package/dist/shell/pure.d.ts +7 -4
- package/dist/shell/pure.js +3 -1
- package/dist/shell/version.d.ts +2 -0
- package/dist/shell/version.js +4 -0
- package/dist/styles/body-strike.d.ts +12 -0
- package/dist/styles/body-strike.js +3961 -0
- package/dist/styles/display-strike.d.ts +12 -0
- package/dist/styles/display-strike.js +4343 -0
- package/dist/styles/strike.d.ts +30 -0
- package/editor/web-types.json +1 -1
- package/package.json +19 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One of the kit's bitmap faces, as data: each glyph's advance, placement
|
|
3
|
+
* and ink, from the glyph manifest the face's woff2 is built from
|
|
4
|
+
* (fonts/manifest-to-font.py writes both). Everything is in whole design
|
|
5
|
+
* px, and one design px is one system px.
|
|
6
|
+
*/
|
|
7
|
+
export interface Strike {
|
|
8
|
+
/** The family it is registered under: `VF Display` or `VF Body`. */
|
|
9
|
+
family: string;
|
|
10
|
+
/** The em box: `ascent` px above the baseline, `descent` below. */
|
|
11
|
+
ascent: number;
|
|
12
|
+
descent: number;
|
|
13
|
+
/** Each character the face draws, by the character itself. */
|
|
14
|
+
glyphs: Readonly<Record<string, StrikeGlyph>>;
|
|
15
|
+
}
|
|
16
|
+
/** One glyph of a {@link Strike}. */
|
|
17
|
+
export interface StrikeGlyph {
|
|
18
|
+
/** The pen advance. */
|
|
19
|
+
advance: number;
|
|
20
|
+
/**
|
|
21
|
+
* The ink field's left and bottom edges from the pen origin. The baseline
|
|
22
|
+
* is y = 0, and y grows upward.
|
|
23
|
+
*/
|
|
24
|
+
x0: number;
|
|
25
|
+
y0: number;
|
|
26
|
+
width: number;
|
|
27
|
+
height: number;
|
|
28
|
+
/** The ink, top row first: `#` ink, `.` blank. Empty for a glyph with no ink. */
|
|
29
|
+
rows: readonly string[];
|
|
30
|
+
}
|
package/editor/web-types.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vintage-frames",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Lit web components that emulate the look and feel of classic Mac OS System 7",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,6 +44,13 @@
|
|
|
44
44
|
"types": "./dist/shell/pure.d.ts",
|
|
45
45
|
"import": "./dist/shell/pure.js"
|
|
46
46
|
},
|
|
47
|
+
"./build": {
|
|
48
|
+
"types": "./dist/build/index.d.ts",
|
|
49
|
+
"import": "./dist/build/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./build/client": {
|
|
52
|
+
"types": "./dist/build/client.d.ts"
|
|
53
|
+
},
|
|
47
54
|
"./package.json": "./package.json"
|
|
48
55
|
},
|
|
49
56
|
"files": [
|
|
@@ -67,12 +74,13 @@
|
|
|
67
74
|
"build:pages": "vite build --config vite.pages.config.ts",
|
|
68
75
|
"preview:pages": "vite preview --config vite.pages.config.ts",
|
|
69
76
|
"prepack": "npm run build && npm run verify:manifest",
|
|
70
|
-
"version": "npm run analyze && git add custom-elements.json editor",
|
|
77
|
+
"version": "npm run analyze && node scripts/write-version.mjs && git add custom-elements.json editor src/shell/version.ts",
|
|
71
78
|
"analyze": "cem analyze",
|
|
72
79
|
"verify:manifest": "node scripts/verify-manifest.mjs",
|
|
73
80
|
"typecheck": "tsc --noEmit",
|
|
74
81
|
"preview": "vite preview",
|
|
75
82
|
"embed:cursors": "node scripts/embed-cursor-art.mjs",
|
|
83
|
+
"embed:frame": "node scripts/embed-frame.mjs",
|
|
76
84
|
"verify:buttons": "tsc src/pixel-frame.ts --outDir scripts/.tmp --target es2022 --module esnext --moduleResolution bundler --skipLibCheck && node scripts/emit-clips.mjs && python3 scripts/verify-button-clips.py",
|
|
77
85
|
"shot:buttons": "npx playwright screenshot --wait-for-timeout=2000 http://localhost:5173/pixel-test.html shots/buttons.png",
|
|
78
86
|
"shot:verify": "python3 scripts/verify-button-screenshot.py shots/buttons.png",
|
|
@@ -125,8 +133,17 @@
|
|
|
125
133
|
"dependencies": {
|
|
126
134
|
"lit": "^3.2.0"
|
|
127
135
|
},
|
|
136
|
+
"peerDependencies": {
|
|
137
|
+
"vite": ">=8.0.0"
|
|
138
|
+
},
|
|
139
|
+
"peerDependenciesMeta": {
|
|
140
|
+
"vite": {
|
|
141
|
+
"optional": true
|
|
142
|
+
}
|
|
143
|
+
},
|
|
128
144
|
"devDependencies": {
|
|
129
145
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
146
|
+
"@types/node": "^24.19.1",
|
|
130
147
|
"custom-element-jet-brains-integration": "^1.7.0",
|
|
131
148
|
"custom-element-vs-code-integration": "^1.5.0",
|
|
132
149
|
"playwright": "^1.62.1",
|