From 9b028ec61d43f4d02c843e000324c847255a0c2d Mon Sep 17 00:00:00 2001 From: kimelijahsol Date: Wed, 22 Sep 2021 03:34:41 +0900 Subject: [PATCH] OK : align to center --- dist/number-counter.js | 97 +++++++++++++++++--------------------- dist/number-counter.js.map | 2 +- 2 files changed, 45 insertions(+), 54 deletions(-) diff --git a/dist/number-counter.js b/dist/number-counter.js index 47aa8df..d25072a 100644 --- a/dist/number-counter.js +++ b/dist/number-counter.js @@ -54,6 +54,10 @@ var SEQUENCES = [ ",", ".", ]; +var inherit = { + color: "inherit", + font: "inherit", +}; var NumberCounter = function (props) { var _a, _b, _c, _d; var value = props.value; @@ -74,34 +78,11 @@ var NumberCounter = function (props) { display: "inline-block", height: box_style.height, }; - var sequence_scroll_style = { - width: "100%", - transition: sequence_transition, - position: "absolute", - left: 0, - fontSize: "inherit", - }; - var sequence_style = { - width: "100%", - height: box_style.height, - textAlign: "center", - fontSize: "inherit", - }; - var mock_style = { - position: "fixed", - left: -9999, - top: -9999, - visibility: "hidden", - fontSize: "inherit", - }; + var sequence_scroll_style = __assign({ width: "100%", transition: sequence_transition, position: "absolute", left: 0 }, inherit); + var sequence_style = __assign({ width: "100%", height: box_style.height, textAlign: "center" }, inherit); + var mock_style = __assign({ position: "fixed", left: -9999, top: -9999, visibility: "hidden" }, inherit); var getSpliterStyle = function (e) { - return { - left: 0, - top: 0, - transform: "translateY(-" + (e === "," ? "100" : "200") + "%)", - position: "absolute", - fontSize: "inherit", - }; + return __assign({ left: 0, top: 0, transform: "translateY(-" + (e === "," ? "100" : "200") + "%)", position: "absolute" }, inherit); }; var getTop = function (e) { if (loaded && e === ",") { @@ -119,26 +100,33 @@ var NumberCounter = function (props) { } }; var getSequenceBoxStyle = function (item, index) { - var right = suffix_width + - sequence.reduce(function (acc, current, _index) { - return (acc + - (index < _index - ? [",", "."].includes(current) - ? box_style.width * 0.67 - : box_style.width - : 0)); - }, 0); + var right = sequence.reduce(function (acc, current, _index) { + return (acc + + (index < _index + ? [",", "."].includes(current) + ? box_style.width * 0.67 + : box_style.width + : 0)); + }, 0); var sequence_box_style_by_align = align === "left" ? { position: "relative", } - : { - position: "absolute", - top: 0, - transition: sequence_transition, - right: right, - }; - return __assign({ width: item === "." || item === "," ? box_style.width * 0.67 : box_style.width, height: box_style.height, position: "relative", overflow: "hidden", display: "inline-block", fontSize: "inherit" }, sequence_box_style_by_align); + : align === "right" + ? { + position: "absolute", + top: 0, + transition: sequence_transition, + right: right + suffix_width + 3, + } + : { + position: "absolute", + top: 0, + left: "calc(50% + " + ((getBoxWidht() - suffix_width) / 2 - right - 3) + "px)", + transform: "translateX(-100%)", + transition: sequence_transition, + }; + return __assign(__assign({ width: item === "." || item === "," ? box_style.width * 0.67 : box_style.width, height: box_style.height, position: "relative", overflow: "hidden", display: "inline-block" }, inherit), sequence_box_style_by_align); }; var getSequenceStyle = function (e) { return e === "," || e === "." @@ -151,7 +139,7 @@ var NumberCounter = function (props) { return loaded || index === 0 ? 1 : 0; }; var getWidth = function () { - return getBoxWidht() + suffix_width + 3; + return "100%"; }; var getBoxWidht = function () { var _sequence = loaded ? sequence : ["0"]; @@ -168,12 +156,17 @@ var NumberCounter = function (props) { ? { left: getBoxWidht() + 3, } - : { - right: 0, - }; - var suffix_style = __assign({ position: "absolute", top: 0, transition: setting_cnt.current >= 2 + : align === "right" + ? { + right: 0, + } + : { + left: "50%", + transform: "translateX(" + (loaded ? (getBoxWidht() - suffix_width) / 2 + "px" : "-50%") + ")", + }; + var suffix_style = __assign(__assign({ position: "absolute", top: 0, transition: setting_cnt.current >= 2 ? sequence_transition - : (((sequence.length - 1) / sequence.length) * transition) / 700 + "s", fontSize: "inherit" }, suffix_position_style_by_align); + : (((sequence.length - 1) / sequence.length) * transition) / 700 + "s" }, inherit), suffix_position_style_by_align); react_1.default.useEffect(function () { if (!loaded && mock_ref.current) { setTimeout(function () { @@ -185,7 +178,6 @@ var NumberCounter = function (props) { } }, [loaded, mock_ref]); react_1.default.useEffect(function () { - var _a; var prev_sequence = __spreadArray([], sequence, true); var next_sequence = value .toString() @@ -197,13 +189,12 @@ var NumberCounter = function (props) { } else { var temp_sequence = next_sequence.map(function (_, index) { - var _a; - return (_a = prev_sequence[index]) !== null && _a !== void 0 ? _a : 0; + return prev_sequence[index] ? _ : "0"; }); setSequence(temp_sequence); setTimeout(function () { setSequence(next_sequence); - }, ((_a = props.transition) !== null && _a !== void 0 ? _a : 150) / 2000); + }, transition / 2); } setting_cnt.current += 1; }, [props.value]); diff --git a/dist/number-counter.js.map b/dist/number-counter.js.map index 778b49b..07d83bf 100644 --- a/dist/number-counter.js.map +++ b/dist/number-counter.js.map @@ -1 +1 @@ -{"version":3,"file":"number-counter.js","sourceRoot":"","sources":["../src/lib/number-counter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAsD;AA2BtD,IAAM,SAAS,GAAwB;IACrC,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;CACJ,CAAC;AAEF,IAAM,aAAa,GAAG,UAAC,KAAY;;IAEjC,IAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAE1B,IAAM,KAAK,GAAG,MAAA,KAAK,CAAC,KAAK,mCAAI,MAAM,CAAC;IAGpC,IAAM,QAAQ,GAAG,eAAK,CAAC,MAAM,CAAwB,IAAI,CAAC,CAAC;IAG3D,IAAM,UAAU,GAAG,eAAK,CAAC,MAAM,CAAwB,IAAI,CAAC,CAAC;IAI7D,IAAM,WAAW,GAAG,eAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAG9B,IAAA,KAA0B,eAAK,CAAC,QAAQ,CAAsB,CAAC,GAAG,CAAC,CAAC,EAAnE,QAAQ,QAAA,EAAE,WAAW,QAA8C,CAAC;IAGrE,IAAA,KAA2B,eAAK,CAAC,QAAQ,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,CACL,8BAAC,eAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,KAAK;gBACxB,uCAAK,KAAK,EAAE,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC;oBAC1C,uCACE,KAAK,wBACA,qBAAqB,KACxB,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,EACjB,eAAe,EACb,WAAW,CAAC,OAAO,IAAI,CAAC;gCACtB,CAAC,CAAC,OAAO;gCACT,CAAC,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAC9B,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,OAG3B,SAAS,CAAC,GAAG,CAAC,UAAC,IAAI;wBAClB,OAAO,CACL,8BAAC,eAAK,CAAC,QAAQ,IAAC,GAAG,EAAE,IAAI;4BACvB,uCAAK,KAAK,EAAE,gBAAgB,CAAC,IAAI,CAAC,IAAG,IAAI,CAAO,CACjC,CAClB,CAAC;oBACJ,CAAC,CAAC,CACE,CACF,CACS,CAClB,CAAC;QACJ,CAAC,CAAC;QAEF,uCAAK,KAAK,EAAE,YAAY,EAAE,GAAG,EAAE,UAAU,IACtC,KAAK,CAAC,MAAM,CACT;QAEN,uCAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,QAE/B,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"} \ No newline at end of file +{"version":3,"file":"number-counter.js","sourceRoot":"","sources":["../src/lib/number-counter.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAsD;AA2BtD,IAAM,SAAS,GAAwB;IACrC,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;CACJ,CAAC;AAEF,IAAM,OAAO,GAAwB;IACnC,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;CAChB,CAAC;A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