narrat 2.4.0 → 2.4.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/dist/narrat.es.js +7 -6
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +25 -25
- package/dist/narrat.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/narrat.es.js
CHANGED
|
@@ -40029,7 +40029,7 @@ const fP = "gameSave", Nh = "###_--_~=:;_JUMP", x1 = "###_--_~=:;_RETURN", rZ =
|
|
|
40029
40029
|
function iZ(t) {
|
|
40030
40030
|
return t === Nh || t === x1 || t === rZ || t === Lh;
|
|
40031
40031
|
}
|
|
40032
|
-
const oZ = "2.4.
|
|
40032
|
+
const oZ = "2.4.1", aZ = new Date("2022-08-06T15:50:53.763Z");
|
|
40033
40033
|
function A5(t) {
|
|
40034
40034
|
if (typeof t == "object") {
|
|
40035
40035
|
const e = t;
|
|
@@ -42947,16 +42947,17 @@ const kte = ["id"], wte = ["id", "onClick"], xte = ["id", "onClick"], Gv = /* @_
|
|
|
42947
42947
|
M.opacity !== 1 && (x.opacity = M.opacity);
|
|
42948
42948
|
let S = M.x, j = M.y;
|
|
42949
42949
|
if (M.anchor) {
|
|
42950
|
-
const
|
|
42951
|
-
S = M.x - M.width *
|
|
42950
|
+
const A = M.anchor;
|
|
42951
|
+
S = M.x - M.width * A.x, j = M.y - M.height * A.y, x.transformOrigin = `${A.x * 100}% ${A.y * 100}%`;
|
|
42952
42952
|
}
|
|
42953
|
-
|
|
42953
|
+
let D = M.width, O = M.height;
|
|
42954
|
+
return M.scale && (D = D * M.scale, O = O * M.scale), {
|
|
42954
42955
|
...x,
|
|
42955
42956
|
left: `${S}px`,
|
|
42956
42957
|
top: `${j}px`,
|
|
42957
42958
|
backgroundImage: `url(${Hv(M.image)})`,
|
|
42958
|
-
width: `${
|
|
42959
|
-
height: `${
|
|
42959
|
+
width: `${D}px`,
|
|
42960
|
+
height: `${O}px`
|
|
42960
42961
|
};
|
|
42961
42962
|
}
|
|
42962
42963
|
return (M, x) => xn(d) ? (qe(), ut("div", {
|