@egen-civitas/esm-styleguide 2.3.0 → 2.3.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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @egen-civitas/esm-styleguide
|
|
2
2
|
|
|
3
|
+
## 2.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 450752c: `LiveOrb` : la tête est agrandie d'environ 9 % dans sa boîte (nouvelle constante exportée `HEAD_ZOOM = 1.09`). Le zoom est appliqué à toute la scène (caméra du shader, et conteneur du repli sans GPU) : crâne, yeux, trait, oreillettes et halo grandissent du même facteur, donc les proportions mesurées sur la mascotte restent identiques. Le halo néon et la rotation maximale de la tête restent dans le cadre.
|
|
8
|
+
|
|
3
9
|
## 2.3.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -43,6 +43,12 @@ export declare const CUSTOM_DEFAULT: {
|
|
|
43
43
|
export declare const WEBGL_COLORS: string[];
|
|
44
44
|
/** Neon ring of the ear-cups: green → yellow (measured on the EGEN mascot). */
|
|
45
45
|
export declare const EAR_COLORS: string[];
|
|
46
|
+
/**
|
|
47
|
+
* Zoom of the whole head in its square box (1 = previous size). The camera is
|
|
48
|
+
* pulled in, so every part (skull, eyes, line, ears, halo) grows by the same
|
|
49
|
+
* factor and the proportions stay exactly as designed.
|
|
50
|
+
*/
|
|
51
|
+
export declare const HEAD_ZOOM = 1.09;
|
|
46
52
|
export declare function resolveVariant(variant: LiveOrbVariant, color?: string, eyeColor?: string, colors?: string[], earColors?: string[]): {
|
|
47
53
|
body: string;
|
|
48
54
|
eye: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-orb.component.d.ts","sourceRoot":"","sources":["../../src/assistant/live-orb.component.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,MAAM,MAA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C,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAUA;AAQD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,CAkBnF;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,GAAE,cAAmB,GAAG,eAAe,GAAG,IAAI,CA0O7G;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AA2HF;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,EACtB,SAAS,EACT,IAAU,EACV,KAA0B,EAC1B,OAAiB,EACjB,KAAK,EACL,QAAQ,EACR,MAAM,EACN,WAAkB,EAClB,KAAY,EACZ,IAAW,EACX,SAAS,GACV,EAAE,YAAY,qBAuDd;AAED,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import { jsx as _jsx, jsxs as _jsxs
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
3
|
import React, { useEffect, useRef, useState } from "react";
|
|
4
4
|
import { cn } from "../page-background/page-background.utils.js";
|
|
5
5
|
export const WHITE = {
|
|
@@ -29,6 +29,11 @@ void main() {
|
|
|
29
29
|
gl_Position = vec4(a_position, 0.0, 1.0);
|
|
30
30
|
}
|
|
31
31
|
`;
|
|
32
|
+
/**
|
|
33
|
+
* Zoom of the whole head in its square box (1 = previous size). The camera is
|
|
34
|
+
* pulled in, so every part (skull, eyes, line, ears, halo) grows by the same
|
|
35
|
+
* factor and the proportions stay exactly as designed.
|
|
36
|
+
*/ export const HEAD_ZOOM = 1.09;
|
|
32
37
|
const FRAG = `
|
|
33
38
|
#ifdef GL_FRAGMENT_PRECISION_HIGH
|
|
34
39
|
precision highp float;
|
|
@@ -53,7 +58,7 @@ uniform vec3 u_ear2;
|
|
|
53
58
|
|
|
54
59
|
// ---- Camera ---------------------------------------------------------------
|
|
55
60
|
const float CAM_DIST = 6.0;
|
|
56
|
-
const float HALF_VIEW = 1.5;
|
|
61
|
+
const float HALF_VIEW = ${(1.5 / HEAD_ZOOM).toFixed(4)};
|
|
57
62
|
|
|
58
63
|
// ---- Head (local space, +z = face) ----------------------------------------
|
|
59
64
|
const vec3 HEAD_R = vec3(1.0, 0.74, 0.86);
|
|
@@ -759,7 +764,14 @@ const MAX_PITCH = 0.4;
|
|
|
759
764
|
top: '42.9%',
|
|
760
765
|
borderRadius: '50%'
|
|
761
766
|
};
|
|
762
|
-
return /*#__PURE__*/ _jsxs(
|
|
767
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
768
|
+
"data-part": "zoom",
|
|
769
|
+
"aria-hidden": true,
|
|
770
|
+
style: {
|
|
771
|
+
...abs,
|
|
772
|
+
inset: 0,
|
|
773
|
+
transform: `scale(${HEAD_ZOOM})`
|
|
774
|
+
},
|
|
763
775
|
children: [
|
|
764
776
|
ears ? /*#__PURE__*/ _jsx("div", {
|
|
765
777
|
ref: earsRef,
|