alexsys-exam-renderer 0.1.35 → 0.1.37
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HandwrittenTextLine.d.ts","sourceRoot":"","sources":["../../../src/exam-session/interactions/HandwrittenTextLine.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAEV,0BAA0B,EAC3B,MAAM,qBAAqB,CAAA;AAU5B,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,IAAI,CAAA;IACrD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,0BAA0B,CAAA;CACnC,CAAA;
|
|
1
|
+
{"version":3,"file":"HandwrittenTextLine.d.ts","sourceRoot":"","sources":["../../../src/exam-session/interactions/HandwrittenTextLine.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAEV,0BAA0B,EAC3B,MAAM,qBAAqB,CAAA;AAU5B,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,MAAM,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,0BAA0B,KAAK,IAAI,CAAA;IACrD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;IACpB,KAAK,CAAC,EAAE,0BAA0B,CAAA;CACnC,CAAA;AAiBD,yFAAyF;AACzF,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,SAAS,EACT,YAAY,EACZ,WAA2B,EAC3B,SAAa,EACb,QAAQ,EACR,OAAO,EACP,KAAK,GACN,EAAE,wBAAwB,+BAgN1B"}
|
package/dist/index.js
CHANGED
|
@@ -1825,7 +1825,7 @@ function ri(e) {
|
|
|
1825
1825
|
}
|
|
1826
1826
|
//#endregion
|
|
1827
1827
|
//#region src/exam-session/interactions/HandwrittenTextLine.tsx
|
|
1828
|
-
var ii = 300, ai =
|
|
1828
|
+
var ii = 300, ai = 128, oi = .2, si = 1.5;
|
|
1829
1829
|
function ci({ ariaLabel: e, canvasHeight: n, canvasWidth: r = ii, lineCount: o = 1, onChange: l, onClear: u, value: d }) {
|
|
1830
1830
|
let [f, p] = a(!1), [m, h] = a("pen"), [g, _] = a(null), v = i(null), y = d?.strokes ?? [], b = Number.isFinite(o) ? Math.max(1, Math.min(Math.round(o), 8)) : 1, x = n ?? b * ai, S = i(null), [C, w] = a(r);
|
|
1831
1831
|
t(() => {
|
|
@@ -1931,14 +1931,14 @@ function ci({ ariaLabel: e, canvasHeight: n, canvasWidth: r = ii, lineCount: o =
|
|
|
1931
1931
|
x: 0,
|
|
1932
1932
|
y: 0
|
|
1933
1933
|
}), Array.from({ length: b }, (e, t) => {
|
|
1934
|
-
let n = Math.min(x -
|
|
1934
|
+
let n = x / b, i = Math.min(x - Math.max(18, n * .28), (t + 1) * n - Math.max(18, n * .28));
|
|
1935
1935
|
return /* @__PURE__ */ s(H, {
|
|
1936
1936
|
dash: [5, 7],
|
|
1937
1937
|
points: [
|
|
1938
1938
|
10,
|
|
1939
|
-
|
|
1939
|
+
i,
|
|
1940
1940
|
r - 10,
|
|
1941
|
-
|
|
1941
|
+
i
|
|
1942
1942
|
],
|
|
1943
1943
|
stroke: "#9db4c8",
|
|
1944
1944
|
strokeWidth: 1.5
|
|
@@ -2111,7 +2111,7 @@ function yi(e) {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
//#endregion
|
|
2113
2113
|
//#region src/exam-session/interactions/GeometryCanvas.tsx
|
|
2114
|
-
var bi = 1e3, xi =
|
|
2114
|
+
var bi = 1e3, xi = 600, Si = 30, Ci = 52, wi = 240, Ti = 12, Ei = hi[0].value, Z = "#0a8f55", Di = 38 / 2, Oi = 12, ki = 25, Ai = 34, ji = 160, Mi = 1200, Ni = 30, Pi = [
|
|
2115
2115
|
{
|
|
2116
2116
|
id: "pen",
|
|
2117
2117
|
icon: "✎",
|