@glassly/miniapp 0.4.3-dev.1207 → 0.4.3-dev.1213
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/display/index.d.ts +1 -1
- package/dist/display/index.d.ts.map +1 -1
- package/dist/display/index.js +1 -1
- package/dist/display/index.js.map +1 -1
- package/dist/display/profiles/index.d.ts +0 -1
- package/dist/display/profiles/index.d.ts.map +1 -1
- package/dist/display/profiles/index.js +0 -2
- package/dist/display/profiles/index.js.map +1 -1
- package/dist/display/profiles/textProfile.d.ts.map +1 -1
- package/dist/display/profiles/textProfile.js +0 -4
- package/dist/display/profiles/textProfile.js.map +1 -1
- package/dist/display/scene/degrade.d.ts +1 -1
- package/dist/display/scene/degrade.js +1 -1
- package/package.json +2 -2
- package/src/display/index.ts +0 -3
- package/src/display/profiles/index.ts +0 -3
- package/src/display/profiles/textProfile.ts +0 -4
- package/src/display/scene/degrade.ts +1 -1
- package/dist/display/profiles/z100.d.ts +0 -33
- package/dist/display/profiles/z100.d.ts.map +0 -1
- package/dist/display/profiles/z100.js +0 -182
- package/dist/display/profiles/z100.js.map +0 -1
- package/src/display/profiles/z100.ts +0 -198
package/dist/display/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* miniapp that wraps text with these modules gets the rows the glasses draw.
|
|
10
10
|
*/
|
|
11
11
|
export type { DisplayProfile, FontMetrics, UniformScriptWidths, FallbackConfig, DisplayConstraints, ScriptType, } from "./profiles";
|
|
12
|
-
export { G1_PROFILE, G1_PROFILE_LEGACY, G1_HYPHEN_WIDTH_PX, G1_SPACE_WIDTH_PX, G2_PROFILE, G2_HYPHEN_WIDTH_PX, G2_SPACE_WIDTH_PX,
|
|
12
|
+
export { G1_PROFILE, G1_PROFILE_LEGACY, G1_HYPHEN_WIDTH_PX, G1_SPACE_WIDTH_PX, G2_PROFILE, G2_HYPHEN_WIDTH_PX, G2_SPACE_WIDTH_PX, NEX_PROFILE, NEX_HYPHEN_WIDTH_PX, NEX_SPACE_WIDTH_PX, RAYNEO_IO_PROFILE, RAYNEO_IO_CFW_PROFILE, MEMOMIND_ONE_PROFILE, NIMO_CFW_PROFILE, NIMO_CFW_TEXT_PROFILE, NIMO_PROFILE, RAYNEO_IO_HYPHEN_WIDTH_PX, RAYNEO_IO_SPACE_WIDTH_PX, textBoxLines, textProfileFor, } from "./profiles";
|
|
13
13
|
export type { TextProfileCapabilities } from "./profiles";
|
|
14
14
|
export { TextMeasurer } from "./measurer";
|
|
15
15
|
export type { CharMeasurement, TextMeasurement } from "./measurer";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/display/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,YAAY,EACV,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,UAAU,GACX,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/display/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,YAAY,EACV,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,UAAU,GACX,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,yBAAyB,EACzB,wBAAwB,EACxB,YAAY,EACZ,cAAc,GACf,MAAM,YAAY,CAAA;AACnB,YAAY,EAAC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OAAO,EAAC,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAA;AAChF,YAAY,EAAC,cAAc,EAAC,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,cAAc,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAA;AAEvD,OAAO,EAAC,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAA;AAClH,YAAY,EAAC,kBAAkB,EAAE,aAAa,EAAC,MAAM,oBAAoB,CAAA"}
|
package/dist/display/index.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* here too: the Glassly App and the desktop simulator both run it, so a
|
|
9
9
|
* miniapp that wraps text with these modules gets the rows the glasses draw.
|
|
10
10
|
*/
|
|
11
|
-
export { G1_PROFILE, G1_PROFILE_LEGACY, G1_HYPHEN_WIDTH_PX, G1_SPACE_WIDTH_PX, G2_PROFILE, G2_HYPHEN_WIDTH_PX, G2_SPACE_WIDTH_PX,
|
|
11
|
+
export { G1_PROFILE, G1_PROFILE_LEGACY, G1_HYPHEN_WIDTH_PX, G1_SPACE_WIDTH_PX, G2_PROFILE, G2_HYPHEN_WIDTH_PX, G2_SPACE_WIDTH_PX, NEX_PROFILE, NEX_HYPHEN_WIDTH_PX, NEX_SPACE_WIDTH_PX, RAYNEO_IO_PROFILE, RAYNEO_IO_CFW_PROFILE, MEMOMIND_ONE_PROFILE, NIMO_CFW_PROFILE, NIMO_CFW_TEXT_PROFILE, NIMO_PROFILE, RAYNEO_IO_HYPHEN_WIDTH_PX, RAYNEO_IO_SPACE_WIDTH_PX, textBoxLines, textProfileFor, } from "./profiles";
|
|
12
12
|
export { TextMeasurer } from "./measurer";
|
|
13
13
|
export { detectScript, isCJKCharacter, isKoreanCharacter, isUniformWidthScript, isUnsupportedScript, needsHyphenForBreak, SCRIPT_RANGES, } from "./measurer";
|
|
14
14
|
export { TextWrapper, DEFAULT_WRAP_OPTIONS, normalizeDisplayText } from "./wrapper";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/display/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/display/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAUH,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,oBAAoB,EACpB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,yBAAyB,EACzB,wBAAwB,EACxB,YAAY,EACZ,cAAc,GACf,MAAM,YAAY,CAAA;AAGnB,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAA;AAEvC,OAAO,EACL,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,aAAa,GACd,MAAM,YAAY,CAAA;AAEnB,OAAO,EAAC,WAAW,EAAE,oBAAoB,EAAE,oBAAoB,EAAC,MAAM,WAAW,CAAA;AAGjF,OAAO,EAAC,eAAe,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAC,MAAM,YAAY,CAAA;AAwBjF,OAAO,EACL,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAA;AAExC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAA;AAE5C,OAAO,EAAC,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAC,MAAM,iBAAiB,CAAA;AAEhF,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,cAAc,EAAE,OAAO,EAAC,MAAM,iBAAiB,CAAA;AAEvD,OAAO,EAAC,WAAW,EAAE,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAA"}
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export type { DisplayProfile, FontMetrics, UniformScriptWidths, FallbackConfig, DisplayConstraints, ScriptType, } from "./types";
|
|
8
8
|
export { G1_PROFILE, G1_PROFILE_LEGACY, G1_HYPHEN_WIDTH_PX, G1_SPACE_WIDTH_PX } from "./g1";
|
|
9
|
-
export { Z100_PROFILE, Z100_HYPHEN_WIDTH_PX, Z100_SPACE_WIDTH_PX } from "./z100";
|
|
10
9
|
export { G2_PROFILE, G2_HYPHEN_WIDTH_PX, G2_SPACE_WIDTH_PX } from "./g2";
|
|
11
10
|
export { NEX_PROFILE, NEX_HYPHEN_WIDTH_PX, NEX_SPACE_WIDTH_PX } from "./nex";
|
|
12
11
|
export { RAYNEO_IO_PROFILE, RAYNEO_IO_CFW_PROFILE, RAYNEO_IO_HYPHEN_WIDTH_PX, RAYNEO_IO_SPACE_WIDTH_PX, } from "./rayneo-io";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/display/profiles/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACV,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,UAAU,GACX,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,MAAM,CAAA;AAGzF,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/display/profiles/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,YAAY,EACV,cAAc,EACd,WAAW,EACX,mBAAmB,EACnB,cAAc,EACd,kBAAkB,EAClB,UAAU,GACX,MAAM,SAAS,CAAA;AAGhB,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,MAAM,CAAA;AAGzF,OAAO,EAAC,UAAU,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,MAAM,CAAA;AAGtE,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAE,kBAAkB,EAAC,MAAM,OAAO,CAAA;AAG1E,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAA;AAEnD,OAAO,EAAC,gBAAgB,EAAE,qBAAqB,EAAE,YAAY,EAAC,MAAM,QAAQ,CAAA;AAE5E,OAAO,EAAC,YAAY,EAAE,cAAc,EAAC,MAAM,eAAe,CAAA;AAC1D,YAAY,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAA"}
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
*/
|
|
7
7
|
// G1 Profiles
|
|
8
8
|
export { G1_PROFILE, G1_PROFILE_LEGACY, G1_HYPHEN_WIDTH_PX, G1_SPACE_WIDTH_PX } from "./g1";
|
|
9
|
-
// Z100 Profile
|
|
10
|
-
export { Z100_PROFILE, Z100_HYPHEN_WIDTH_PX, Z100_SPACE_WIDTH_PX } from "./z100";
|
|
11
9
|
// G2 Profile
|
|
12
10
|
export { G2_PROFILE, G2_HYPHEN_WIDTH_PX, G2_SPACE_WIDTH_PX } from "./g2";
|
|
13
11
|
// Mentra Nex Profile (a.k.a. Mentra Display)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/display/profiles/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH,cAAc;AACd,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,MAAM,CAAA;AAEzF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/display/profiles/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH,cAAc;AACd,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,MAAM,CAAA;AAEzF,aAAa;AACb,OAAO,EAAC,UAAU,EAAE,kBAAkB,EAAE,iBAAiB,EAAC,MAAM,MAAM,CAAA;AAEtE,6CAA6C;AAC7C,OAAO,EAAC,WAAW,EAAE,mBAAmB,EAAE,kBAAkB,EAAC,MAAM,OAAO,CAAA;AAE1E,mEAAmE;AACnE,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,yBAAyB,EACzB,wBAAwB,GACzB,MAAM,aAAa,CAAA;AAEpB,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAA;AAEnD,OAAO,EAAC,gBAAgB,EAAE,qBAAqB,EAAE,YAAY,EAAC,MAAM,QAAQ,CAAA;AAE5E,OAAO,EAAC,YAAY,EAAE,cAAc,EAAC,MAAM,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textProfile.d.ts","sourceRoot":"","sources":["../../../src/display/profiles/textProfile.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;
|
|
1
|
+
{"version":3,"file":"textProfile.d.ts","sourceRoot":"","sources":["../../../src/display/profiles/textProfile.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAE3C,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,OAAO,CAAC,EAAE;QAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,GAAG,IAAI,CAAA;IAChE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACvB;AA2BD;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,YAAY,EAAE,uBAAuB,GAAG,IAAI,GAAG,SAAS,GAAG,cAAc,CAMvG;AAED,yEAAyE;AACzE,wBAAgB,YAAY,CAC1B,OAAO,EAAE,cAAc,EACvB,GAAG,EAAE;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAC,GAC1B;IAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAC,CAKxC"}
|
|
@@ -4,12 +4,10 @@ import { MEMOMIND_ONE_PROFILE } from "./memomind-one";
|
|
|
4
4
|
import { NEX_PROFILE } from "./nex";
|
|
5
5
|
import { NIMO_CFW_PROFILE, NIMO_CFW_TEXT_PROFILE, NIMO_PROFILE } from "./nimo";
|
|
6
6
|
import { RAYNEO_IO_CFW_PROFILE, RAYNEO_IO_PROFILE } from "./rayneo-io";
|
|
7
|
-
import { Z100_PROFILE } from "./z100";
|
|
8
7
|
const PROFILES_BY_ID = new Map([
|
|
9
8
|
G1_PROFILE,
|
|
10
9
|
G1_PROFILE_LEGACY,
|
|
11
10
|
G2_PROFILE,
|
|
12
|
-
Z100_PROFILE,
|
|
13
11
|
NEX_PROFILE,
|
|
14
12
|
RAYNEO_IO_PROFILE,
|
|
15
13
|
RAYNEO_IO_CFW_PROFILE,
|
|
@@ -22,9 +20,7 @@ const PROFILES_BY_ID = new Map([
|
|
|
22
20
|
const PROFILES_BY_MODEL = new Map([
|
|
23
21
|
["Even Realities G1", G1_PROFILE],
|
|
24
22
|
["Even Realities G2", G2_PROFILE],
|
|
25
|
-
["Vuzix Z100", Z100_PROFILE],
|
|
26
23
|
["Mentra Display", NEX_PROFILE],
|
|
27
|
-
["Mentra Mach1", Z100_PROFILE],
|
|
28
24
|
["RayNeo iO", RAYNEO_IO_PROFILE],
|
|
29
25
|
["MemoMind One", MEMOMIND_ONE_PROFILE],
|
|
30
26
|
["NIMO", NIMO_PROFILE],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textProfile.js","sourceRoot":"","sources":["../../../src/display/profiles/textProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAC,MAAM,MAAM,CAAA;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAA;AAC/B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAC,WAAW,EAAC,MAAM,OAAO,CAAA;AACjC,OAAO,EAAC,gBAAgB,EAAE,qBAAqB,EAAE,YAAY,EAAC,MAAM,QAAQ,CAAA;AAC5E,OAAO,EAAC,qBAAqB,EAAE,iBAAiB,EAAC,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"textProfile.js","sourceRoot":"","sources":["../../../src/display/profiles/textProfile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,iBAAiB,EAAC,MAAM,MAAM,CAAA;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAA;AAC/B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gBAAgB,CAAA;AACnD,OAAO,EAAC,WAAW,EAAC,MAAM,OAAO,CAAA;AACjC,OAAO,EAAC,gBAAgB,EAAE,qBAAqB,EAAE,YAAY,EAAC,MAAM,QAAQ,CAAA;AAC5E,OAAO,EAAC,qBAAqB,EAAE,iBAAiB,EAAC,MAAM,aAAa,CAAA;AASpE,MAAM,cAAc,GAAG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,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ;QACzG,UAAU,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,WAAW,IAAI,CAAC,CAAC,CAAC;KAChE,CAAA;AACH,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Degrade — compile a scene for devices that can't position elements
|
|
3
|
-
* (`canPosition: false`: G1
|
|
3
|
+
* (`canPosition: false`: G1). Output is a LEGACY layout that rides the
|
|
4
4
|
* existing display path — DisplayProcessor wraps it there, exactly as today,
|
|
5
5
|
* which is what keeps sugar byte-identical on old hardware (spec §2/§5:
|
|
6
6
|
* degrade output must be UNWRAPPED; wrapping twice breaks the goldens).
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Degrade — compile a scene for devices that can't position elements
|
|
3
|
-
* (`canPosition: false`: G1
|
|
3
|
+
* (`canPosition: false`: G1). Output is a LEGACY layout that rides the
|
|
4
4
|
* existing display path — DisplayProcessor wraps it there, exactly as today,
|
|
5
5
|
* which is what keeps sugar byte-identical on old hardware (spec §2/§5:
|
|
6
6
|
* degrade output must be UNWRAPPED; wrapping twice breaks the goldens).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glassly/miniapp",
|
|
3
|
-
"version": "0.4.3-dev.
|
|
3
|
+
"version": "0.4.3-dev.1213",
|
|
4
4
|
"description": "SDK for building Glassly local miniapps (browser/WebView)",
|
|
5
5
|
"author": "Glassly Labs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@glassly/cloud-protocol": "0.4.3-dev.
|
|
80
|
+
"@glassly/cloud-protocol": "0.4.3-dev.1213",
|
|
81
81
|
"eventemitter3": "^5.0.4"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
package/src/display/index.ts
CHANGED
|
@@ -18,9 +18,6 @@ export type {
|
|
|
18
18
|
// G1 Profiles
|
|
19
19
|
export {G1_PROFILE, G1_PROFILE_LEGACY, G1_HYPHEN_WIDTH_PX, G1_SPACE_WIDTH_PX} from "./g1"
|
|
20
20
|
|
|
21
|
-
// Z100 Profile
|
|
22
|
-
export {Z100_PROFILE, Z100_HYPHEN_WIDTH_PX, Z100_SPACE_WIDTH_PX} from "./z100"
|
|
23
|
-
|
|
24
21
|
// G2 Profile
|
|
25
22
|
export {G2_PROFILE, G2_HYPHEN_WIDTH_PX, G2_SPACE_WIDTH_PX} from "./g2"
|
|
26
23
|
|
|
@@ -5,7 +5,6 @@ import {NEX_PROFILE} from "./nex"
|
|
|
5
5
|
import {NIMO_CFW_PROFILE, NIMO_CFW_TEXT_PROFILE, NIMO_PROFILE} from "./nimo"
|
|
6
6
|
import {RAYNEO_IO_CFW_PROFILE, RAYNEO_IO_PROFILE} from "./rayneo-io"
|
|
7
7
|
import type {DisplayProfile} from "./types"
|
|
8
|
-
import {Z100_PROFILE} from "./z100"
|
|
9
8
|
|
|
10
9
|
export interface TextProfileCapabilities {
|
|
11
10
|
modelName?: unknown
|
|
@@ -18,7 +17,6 @@ const PROFILES_BY_ID = new Map(
|
|
|
18
17
|
G1_PROFILE,
|
|
19
18
|
G1_PROFILE_LEGACY,
|
|
20
19
|
G2_PROFILE,
|
|
21
|
-
Z100_PROFILE,
|
|
22
20
|
NEX_PROFILE,
|
|
23
21
|
RAYNEO_IO_PROFILE,
|
|
24
22
|
RAYNEO_IO_CFW_PROFILE,
|
|
@@ -33,9 +31,7 @@ const PROFILES_BY_ID = new Map(
|
|
|
33
31
|
const PROFILES_BY_MODEL = new Map<string, DisplayProfile>([
|
|
34
32
|
["Even Realities G1", G1_PROFILE],
|
|
35
33
|
["Even Realities G2", G2_PROFILE],
|
|
36
|
-
["Vuzix Z100", Z100_PROFILE],
|
|
37
34
|
["Mentra Display", NEX_PROFILE],
|
|
38
|
-
["Mentra Mach1", Z100_PROFILE],
|
|
39
35
|
["RayNeo iO", RAYNEO_IO_PROFILE],
|
|
40
36
|
["MemoMind One", MEMOMIND_ONE_PROFILE],
|
|
41
37
|
["NIMO", NIMO_PROFILE],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Degrade — compile a scene for devices that can't position elements
|
|
3
|
-
* (`canPosition: false`: G1
|
|
3
|
+
* (`canPosition: false`: G1). Output is a LEGACY layout that rides the
|
|
4
4
|
* existing display path — DisplayProcessor wraps it there, exactly as today,
|
|
5
5
|
* which is what keeps sugar byte-identical on old hardware (spec §2/§5:
|
|
6
6
|
* degrade output must be UNWRAPPED; wrapping twice breaks the goldens).
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { DisplayProfile } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Vuzix Z100 Smart Glasses Display Profile
|
|
4
|
-
*
|
|
5
|
-
* The Z100 has a green monochrome display with 640x480 resolution.
|
|
6
|
-
* It uses the Vuzix Ultralite SDK and Noto Sans font family.
|
|
7
|
-
*
|
|
8
|
-
* Display specs:
|
|
9
|
-
* - Resolution: 640x480
|
|
10
|
-
* - Usable text width: ~390px (empirically tested - SDK applies margins)
|
|
11
|
-
* - Color: Green monochrome
|
|
12
|
-
* - Max text lines: 7
|
|
13
|
-
* - Font: Noto Sans Regular at 21px
|
|
14
|
-
* - No bitmap support via text commands
|
|
15
|
-
* - Adjustable brightness
|
|
16
|
-
*
|
|
17
|
-
* NOTE: The Vuzix Ultralite SDK handles text rendering internally and applies
|
|
18
|
-
* its own margins/padding. The usable text width is significantly less than
|
|
19
|
-
* the physical 640px resolution. Empirical testing shows ~42 characters of
|
|
20
|
-
* mixed text (387px measured) fits on one line before the SDK wraps.
|
|
21
|
-
*/
|
|
22
|
-
export declare const Z100_PROFILE: DisplayProfile;
|
|
23
|
-
/**
|
|
24
|
-
* Get the hyphen width for Z100 in pixels.
|
|
25
|
-
* Used for line breaking calculations.
|
|
26
|
-
*/
|
|
27
|
-
export declare const Z100_HYPHEN_WIDTH_PX = 7;
|
|
28
|
-
/**
|
|
29
|
-
* Get the space width for Z100 in pixels.
|
|
30
|
-
* Used for column alignment calculations.
|
|
31
|
-
*/
|
|
32
|
-
export declare const Z100_SPACE_WIDTH_PX = 5;
|
|
33
|
-
//# sourceMappingURL=z100.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"z100.d.ts","sourceRoot":"","sources":["../../../src/display/profiles/z100.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAyHtC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,YAAY,EAAE,cA4C1B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,IAAI,CAAA;AAErC;;;GAGG;AACH,eAAO,MAAM,mBAAmB,IAAI,CAAA"}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vuzix Z100 glyph widths - extracted from NotoSans-Regular.ttf at 21px
|
|
3
|
-
*
|
|
4
|
-
* These are pixel widths at the default font size used by the Z100 display.
|
|
5
|
-
* The Z100 uses Noto Sans as its system font.
|
|
6
|
-
*
|
|
7
|
-
* Extracted using: node scripts/extract-font-metrics.js NotoSans-Regular.ttf 21
|
|
8
|
-
*/
|
|
9
|
-
const Z100_GLYPH_WIDTHS = {
|
|
10
|
-
// Space and punctuation
|
|
11
|
-
" ": 5,
|
|
12
|
-
"!": 6,
|
|
13
|
-
'"': 9,
|
|
14
|
-
"#": 14,
|
|
15
|
-
"$": 12,
|
|
16
|
-
"%": 17,
|
|
17
|
-
"&": 15,
|
|
18
|
-
"'": 5,
|
|
19
|
-
"(": 6,
|
|
20
|
-
")": 6,
|
|
21
|
-
"*": 12,
|
|
22
|
-
"+": 12,
|
|
23
|
-
",": 6,
|
|
24
|
-
"-": 7, // Hyphen width - important for line breaking
|
|
25
|
-
".": 6,
|
|
26
|
-
"/": 8,
|
|
27
|
-
// Numbers
|
|
28
|
-
"0": 12,
|
|
29
|
-
"1": 12,
|
|
30
|
-
"2": 12,
|
|
31
|
-
"3": 12,
|
|
32
|
-
"4": 12,
|
|
33
|
-
"5": 12,
|
|
34
|
-
"6": 12,
|
|
35
|
-
"7": 12,
|
|
36
|
-
"8": 12,
|
|
37
|
-
"9": 12,
|
|
38
|
-
// More punctuation
|
|
39
|
-
":": 6,
|
|
40
|
-
";": 6,
|
|
41
|
-
"<": 12,
|
|
42
|
-
"=": 12,
|
|
43
|
-
">": 12,
|
|
44
|
-
"?": 9,
|
|
45
|
-
"@": 19,
|
|
46
|
-
// Uppercase
|
|
47
|
-
"A": 13,
|
|
48
|
-
"B": 14,
|
|
49
|
-
"C": 13,
|
|
50
|
-
"D": 15,
|
|
51
|
-
"E": 12,
|
|
52
|
-
"F": 11,
|
|
53
|
-
"G": 15,
|
|
54
|
-
"H": 16,
|
|
55
|
-
"I": 7,
|
|
56
|
-
"J": 6,
|
|
57
|
-
"K": 13,
|
|
58
|
-
"L": 11,
|
|
59
|
-
"M": 19,
|
|
60
|
-
"N": 16,
|
|
61
|
-
"O": 16,
|
|
62
|
-
"P": 13,
|
|
63
|
-
"Q": 16,
|
|
64
|
-
"R": 13,
|
|
65
|
-
"S": 12,
|
|
66
|
-
"T": 12,
|
|
67
|
-
"U": 15,
|
|
68
|
-
"V": 13,
|
|
69
|
-
"W": 20,
|
|
70
|
-
"X": 12,
|
|
71
|
-
"Y": 12,
|
|
72
|
-
"Z": 12,
|
|
73
|
-
// Brackets & special
|
|
74
|
-
"[": 7,
|
|
75
|
-
"\\": 8,
|
|
76
|
-
"]": 7,
|
|
77
|
-
"^": 12,
|
|
78
|
-
"_": 9,
|
|
79
|
-
"`": 6,
|
|
80
|
-
// Lowercase
|
|
81
|
-
"a": 12,
|
|
82
|
-
"b": 13,
|
|
83
|
-
"c": 10,
|
|
84
|
-
"d": 13,
|
|
85
|
-
"e": 12,
|
|
86
|
-
"f": 7,
|
|
87
|
-
"g": 13,
|
|
88
|
-
"h": 13,
|
|
89
|
-
"i": 5,
|
|
90
|
-
"j": 5,
|
|
91
|
-
"k": 11,
|
|
92
|
-
"l": 5,
|
|
93
|
-
"m": 20,
|
|
94
|
-
"n": 13,
|
|
95
|
-
"o": 13,
|
|
96
|
-
"p": 13,
|
|
97
|
-
"q": 13,
|
|
98
|
-
"r": 9,
|
|
99
|
-
"s": 10,
|
|
100
|
-
"t": 8,
|
|
101
|
-
"u": 13,
|
|
102
|
-
"v": 11,
|
|
103
|
-
"w": 17,
|
|
104
|
-
"x": 11,
|
|
105
|
-
"y": 11,
|
|
106
|
-
"z": 10,
|
|
107
|
-
// More special
|
|
108
|
-
"{": 8,
|
|
109
|
-
"|": 12,
|
|
110
|
-
"}": 8,
|
|
111
|
-
"~": 12,
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* Vuzix Z100 Smart Glasses Display Profile
|
|
115
|
-
*
|
|
116
|
-
* The Z100 has a green monochrome display with 640x480 resolution.
|
|
117
|
-
* It uses the Vuzix Ultralite SDK and Noto Sans font family.
|
|
118
|
-
*
|
|
119
|
-
* Display specs:
|
|
120
|
-
* - Resolution: 640x480
|
|
121
|
-
* - Usable text width: ~390px (empirically tested - SDK applies margins)
|
|
122
|
-
* - Color: Green monochrome
|
|
123
|
-
* - Max text lines: 7
|
|
124
|
-
* - Font: Noto Sans Regular at 21px
|
|
125
|
-
* - No bitmap support via text commands
|
|
126
|
-
* - Adjustable brightness
|
|
127
|
-
*
|
|
128
|
-
* NOTE: The Vuzix Ultralite SDK handles text rendering internally and applies
|
|
129
|
-
* its own margins/padding. The usable text width is significantly less than
|
|
130
|
-
* the physical 640px resolution. Empirical testing shows ~42 characters of
|
|
131
|
-
* mixed text (387px measured) fits on one line before the SDK wraps.
|
|
132
|
-
*/
|
|
133
|
-
export const Z100_PROFILE = {
|
|
134
|
-
id: "vuzix-z100",
|
|
135
|
-
name: "Vuzix Z100",
|
|
136
|
-
// Display dimensions
|
|
137
|
-
// Empirically tested: ~42 chars of mixed text (387px) fits before SDK wraps
|
|
138
|
-
// Using 390px to account for measurement variance
|
|
139
|
-
displayWidthPx: 390,
|
|
140
|
-
maxLines: 7,
|
|
141
|
-
// BLE constraints
|
|
142
|
-
// Z100 uses Vuzix Ultralite SDK which handles chunking internally
|
|
143
|
-
// These are conservative values for direct BLE if needed
|
|
144
|
-
maxPayloadBytes: 512,
|
|
145
|
-
bleChunkSize: 180,
|
|
146
|
-
// Font metrics - Noto Sans Regular at 21px
|
|
147
|
-
fontMetrics: {
|
|
148
|
-
glyphWidths: new Map(Object.entries(Z100_GLYPH_WIDTHS)),
|
|
149
|
-
defaultGlyphWidth: 12, // Average width from extracted metrics
|
|
150
|
-
// Z100 uses direct pixel widths, no render formula needed
|
|
151
|
-
renderFormula: (glyphWidth) => glyphWidth,
|
|
152
|
-
// Uniform-width scripts for CJK and other non-Latin
|
|
153
|
-
// Noto Sans CJK characters are typically wider
|
|
154
|
-
uniformScripts: {
|
|
155
|
-
cjk: 21, // Full-width CJK characters
|
|
156
|
-
hiragana: 21,
|
|
157
|
-
katakana: 21,
|
|
158
|
-
korean: 21,
|
|
159
|
-
cyrillic: 14, // Cyrillic is similar to Latin in Noto Sans
|
|
160
|
-
},
|
|
161
|
-
fallback: {
|
|
162
|
-
latinMaxWidth: 20, // 'W' and 'm' are the widest at 20px
|
|
163
|
-
unknownBehavior: "useLatinMax",
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
constraints: {
|
|
167
|
-
minCharsBeforeHyphen: 3,
|
|
168
|
-
noStartChars: [".", ",", "!", "?", ":", ";", ")", "]", "}", "。", ",", "!", "?", ":", ";", ")", "】", "」"],
|
|
169
|
-
noEndChars: ["(", "[", "{", "(", "【", "「"],
|
|
170
|
-
},
|
|
171
|
-
};
|
|
172
|
-
/**
|
|
173
|
-
* Get the hyphen width for Z100 in pixels.
|
|
174
|
-
* Used for line breaking calculations.
|
|
175
|
-
*/
|
|
176
|
-
export const Z100_HYPHEN_WIDTH_PX = 7;
|
|
177
|
-
/**
|
|
178
|
-
* Get the space width for Z100 in pixels.
|
|
179
|
-
* Used for column alignment calculations.
|
|
180
|
-
*/
|
|
181
|
-
export const Z100_SPACE_WIDTH_PX = 5;
|
|
182
|
-
//# sourceMappingURL=z100.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"z100.js","sourceRoot":"","sources":["../../../src/display/profiles/z100.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,MAAM,iBAAiB,GAA2B;IAChD,wBAAwB;IACxB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC,EAAE,6CAA6C;IACrD,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IAEN,UAAU;IACV,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IACP,GAAG,EAAE,EAAE;IAEP,mBAAmB;IACnB,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,EAAE;IACP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C,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;QACxG,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;KAC3C;CACF,CAAA;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAA;AAErC;;;GAGG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAA"}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import {DisplayProfile} from "./types"
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Vuzix Z100 glyph widths - extracted from NotoSans-Regular.ttf at 21px
|
|
5
|
-
*
|
|
6
|
-
* These are pixel widths at the default font size used by the Z100 display.
|
|
7
|
-
* The Z100 uses Noto Sans as its system font.
|
|
8
|
-
*
|
|
9
|
-
* Extracted using: node scripts/extract-font-metrics.js NotoSans-Regular.ttf 21
|
|
10
|
-
*/
|
|
11
|
-
const Z100_GLYPH_WIDTHS: Record<string, number> = {
|
|
12
|
-
// Space and punctuation
|
|
13
|
-
" ": 5,
|
|
14
|
-
"!": 6,
|
|
15
|
-
'"': 9,
|
|
16
|
-
"#": 14,
|
|
17
|
-
"$": 12,
|
|
18
|
-
"%": 17,
|
|
19
|
-
"&": 15,
|
|
20
|
-
"'": 5,
|
|
21
|
-
"(": 6,
|
|
22
|
-
")": 6,
|
|
23
|
-
"*": 12,
|
|
24
|
-
"+": 12,
|
|
25
|
-
",": 6,
|
|
26
|
-
"-": 7, // Hyphen width - important for line breaking
|
|
27
|
-
".": 6,
|
|
28
|
-
"/": 8,
|
|
29
|
-
|
|
30
|
-
// Numbers
|
|
31
|
-
"0": 12,
|
|
32
|
-
"1": 12,
|
|
33
|
-
"2": 12,
|
|
34
|
-
"3": 12,
|
|
35
|
-
"4": 12,
|
|
36
|
-
"5": 12,
|
|
37
|
-
"6": 12,
|
|
38
|
-
"7": 12,
|
|
39
|
-
"8": 12,
|
|
40
|
-
"9": 12,
|
|
41
|
-
|
|
42
|
-
// More punctuation
|
|
43
|
-
":": 6,
|
|
44
|
-
";": 6,
|
|
45
|
-
"<": 12,
|
|
46
|
-
"=": 12,
|
|
47
|
-
">": 12,
|
|
48
|
-
"?": 9,
|
|
49
|
-
"@": 19,
|
|
50
|
-
|
|
51
|
-
// Uppercase
|
|
52
|
-
"A": 13,
|
|
53
|
-
"B": 14,
|
|
54
|
-
"C": 13,
|
|
55
|
-
"D": 15,
|
|
56
|
-
"E": 12,
|
|
57
|
-
"F": 11,
|
|
58
|
-
"G": 15,
|
|
59
|
-
"H": 16,
|
|
60
|
-
"I": 7,
|
|
61
|
-
"J": 6,
|
|
62
|
-
"K": 13,
|
|
63
|
-
"L": 11,
|
|
64
|
-
"M": 19,
|
|
65
|
-
"N": 16,
|
|
66
|
-
"O": 16,
|
|
67
|
-
"P": 13,
|
|
68
|
-
"Q": 16,
|
|
69
|
-
"R": 13,
|
|
70
|
-
"S": 12,
|
|
71
|
-
"T": 12,
|
|
72
|
-
"U": 15,
|
|
73
|
-
"V": 13,
|
|
74
|
-
"W": 20,
|
|
75
|
-
"X": 12,
|
|
76
|
-
"Y": 12,
|
|
77
|
-
"Z": 12,
|
|
78
|
-
|
|
79
|
-
// Brackets & special
|
|
80
|
-
"[": 7,
|
|
81
|
-
"\\": 8,
|
|
82
|
-
"]": 7,
|
|
83
|
-
"^": 12,
|
|
84
|
-
"_": 9,
|
|
85
|
-
"`": 6,
|
|
86
|
-
|
|
87
|
-
// Lowercase
|
|
88
|
-
"a": 12,
|
|
89
|
-
"b": 13,
|
|
90
|
-
"c": 10,
|
|
91
|
-
"d": 13,
|
|
92
|
-
"e": 12,
|
|
93
|
-
"f": 7,
|
|
94
|
-
"g": 13,
|
|
95
|
-
"h": 13,
|
|
96
|
-
"i": 5,
|
|
97
|
-
"j": 5,
|
|
98
|
-
"k": 11,
|
|
99
|
-
"l": 5,
|
|
100
|
-
"m": 20,
|
|
101
|
-
"n": 13,
|
|
102
|
-
"o": 13,
|
|
103
|
-
"p": 13,
|
|
104
|
-
"q": 13,
|
|
105
|
-
"r": 9,
|
|
106
|
-
"s": 10,
|
|
107
|
-
"t": 8,
|
|
108
|
-
"u": 13,
|
|
109
|
-
"v": 11,
|
|
110
|
-
"w": 17,
|
|
111
|
-
"x": 11,
|
|
112
|
-
"y": 11,
|
|
113
|
-
"z": 10,
|
|
114
|
-
|
|
115
|
-
// More special
|
|
116
|
-
"{": 8,
|
|
117
|
-
"|": 12,
|
|
118
|
-
"}": 8,
|
|
119
|
-
"~": 12,
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Vuzix Z100 Smart Glasses Display Profile
|
|
124
|
-
*
|
|
125
|
-
* The Z100 has a green monochrome display with 640x480 resolution.
|
|
126
|
-
* It uses the Vuzix Ultralite SDK and Noto Sans font family.
|
|
127
|
-
*
|
|
128
|
-
* Display specs:
|
|
129
|
-
* - Resolution: 640x480
|
|
130
|
-
* - Usable text width: ~390px (empirically tested - SDK applies margins)
|
|
131
|
-
* - Color: Green monochrome
|
|
132
|
-
* - Max text lines: 7
|
|
133
|
-
* - Font: Noto Sans Regular at 21px
|
|
134
|
-
* - No bitmap support via text commands
|
|
135
|
-
* - Adjustable brightness
|
|
136
|
-
*
|
|
137
|
-
* NOTE: The Vuzix Ultralite SDK handles text rendering internally and applies
|
|
138
|
-
* its own margins/padding. The usable text width is significantly less than
|
|
139
|
-
* the physical 640px resolution. Empirical testing shows ~42 characters of
|
|
140
|
-
* mixed text (387px measured) fits on one line before the SDK wraps.
|
|
141
|
-
*/
|
|
142
|
-
export const Z100_PROFILE: DisplayProfile = {
|
|
143
|
-
id: "vuzix-z100",
|
|
144
|
-
name: "Vuzix Z100",
|
|
145
|
-
|
|
146
|
-
// Display dimensions
|
|
147
|
-
// Empirically tested: ~42 chars of mixed text (387px) fits before SDK wraps
|
|
148
|
-
// Using 390px to account for measurement variance
|
|
149
|
-
displayWidthPx: 390,
|
|
150
|
-
maxLines: 7,
|
|
151
|
-
|
|
152
|
-
// BLE constraints
|
|
153
|
-
// Z100 uses Vuzix Ultralite SDK which handles chunking internally
|
|
154
|
-
// These are conservative values for direct BLE if needed
|
|
155
|
-
maxPayloadBytes: 512,
|
|
156
|
-
bleChunkSize: 180,
|
|
157
|
-
|
|
158
|
-
// Font metrics - Noto Sans Regular at 21px
|
|
159
|
-
fontMetrics: {
|
|
160
|
-
glyphWidths: new Map(Object.entries(Z100_GLYPH_WIDTHS)),
|
|
161
|
-
defaultGlyphWidth: 12, // Average width from extracted metrics
|
|
162
|
-
// Z100 uses direct pixel widths, no render formula needed
|
|
163
|
-
renderFormula: (glyphWidth: number) => glyphWidth,
|
|
164
|
-
|
|
165
|
-
// Uniform-width scripts for CJK and other non-Latin
|
|
166
|
-
// Noto Sans CJK characters are typically wider
|
|
167
|
-
uniformScripts: {
|
|
168
|
-
cjk: 21, // Full-width CJK characters
|
|
169
|
-
hiragana: 21,
|
|
170
|
-
katakana: 21,
|
|
171
|
-
korean: 21,
|
|
172
|
-
cyrillic: 14, // Cyrillic is similar to Latin in Noto Sans
|
|
173
|
-
},
|
|
174
|
-
|
|
175
|
-
fallback: {
|
|
176
|
-
latinMaxWidth: 20, // 'W' and 'm' are the widest at 20px
|
|
177
|
-
unknownBehavior: "useLatinMax",
|
|
178
|
-
},
|
|
179
|
-
},
|
|
180
|
-
|
|
181
|
-
constraints: {
|
|
182
|
-
minCharsBeforeHyphen: 3,
|
|
183
|
-
noStartChars: [".", ",", "!", "?", ":", ";", ")", "]", "}", "。", ",", "!", "?", ":", ";", ")", "】", "」"],
|
|
184
|
-
noEndChars: ["(", "[", "{", "(", "【", "「"],
|
|
185
|
-
},
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Get the hyphen width for Z100 in pixels.
|
|
190
|
-
* Used for line breaking calculations.
|
|
191
|
-
*/
|
|
192
|
-
export const Z100_HYPHEN_WIDTH_PX = 7
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Get the space width for Z100 in pixels.
|
|
196
|
-
* Used for column alignment calculations.
|
|
197
|
-
*/
|
|
198
|
-
export const Z100_SPACE_WIDTH_PX = 5
|