@regulaforensics/vp-frontend-face-components 6.5.1630-nightly → 6.5.1632-nightly
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 +103 -0
- package/dist/main.iife.js +3 -3
- package/dist/main.js +34 -33
- package/package.json +1 -1
package/README.md
CHANGED
@@ -256,6 +256,109 @@ component.settings = {
|
|
256
256
|
|
257
257
|
```
|
258
258
|
|
259
|
+
### CSS Parts
|
260
|
+
To customize the appearance, use the part attribute and define the desired CSS properties. (Note: The specificity of the ::part styles is greater than that of the styles set via settings). Examples:
|
261
|
+
|
262
|
+
```css
|
263
|
+
|
264
|
+
/** general component overlay */
|
265
|
+
face-liveness {
|
266
|
+
background-color: #e6e6e6;
|
267
|
+
}
|
268
|
+
|
269
|
+
/** web component container */
|
270
|
+
face-liveness::part(wc-container) {
|
271
|
+
box-shadow: none;
|
272
|
+
border-radius: 0;
|
273
|
+
}
|
274
|
+
|
275
|
+
/** instruction screen */
|
276
|
+
face-liveness::part(onboarding-screen-title) {
|
277
|
+
text-decoration: underline;
|
278
|
+
}
|
279
|
+
face-liveness::part(onboarding-screen-subtitle) {
|
280
|
+
text-decoration: underline;
|
281
|
+
}
|
282
|
+
face-liveness::part(onboarding-screen-start-button) {
|
283
|
+
background-color: #7c7c7c;
|
284
|
+
}
|
285
|
+
face-liveness::part(onboarding-screen-start-button):hover {
|
286
|
+
background-color: #bd7dff;
|
287
|
+
}
|
288
|
+
face-liveness::part(onboarding-screen-start-button) {
|
289
|
+
color: #000;
|
290
|
+
}
|
291
|
+
face-liveness::part(onboarding-screen-start-button):hover {
|
292
|
+
color: #000;
|
293
|
+
}
|
294
|
+
|
295
|
+
/** instruction screen icons */
|
296
|
+
/** you can set any image from url */
|
297
|
+
face-liveness::part(onboarding-screen-illumination) {
|
298
|
+
background: #000;
|
299
|
+
}
|
300
|
+
face-liveness::part(onboarding-screen-accessories) {
|
301
|
+
background: #000;
|
302
|
+
}
|
303
|
+
face-liveness::part(onboarding-screen-camera-level) {
|
304
|
+
background: #000;
|
305
|
+
}
|
306
|
+
|
307
|
+
/** camera mode svg's */
|
308
|
+
face-liveness::part(camera-screen-sector-target) {
|
309
|
+
border-left-color: #000;
|
310
|
+
}
|
311
|
+
face-liveness::part(camera-screen-stroke-normal) {
|
312
|
+
stroke: #000;
|
313
|
+
}
|
314
|
+
face-liveness::part(camera-screen-sector-active) {
|
315
|
+
stroke: #000;
|
316
|
+
}
|
317
|
+
|
318
|
+
/** message plate */
|
319
|
+
face-liveness::part(camera-screen-front-hint-label) {
|
320
|
+
background: #000;
|
321
|
+
color: yellow;
|
322
|
+
}
|
323
|
+
|
324
|
+
/** spinner */
|
325
|
+
face-liveness::part(processing-screen-progress)::before {
|
326
|
+
border-top-color: #000;
|
327
|
+
}
|
328
|
+
/** success image */
|
329
|
+
face-liveness::part(success-screen-image) {
|
330
|
+
background: #000;
|
331
|
+
}
|
332
|
+
|
333
|
+
/** retry screen */
|
334
|
+
face-liveness::part(retry-screen-environment-text) {
|
335
|
+
text-decoration: underline;
|
336
|
+
}
|
337
|
+
face-liveness::part(retry-screen-environment-image) {
|
338
|
+
background: rgb(88, 82, 82);
|
339
|
+
}
|
340
|
+
face-liveness::part(retry-screen-person-text) {
|
341
|
+
text-decoration: underline;
|
342
|
+
}
|
343
|
+
face-liveness::part(retry-screen-person-image) {
|
344
|
+
background: rgb(88, 82, 82);
|
345
|
+
}
|
346
|
+
/** retry button */
|
347
|
+
face-liveness::part(retry-screen-retry-button) {
|
348
|
+
background: rgb(88, 82, 82);
|
349
|
+
}
|
350
|
+
face-liveness::part(retry-screen-title-text) {
|
351
|
+
color: rgb(88, 82, 82);
|
352
|
+
text-decoration: underline;
|
353
|
+
}
|
354
|
+
face-liveness::part(retry-screen-subtitle-text) {
|
355
|
+
color: rgb(88, 82, 82);
|
356
|
+
text-decoration: underline;
|
357
|
+
}
|
358
|
+
```
|
359
|
+
|
360
|
+
For more details about ::part() CSS pseudo-elements, see the article at [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/CSS/::part).
|
361
|
+
|
259
362
|
|
260
363
|
## Events
|
261
364
|
|