@nuralogix.ai/web-measurement-embedded-app 0.1.0-beta.1 → 0.1.0-beta.2
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 +13 -5
- package/dist/app.mjs +9 -9
- package/dist/assets/extraction/extraction_wasm_0.1.0-beta.1.json +1 -0
- package/dist/assets/extraction_worker_0.1.0-beta.1_js.json +1 -0
- package/dist/assets/facetracker_worker_0.1.0-beta.1_js.json +1 -0
- package/dist/language/strings.de.json +1 -1
- package/dist/language/strings.en.json +1 -1
- package/dist/language/strings.es.json +1 -1
- package/dist/language/strings.fr.json +1 -1
- package/dist/language/strings.it.json +1 -1
- package/dist/language/strings.ja.json +1 -1
- package/dist/language/{strings.br.json → strings.pt-BR.json} +1 -1
- package/dist/language/strings.pt.json +1 -1
- package/dist/language/{strings.cn.json → strings.zh.json} +1 -1
- package/lib/index.d.ts +44 -4
- package/lib/index.mjs +2 -2
- package/package.json +2 -1
- package/dist/assets/extraction/extraction_wasm_0.1.0-alpha.36.json +0 -1
- package/dist/assets/extraction_worker_0.1.0-alpha.36_js.json +0 -1
- package/dist/assets/facetracker_worker_0.1.0-alpha.36_js.json +0 -1
package/README.md
CHANGED
|
@@ -9,6 +9,15 @@ Need deeper integration details? Check the full docs at [docs.deepaffex.ai/wmea]
|
|
|
9
9
|
<meta charset="UTF-8" />
|
|
10
10
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
11
11
|
<title>Measurement Embedded App Demo</title>
|
|
12
|
+
<style>
|
|
13
|
+
#measurement-embedded-app-container {
|
|
14
|
+
position: fixed;
|
|
15
|
+
top: 100px;
|
|
16
|
+
left: 0;
|
|
17
|
+
width: 100vw;
|
|
18
|
+
height: calc(100vh - 100px);
|
|
19
|
+
}
|
|
20
|
+
</style>
|
|
12
21
|
<script type="importmap">
|
|
13
22
|
{
|
|
14
23
|
"imports": {
|
|
@@ -62,8 +71,7 @@ Need deeper integration details? Check the full docs at [docs.deepaffex.ai/wmea]
|
|
|
62
71
|
measurementAutoStart: false,
|
|
63
72
|
cancelWhenLowSNR: true,
|
|
64
73
|
}
|
|
65
|
-
// Optional
|
|
66
|
-
// top: '100px'
|
|
74
|
+
// Optional language/api overrides
|
|
67
75
|
// language: 'fr'
|
|
68
76
|
apiUrl: 'api.na-east.deepaffex.ai', // optional for region specific data processing
|
|
69
77
|
loadError: function(error) {
|
|
@@ -93,7 +101,7 @@ Need deeper integration details? Check the full docs at [docs.deepaffex.ai/wmea]
|
|
|
93
101
|
|
|
94
102
|
- Set `appPath` to `'.'` when you bundle the assets yourself.
|
|
95
103
|
- Profile handling: when `bypassProfile` remains `true` (default) we skip demographic submission and emit an `ERROR` event with `PROFILE_INFO_NOT_SET`; set it to `false` once you supply real profile data.
|
|
96
|
-
-
|
|
104
|
+
- Style the container you pass to `init` (e.g., position, top, width).
|
|
97
105
|
- Optional `apiUrl` enables region-specific processing; omitted values follow the backend token's region automatically. When set explicitly, frontend calls your URL (processing where that endpoint runs) while results continue to store in the token's region—verify the combination suits your deployment.
|
|
98
106
|
- Config options:
|
|
99
107
|
- `checkConstraints` (default: `true`) – enables constraint validation pre-measurement
|
|
@@ -101,8 +109,8 @@ Need deeper integration details? Check the full docs at [docs.deepaffex.ai/wmea]
|
|
|
101
109
|
- `cameraAutoStart` (default: `false`) – automatically starts the camera once permission is granted.
|
|
102
110
|
- `measurementAutoStart` (default: `false`) – automatically starts the measurement once constraints are satisfied.
|
|
103
111
|
- `cancelWhenLowSNR` (default: `true`) – cancels the measurement if signal-to-noise ratio falls below threshold.
|
|
104
|
-
- Language support: `en`, `ja`, `
|
|
105
|
-
-
|
|
112
|
+
- Language support: `en`, `ja`, `zh`, `es`, `pt`, `pt-BR`, `it`, `fr`, `de`.
|
|
113
|
+
- Unsupported browser locales fall back to base language (e.g., `zh-TW` → `zh`), then to English.
|
|
106
114
|
- `loadError` is called if assets fail to download or the app cannot initialize.
|
|
107
115
|
|
|
108
116
|
**Methods:**
|