umt 1.1.4 → 1.1.7
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 +20 -3
- package/module/Array/ArrayWrapper.d.ts +7 -0
- package/module/Array/ArrayWrapper.js +21 -0
- package/module/Array/ArrayWrapper.js.map +1 -0
- package/module/Array/arrayMap.d.ts +1 -0
- package/module/Array/arrayMap.js +8 -0
- package/module/Array/arrayMap.js.map +1 -0
- package/module/Array/arraysJoin.d.ts +3 -3
- package/module/Array/arraysJoin.js +4 -7
- package/module/Array/arraysJoin.js.map +1 -0
- package/module/Array/chunk.d.ts +2 -0
- package/module/Array/chunk.js +8 -0
- package/module/Array/chunk.js.map +1 -0
- package/module/Array/getArraysCommon.d.ts +1 -1
- package/module/Array/getArraysCommon.js +6 -6
- package/module/Array/getArraysCommon.js.map +1 -0
- package/module/Array/getArraysDiff.d.ts +1 -1
- package/module/Array/getArraysDiff.js +15 -9
- package/module/Array/getArraysDiff.js.map +1 -0
- package/module/Array/index.d.ts +4 -15
- package/module/Array/index.js +10 -39
- package/module/Array/index.js.map +1 -0
- package/module/Array/quickSort.d.ts +1 -1
- package/module/Array/quickSort.js +8 -10
- package/module/Array/quickSort.js.map +1 -0
- package/module/Array/range.d.ts +3 -0
- package/module/Array/range.js +15 -0
- package/module/Array/range.js.map +1 -0
- package/module/Array/sum.js +4 -7
- package/module/Array/sum.js.map +1 -0
- package/module/Date/getDay.d.ts +6 -0
- package/module/Date/getDay.js +28 -0
- package/module/Date/getDay.js.map +1 -0
- package/module/Date/index.d.ts +1 -12
- package/module/Date/index.js +4 -28
- package/module/Date/index.js.map +1 -0
- package/module/Date/new.d.ts +1 -1
- package/module/Date/new.js +3 -7
- package/module/Date/new.js.map +1 -0
- package/module/Date/now.d.ts +3 -2
- package/module/Date/now.js +3 -6
- package/module/Date/now.js.map +1 -0
- package/module/Math/addition.js +7 -10
- package/module/Math/addition.js.map +1 -0
- package/module/Math/average.js +9 -9
- package/module/Math/average.js.map +1 -0
- package/module/Math/calculator/calculator.d.ts +10 -0
- package/module/Math/calculator/calculator.js +20 -0
- package/module/Math/calculator/calculator.js.map +1 -0
- package/module/Math/calculator/calculatorInitialization.d.ts +3 -1
- package/module/Math/calculator/calculatorInitialization.js +4 -7
- package/module/Math/calculator/calculatorInitialization.js.map +1 -0
- package/module/Math/calculator/convertCurrency.d.ts +10 -0
- package/module/Math/calculator/convertCurrency.js +29 -0
- package/module/Math/calculator/convertCurrency.js.map +1 -0
- package/module/Math/calculator/core.d.ts +3 -7
- package/module/Math/calculator/core.js +94 -80
- package/module/Math/calculator/core.js.map +1 -0
- package/module/Math/calculator/exchange.js +2 -1
- package/module/Math/calculator/exchange.js.map +1 -0
- package/module/Math/calculator/index.d.ts +6 -8
- package/module/Math/calculator/index.js +7 -23
- package/module/Math/calculator/index.js.map +1 -0
- package/module/Math/calculator/literalExpression.js +11 -14
- package/module/Math/calculator/literalExpression.js.map +1 -0
- package/module/Math/degToRad.js +2 -5
- package/module/Math/degToRad.js.map +1 -0
- package/module/Math/deviationValue.d.ts +4 -4
- package/module/Math/deviationValue.js +6 -11
- package/module/Math/deviationValue.js.map +1 -0
- package/module/Math/division.js +6 -8
- package/module/Math/division.js.map +1 -0
- package/module/Math/factorial.js +2 -5
- package/module/Math/factorial.js.map +1 -0
- package/module/Math/factorize.js +2 -5
- package/module/Math/factorize.js.map +1 -0
- package/module/Math/gcd.js +5 -8
- package/module/Math/gcd.js.map +1 -0
- package/module/Math/getDecimalLength.js +2 -5
- package/module/Math/getDecimalLength.js.map +1 -0
- package/module/Math/index.d.ts +2 -95
- package/module/Math/index.js +41 -237
- package/module/Math/index.js.map +1 -0
- package/module/Math/isDouble.d.ts +4 -2
- package/module/Math/isDouble.js +9 -10
- package/module/Math/isDouble.js.map +1 -0
- package/module/Math/isNumber.d.ts +4 -3
- package/module/Math/isNumber.js +10 -12
- package/module/Math/isNumber.js.map +1 -0
- package/module/Math/isPrimeNumber.js +5 -34
- package/module/Math/isPrimeNumber.js.map +1 -0
- package/module/Math/isValueNaN.d.ts +1 -0
- package/module/Math/isValueNaN.js +5 -0
- package/module/Math/isValueNaN.js.map +1 -0
- package/module/Math/lcm.js +6 -9
- package/module/Math/lcm.js.map +1 -0
- package/module/Math/mathConverter.js +5 -8
- package/module/Math/mathConverter.js.map +1 -0
- package/module/Math/mathSeparator.js +4 -7
- package/module/Math/mathSeparator.js.map +1 -0
- package/module/Math/max.js +2 -5
- package/module/Math/max.js.map +1 -0
- package/module/Math/min.js +2 -5
- package/module/Math/min.js.map +1 -0
- package/module/Math/multiples.js +2 -5
- package/module/Math/multiples.js.map +1 -0
- package/module/Math/multiplication.js +4 -7
- package/module/Math/multiplication.js.map +1 -0
- package/module/Math/nCr.js +4 -7
- package/module/Math/nCr.js.map +1 -0
- package/module/Math/nHr.js +4 -7
- package/module/Math/nHr.js.map +1 -0
- package/module/Math/nPr.js +2 -5
- package/module/Math/nPr.js.map +1 -0
- package/module/Math/primeFactorization.js +2 -5
- package/module/Math/primeFactorization.js.map +1 -0
- package/module/Math/quotient.js +2 -5
- package/module/Math/quotient.js.map +1 -0
- package/module/Math/radToDeg.js +2 -5
- package/module/Math/radToDeg.js.map +1 -0
- package/module/Math/random.js +2 -5
- package/module/Math/random.js.map +1 -0
- package/module/Math/reduce.js +5 -8
- package/module/Math/reduce.js.map +1 -0
- package/module/Math/repeatedTrial.js +8 -11
- package/module/Math/repeatedTrial.js.map +1 -0
- package/module/Math/roundOf.js +2 -5
- package/module/Math/roundOf.js.map +1 -0
- package/module/Math/solveEquation.js +13 -16
- package/module/Math/solveEquation.js.map +1 -0
- package/module/Math/standardDeviation.js +5 -8
- package/module/Math/standardDeviation.js.map +1 -0
- package/module/Math/subtract.js +7 -10
- package/module/Math/subtract.js.map +1 -0
- package/module/Math/toBinary.d.ts +1 -5
- package/module/Math/toBinary.js +3 -8
- package/module/Math/toBinary.js.map +1 -0
- package/module/Math/toCelsius.js +3 -6
- package/module/Math/toCelsius.js.map +1 -0
- package/module/Math/toKelvin.js +3 -6
- package/module/Math/toKelvin.js.map +1 -0
- package/module/Math/valueSwap.js +2 -5
- package/module/Math/valueSwap.js.map +1 -0
- package/module/Simple/Date/index.d.ts +2 -5
- package/module/Simple/Date/index.js +3 -13
- package/module/Simple/Date/index.js.map +1 -0
- package/module/Simple/Date/now.d.ts +2 -1
- package/module/Simple/Date/now.js +8 -11
- package/module/Simple/Date/now.js.map +1 -0
- package/module/Simple/Tool/birthday.d.ts +2 -1
- package/module/Simple/Tool/birthday.js +8 -10
- package/module/Simple/Tool/birthday.js.map +1 -0
- package/module/Simple/Tool/dayOfWeekSimple.d.ts +9 -6
- package/module/Simple/Tool/dayOfWeekSimple.js +14 -16
- package/module/Simple/Tool/dayOfWeekSimple.js.map +1 -0
- package/module/Simple/Tool/deviationValueSimple.js +8 -10
- package/module/Simple/Tool/deviationValueSimple.js.map +1 -0
- package/module/Simple/Tool/index.d.ts +4 -13
- package/module/Simple/Tool/index.js +5 -23
- package/module/Simple/Tool/index.js.map +1 -0
- package/module/Simple/index.d.ts +5 -10
- package/module/Simple/index.js +6 -19
- package/module/Simple/index.js.map +1 -0
- package/module/String/index.d.ts +0 -6
- package/module/String/index.js +3 -15
- package/module/String/index.js.map +1 -0
- package/module/String/reverseString.js +2 -5
- package/module/String/reverseString.js.map +1 -0
- package/module/Tool/birthday.d.ts +2 -1
- package/module/Tool/birthday.js +8 -10
- package/module/Tool/birthday.js.map +1 -0
- package/module/Tool/createPipeline.d.ts +15 -0
- package/module/Tool/createPipeline.js +12 -0
- package/module/Tool/createPipeline.js.map +1 -0
- package/module/Tool/dayOfWeek.d.ts +2 -1
- package/module/Tool/dayOfWeek.js +6 -9
- package/module/Tool/dayOfWeek.js.map +1 -0
- package/module/Tool/deleteSpace.d.ts +1 -0
- package/module/Tool/deleteSpace.js +4 -0
- package/module/Tool/deleteSpace.js.map +1 -0
- package/module/Tool/hexToRgba.d.ts +6 -0
- package/module/Tool/hexToRgba.js +14 -0
- package/module/Tool/hexToRgba.js.map +1 -0
- package/module/Tool/index.d.ts +9 -22
- package/module/Tool/index.js +12 -42
- package/module/Tool/index.js.map +1 -0
- package/module/Tool/isArr.d.ts +1 -0
- package/module/Tool/isArr.js +4 -0
- package/module/Tool/isArr.js.map +1 -0
- package/module/Tool/isBrowser.js +2 -4
- package/module/Tool/isBrowser.js.map +1 -0
- package/module/Tool/isNode.js +2 -4
- package/module/Tool/isNode.js.map +1 -0
- package/module/Tool/isNodeWebkit.js +4 -6
- package/module/Tool/isNodeWebkit.js.map +1 -0
- package/module/Tool/isNotEmpty.d.ts +6 -0
- package/module/Tool/isNotEmpty.js +10 -0
- package/module/Tool/isNotEmpty.js.map +1 -0
- package/module/Tool/isObj.d.ts +3 -0
- package/module/Tool/isObj.js +4 -0
- package/module/Tool/isObj.js.map +1 -0
- package/module/Tool/pipeFunction.js +1 -0
- package/module/Tool/pipeFunction.js.map +1 -0
- package/module/Tool/rgbaToHexA.d.ts +6 -0
- package/module/Tool/rgbaToHexA.js +19 -0
- package/module/Tool/rgbaToHexA.js.map +1 -0
- package/module/index.d.ts +6 -18
- package/module/index.js +7 -44
- package/module/index.js.map +1 -0
- package/module/tests/Array/arrayMap.test.d.ts +1 -0
- package/module/tests/Array/arrayMap.test.js +8 -0
- package/module/tests/Array/arrayMap.test.js.map +1 -0
- package/module/tests/Array/arraysJoin.test.d.ts +1 -0
- package/module/tests/Array/arraysJoin.test.js +8 -0
- package/module/tests/Array/arraysJoin.test.js.map +1 -0
- package/module/tests/Array/chunk.test.d.ts +1 -0
- package/module/tests/Array/chunk.test.js +41 -0
- package/module/tests/Array/chunk.test.js.map +1 -0
- package/module/tests/Array/getArraysCommon.test.d.ts +1 -0
- package/module/tests/Array/getArraysCommon.test.js +9 -0
- package/module/tests/Array/getArraysCommon.test.js.map +1 -0
- package/module/tests/Array/getArraysDiff.test.d.ts +1 -0
- package/module/tests/Array/getArraysDiff.test.js +28 -0
- package/module/tests/Array/getArraysDiff.test.js.map +1 -0
- package/module/tests/Array/quickSort.test.d.ts +1 -0
- package/module/tests/Array/quickSort.test.js +19 -0
- package/module/tests/Array/quickSort.test.js.map +1 -0
- package/module/tests/Array/sum.test.d.ts +1 -0
- package/module/tests/Array/sum.test.js +5 -0
- package/module/tests/Array/sum.test.js.map +1 -0
- package/module/tests/Math/addition.test.d.ts +1 -0
- package/module/tests/Math/addition.test.js +34 -0
- package/module/tests/Math/addition.test.js.map +1 -0
- package/module/tests/Math/average.test.d.ts +1 -0
- package/module/tests/Math/average.test.js +25 -0
- package/module/tests/Math/average.test.js.map +1 -0
- package/module/tests/Math/calculator/calculator.test.d.ts +1 -0
- package/module/tests/Math/calculator/calculator.test.js +16 -0
- package/module/tests/Math/calculator/calculator.test.js.map +1 -0
- package/module/tests/Math/calculator/calculatorInitialization.test.d.ts +1 -0
- package/module/tests/Math/calculator/calculatorInitialization.test.js +7 -0
- package/module/tests/Math/calculator/calculatorInitialization.test.js.map +1 -0
- package/module/tests/Math/calculator/convertCurrency.test.d.ts +1 -0
- package/module/tests/Math/calculator/convertCurrency.test.js +19 -0
- package/module/tests/Math/calculator/convertCurrency.test.js.map +1 -0
- package/module/tests/Math/calculator/exchange.test.d.ts +1 -0
- package/module/tests/Math/calculator/exchange.test.js +9 -0
- package/module/tests/Math/calculator/exchange.test.js.map +1 -0
- package/module/tests/Math/calculator/literalExpression.test.d.ts +1 -0
- package/module/tests/Math/calculator/literalExpression.test.js +10 -0
- package/module/tests/Math/calculator/literalExpression.test.js.map +1 -0
- package/module/tests/Math/degToRad.test.d.ts +1 -0
- package/module/tests/Math/degToRad.test.js +23 -0
- package/module/tests/Math/degToRad.test.js.map +1 -0
- package/module/tests/Math/deviationValue.test.d.ts +1 -0
- package/module/tests/Math/deviationValue.test.js +25 -0
- package/module/tests/Math/deviationValue.test.js.map +1 -0
- package/module/tests/Math/division.test.d.ts +1 -0
- package/module/tests/Math/division.test.js +6 -0
- package/module/tests/Math/division.test.js.map +1 -0
- package/module/tests/Math/factorial.test.d.ts +1 -0
- package/module/tests/Math/factorial.test.js +10 -0
- package/module/tests/Math/factorial.test.js.map +1 -0
- package/module/tests/Math/factorize.test.d.ts +1 -0
- package/module/tests/Math/factorize.test.js +12 -0
- package/module/tests/Math/factorize.test.js.map +1 -0
- package/module/tests/Math/gcd.test.d.ts +1 -0
- package/module/tests/Math/gcd.test.js +19 -0
- package/module/tests/Math/gcd.test.js.map +1 -0
- package/module/tests/Math/getDecimalLength.test.d.ts +1 -0
- package/module/tests/Math/getDecimalLength.test.js +7 -0
- package/module/tests/Math/getDecimalLength.test.js.map +1 -0
- package/module/tests/Math/isDouble.test.d.ts +1 -0
- package/module/tests/Math/isDouble.test.js +29 -0
- package/module/tests/Math/isDouble.test.js.map +1 -0
- package/module/tests/Math/isNumber.test.d.ts +1 -0
- package/module/tests/Math/isNumber.test.js +28 -0
- package/module/tests/Math/isNumber.test.js.map +1 -0
- package/module/tests/Math/isPrimeNumber.test.d.ts +1 -0
- package/module/tests/Math/isPrimeNumber.test.js +32 -0
- package/module/tests/Math/isPrimeNumber.test.js.map +1 -0
- package/module/tests/Math/isValueNaN.test.d.ts +1 -0
- package/module/tests/Math/isValueNaN.test.js +14 -0
- package/module/tests/Math/isValueNaN.test.js.map +1 -0
- package/module/tests/Math/lcm.test.d.ts +1 -0
- package/module/tests/Math/lcm.test.js +9 -0
- package/module/tests/Math/lcm.test.js.map +1 -0
- package/module/tests/Math/mathConverter.test.d.ts +1 -0
- package/module/tests/Math/mathConverter.test.js +7 -0
- package/module/tests/Math/mathConverter.test.js.map +1 -0
- package/module/tests/Math/mathSeparator.test.d.ts +1 -0
- package/module/tests/Math/mathSeparator.test.js +10 -0
- package/module/tests/Math/mathSeparator.test.js.map +1 -0
- package/module/tests/Math/max.test.d.ts +1 -0
- package/module/tests/Math/max.test.js +6 -0
- package/module/tests/Math/max.test.js.map +1 -0
- package/module/tests/Math/min.test.d.ts +1 -0
- package/module/tests/Math/min.test.js +6 -0
- package/module/tests/Math/min.test.js.map +1 -0
- package/module/tests/Math/multiples.test.d.ts +1 -0
- package/module/tests/Math/multiples.test.js +13 -0
- package/module/tests/Math/multiples.test.js.map +1 -0
- package/module/tests/Math/multiplication.test.d.ts +1 -0
- package/module/tests/Math/multiplication.test.js +7 -0
- package/module/tests/Math/multiplication.test.js.map +1 -0
- package/module/tests/Math/nCr.test.d.ts +1 -0
- package/module/tests/Math/nCr.test.js +8 -0
- package/module/tests/Math/nCr.test.js.map +1 -0
- package/module/tests/Math/nHr.test.d.ts +1 -0
- package/module/tests/Math/nHr.test.js +7 -0
- package/module/tests/Math/nHr.test.js.map +1 -0
- package/module/tests/Math/nPr.test.d.ts +1 -0
- package/module/tests/Math/nPr.test.js +12 -0
- package/module/tests/Math/nPr.test.js.map +1 -0
- package/module/tests/Math/primeFactorization.test.d.ts +1 -0
- package/module/tests/Math/primeFactorization.test.js +13 -0
- package/module/tests/Math/primeFactorization.test.js.map +1 -0
- package/module/tests/Math/quotient.test.d.ts +1 -0
- package/module/tests/Math/quotient.test.js +13 -0
- package/module/tests/Math/quotient.test.js.map +1 -0
- package/module/tests/Math/radToDeg.test.d.ts +1 -0
- package/module/tests/Math/radToDeg.test.js +7 -0
- package/module/tests/Math/radToDeg.test.js.map +1 -0
- package/module/tests/Math/reduce.test.d.ts +1 -0
- package/module/tests/Math/reduce.test.js +13 -0
- package/module/tests/Math/reduce.test.js.map +1 -0
- package/module/tests/Math/repeatedTrial.test.d.ts +1 -0
- package/module/tests/Math/repeatedTrial.test.js +5 -0
- package/module/tests/Math/repeatedTrial.test.js.map +1 -0
- package/module/tests/Math/roundOf.test.d.ts +1 -0
- package/module/tests/Math/roundOf.test.js +12 -0
- package/module/tests/Math/roundOf.test.js.map +1 -0
- package/module/tests/Math/solveEquation.test.d.ts +1 -0
- package/module/tests/Math/solveEquation.test.js +33 -0
- package/module/tests/Math/solveEquation.test.js.map +1 -0
- package/module/tests/Math/standardDeviation.test.d.ts +1 -0
- package/module/tests/Math/standardDeviation.test.js +5 -0
- package/module/tests/Math/standardDeviation.test.js.map +1 -0
- package/module/tests/Math/subtract.test.d.ts +1 -0
- package/module/tests/Math/subtract.test.js +7 -0
- package/module/tests/Math/subtract.test.js.map +1 -0
- package/module/tests/Math/toBinary.test.d.ts +1 -0
- package/module/tests/Math/toBinary.test.js +22 -0
- package/module/tests/Math/toBinary.test.js.map +1 -0
- package/module/tests/Math/toCelsius.test.d.ts +1 -0
- package/module/tests/Math/toCelsius.test.js +5 -0
- package/module/tests/Math/toCelsius.test.js.map +1 -0
- package/module/tests/Math/toKelvin.test.d.ts +1 -0
- package/module/tests/Math/toKelvin.test.js +5 -0
- package/module/tests/Math/toKelvin.test.js.map +1 -0
- package/module/tests/Math/valueSwap.test.d.ts +1 -0
- package/module/tests/Math/valueSwap.test.js +9 -0
- package/module/tests/Math/valueSwap.test.js.map +1 -0
- package/module/tests/Simple/Tool/dayOfWeekSimple.test.d.ts +1 -0
- package/module/tests/Simple/Tool/dayOfWeekSimple.test.js +53 -0
- package/module/tests/Simple/Tool/dayOfWeekSimple.test.js.map +1 -0
- package/module/tests/Simple/Tool/deviationValueSimple.test.d.ts +1 -0
- package/module/tests/Simple/Tool/deviationValueSimple.test.js +6 -0
- package/module/tests/Simple/Tool/deviationValueSimple.test.js.map +1 -0
- package/module/tests/Tool/createPipeline.test.d.ts +1 -0
- package/module/tests/Tool/createPipeline.test.js +6 -0
- package/module/tests/Tool/createPipeline.test.js.map +1 -0
- package/module/tests/Tool/dayOfWeek.test.d.ts +1 -0
- package/module/tests/Tool/dayOfWeek.test.js +25 -0
- package/module/tests/Tool/dayOfWeek.test.js.map +1 -0
- package/module/tests/Tool/hexToRgba.test.d.ts +1 -0
- package/module/tests/Tool/hexToRgba.test.js +19 -0
- package/module/tests/Tool/hexToRgba.test.js.map +1 -0
- package/module/tests/Tool/isArr.test.d.ts +1 -0
- package/module/tests/Tool/isArr.test.js +18 -0
- package/module/tests/Tool/isArr.test.js.map +1 -0
- package/module/tests/Tool/pipeFunction.test.d.ts +1 -0
- package/module/tests/Tool/pipeFunction.test.js +8 -0
- package/module/tests/Tool/pipeFunction.test.js.map +1 -0
- package/module/tests/Tool/rgbaToHexA.test.d.ts +1 -0
- package/module/tests/Tool/rgbaToHexA.test.js +23 -0
- package/module/tests/Tool/rgbaToHexA.test.js.map +1 -0
- package/module/tsconfig.tsbuildinfo +1 -1
- package/module/types/arrayType.d.ts +4 -0
- package/module/types/arrayType.js +2 -0
- package/module/types/arrayType.js.map +1 -0
- package/module/types/clockType.d.ts +11 -7
- package/module/types/clockType.js +2 -2
- package/module/types/clockType.js.map +1 -0
- package/module/types/dateType.d.ts +8 -6
- package/module/types/dateType.js +2 -2
- package/module/types/dateType.js.map +1 -0
- package/module/types/int.d.ts +103 -2
- package/module/types/int.js +2 -2
- package/module/types/int.js.map +1 -0
- package/module/types/jokeType.d.ts +2 -0
- package/module/types/jokeType.js +2 -0
- package/module/types/jokeType.js.map +1 -0
- package/module/types/logicType.d.ts +83 -1
- package/module/types/logicType.js +2 -2
- package/module/types/logicType.js.map +1 -0
- package/module/types/mathType.d.ts +10 -0
- package/module/types/mathType.js +2 -0
- package/module/types/mathType.js.map +1 -0
- package/package.json +17 -15
- package/module/Date/DateWrapper.d.ts +0 -60
- package/module/Date/DateWrapper.js +0 -172
- package/module/Object/index.d.ts +0 -12
- package/module/Object/index.js +0 -15
- package/module/Object/objectUnion.d.ts +0 -5
- package/module/Object/objectUnion.js +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toCelsius.js","sourceRoot":"","sources":["../../src/Math/toCelsius.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC;;;;GAIG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
|
package/module/Math/toKelvin.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const addition_1 = require("./addition");
|
|
5
|
-
const toKelvin = (celsius) => (0, addition_1.addition)(celsius, 273.15);
|
|
6
|
-
exports.toKelvin = toKelvin;
|
|
1
|
+
import { addition } from "./addition";
|
|
2
|
+
export const toKelvin = (celsius) => addition(celsius, 273.15);
|
|
3
|
+
//# sourceMappingURL=toKelvin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toKelvin.js","sourceRoot":"","sources":["../../src/Math/toKelvin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,OAAe,EAAU,EAAE,CAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC"}
|
package/module/Math/valueSwap.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.valueSwap = void 0;
|
|
4
1
|
/**
|
|
5
2
|
* x < yになるように入れ替える
|
|
6
3
|
* @param {number} x
|
|
7
4
|
* @param {number} y
|
|
8
5
|
* @return {[number, number]}
|
|
9
6
|
*/
|
|
10
|
-
const valueSwap = (x, y) => {
|
|
7
|
+
export const valueSwap = (x, y) => {
|
|
11
8
|
let tmp;
|
|
12
9
|
let copyX = x;
|
|
13
10
|
let copyY = y;
|
|
@@ -18,4 +15,4 @@ const valueSwap = (x, y) => {
|
|
|
18
15
|
}
|
|
19
16
|
return [copyX, copyY];
|
|
20
17
|
};
|
|
21
|
-
|
|
18
|
+
//# sourceMappingURL=valueSwap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"valueSwap.js","sourceRoot":"","sources":["../../src/Math/valueSwap.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAS,EAAE,CAAS,EAAoB,EAAE;IAClE,IAAI,GAAW,CAAC;IAChB,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,KAAK,GAAG,KAAK,EAAE;QACjB,GAAG,GAAG,KAAK,CAAC;QACZ,KAAK,GAAG,KAAK,CAAC;QACd,KAAK,GAAG,GAAG,CAAC;KACb;IACD,OAAO,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AACxB,CAAC,CAAC"}
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const now_1 = require("./now");
|
|
5
|
-
class UMTSimpleDateClass {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.localNow = now_1.nowSimple;
|
|
8
|
-
}
|
|
9
|
-
get now() {
|
|
10
|
-
return this.localNow;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
exports.UMTSimpleDateClass = UMTSimpleDateClass;
|
|
1
|
+
import { nowSimple } from "./now";
|
|
2
|
+
export { nowSimple };
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Simple/Date/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { hoursType, hoursTypeInt } from "../../types/clockType";
|
|
2
|
+
export declare const nowSimple: (timeDifference?: hoursTypeInt | hoursType) => Date;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const now_1 = require("../../Date/now");
|
|
5
|
-
const isNumber_1 = require("../../Math/isNumber");
|
|
6
|
-
const nowSimple = (timeDifference = 9) => {
|
|
1
|
+
import { now } from "../../Date/now";
|
|
2
|
+
import { isNumber } from "../../Math/isNumber";
|
|
3
|
+
export const nowSimple = (timeDifference = 9) => {
|
|
7
4
|
if (typeof timeDifference === "number") {
|
|
8
|
-
return
|
|
5
|
+
return now(timeDifference);
|
|
9
6
|
}
|
|
10
|
-
else if (
|
|
11
|
-
return
|
|
7
|
+
else if (isNumber(timeDifference)) {
|
|
8
|
+
return now(Number(timeDifference));
|
|
12
9
|
}
|
|
13
10
|
else {
|
|
14
|
-
return
|
|
11
|
+
return now();
|
|
15
12
|
}
|
|
16
13
|
};
|
|
17
|
-
|
|
14
|
+
//# sourceMappingURL=now.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"now.js","sourceRoot":"","sources":["../../../src/Simple/Date/now.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAG3C,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,iBAA2C,CAAC,EAAE,EAAE;IACxE,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;QACtC,OAAO,GAAG,CAAC,cAAc,CAAC,CAAC;KAC5B;SAAM,IAAI,QAAQ,CAAC,cAAc,CAAC,EAAE;QACnC,OAAO,GAAG,CAAC,MAAM,CAAC,cAAc,CAAiB,CAAC,CAAC;KACpD;SAAM;QACL,OAAO,GAAG,EAAE,CAAC;KACd;AACH,CAAC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { dayType, monType } from "../../types/dateType";
|
|
2
|
+
import { hoursTypeInt } from "../../types/clockType";
|
|
2
3
|
export interface BIRTHDAYSIMPLE {
|
|
3
4
|
<T extends monType>(birthdays: Date | `${number}-${T}-${dayType<T>}` | `${number}:${T}:${dayType<T>}` | `${number}/${T}/${dayType<T>}` | {
|
|
4
5
|
year: number;
|
|
5
6
|
mon: number;
|
|
6
7
|
day: number;
|
|
7
|
-
}, timeDifference
|
|
8
|
+
}, timeDifference: hoursTypeInt): number;
|
|
8
9
|
}
|
|
9
10
|
export declare const birthdaySimple: BIRTHDAYSIMPLE;
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.birthdaySimple = void 0;
|
|
4
|
-
const birthday_1 = require("../../Tool/birthday");
|
|
5
|
-
exports.birthdaySimple = ((birthdays, timeDifference = 9) => {
|
|
1
|
+
import { birthday } from "../../Tool/birthday";
|
|
2
|
+
export const birthdaySimple = ((birthdays, timeDifference = 9) => {
|
|
6
3
|
if (typeof birthdays === "string") {
|
|
7
4
|
if (birthdays.includes(":")) {
|
|
8
5
|
const [year, mon, day] = birthdays.split(":").map(Number);
|
|
9
|
-
return
|
|
6
|
+
return birthday(year, mon, day, timeDifference);
|
|
10
7
|
}
|
|
11
8
|
else if (birthdays.includes("/")) {
|
|
12
9
|
const [year, mon, day] = birthdays.split("/").map(Number);
|
|
13
|
-
return
|
|
10
|
+
return birthday(year, mon, day, timeDifference);
|
|
14
11
|
}
|
|
15
12
|
else {
|
|
16
13
|
const [year, mon, day] = birthdays.split("-").map(Number);
|
|
17
|
-
return
|
|
14
|
+
return birthday(year, mon, day, timeDifference);
|
|
18
15
|
}
|
|
19
16
|
}
|
|
20
17
|
else if (birthdays instanceof Date) {
|
|
21
|
-
return
|
|
18
|
+
return birthday(birthdays.getFullYear(), birthdays.getMonth(), birthdays.getDate(), timeDifference);
|
|
22
19
|
}
|
|
23
20
|
else {
|
|
24
|
-
return
|
|
21
|
+
return birthday(birthdays.year, birthdays.mon, birthdays.day, timeDifference);
|
|
25
22
|
}
|
|
26
23
|
});
|
|
24
|
+
//# sourceMappingURL=birthday.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birthday.js","sourceRoot":"","sources":["../../../src/Simple/Tool/birthday.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAa3C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAC7B,SAK8C,EAC9C,iBAA+B,CAAC,EAChC,EAAE;IACF,IAAI,OAAO,SAAS,KAAK,QAAQ,EAAE;QACjC,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC3B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAIvD,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;SACjD;aAAM,IAAI,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAClC,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAIvD,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;SACjD;aAAM;YACL,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAIvD,CAAC;YACF,OAAO,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,cAAc,CAAC,CAAC;SACjD;KACF;SAAM,IAAI,SAAS,YAAY,IAAI,EAAE;QACpC,OAAO,QAAQ,CACb,SAAS,CAAC,WAAW,EAAE,EACvB,SAAS,CAAC,QAAQ,EAAgB,EAClC,SAAS,CAAC,OAAO,EAA4B,EAC7C,cAAc,CACf,CAAC;KACH;SAAM;QACL,OAAO,QAAQ,CACb,SAAS,CAAC,IAAI,EACd,SAAS,CAAC,GAAiB,EAC3B,SAAS,CAAC,GAA6B,EACvC,cAAc,CACf,CAAC;KACH;AACH,CAAC,CAAmB,CAAC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { hoursTypeInt } from "../../types/clockType";
|
|
2
|
+
import { MonthsWith31Days, MonthsWith31DaysInt, MonthsWithout31Days, MonthsWithout31DaysInt, convertMonTypeZero, dayType, dayTypeInt } from "../../types/dateType";
|
|
3
|
+
declare function dayOfWeekSimple<T extends MonthsWith31DaysInt | MonthsWithout31DaysInt>(props?: {
|
|
4
|
+
year?: number;
|
|
5
|
+
mon?: T;
|
|
6
|
+
day?: dayTypeInt<T>;
|
|
7
|
+
}, timeDifference?: hoursTypeInt): number;
|
|
8
|
+
declare function dayOfWeekSimple<T extends MonthsWith31Days | MonthsWithout31Days>(props?: `${number}-${convertMonTypeZero<T>}-${dayType<T>}` | `${number}:${convertMonTypeZero<T>}:${dayType<T>}` | `${number}/${convertMonTypeZero<T>}/${dayType<T>}` | Date, timeDifference?: hoursTypeInt): number;
|
|
9
|
+
export { dayOfWeekSimple };
|
|
@@ -1,40 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.dayOfWeekSimple = void 0;
|
|
4
|
-
const dayOfWeek_1 = require("../../Tool/dayOfWeek");
|
|
5
|
-
const dayOfWeekSimple = (props, timeDifference = 9) => {
|
|
1
|
+
import { dayOfWeek } from "../../Tool/dayOfWeek";
|
|
2
|
+
function dayOfWeekSimple(props, timeDifference = 9) {
|
|
6
3
|
if (typeof props === "string") {
|
|
7
4
|
if (props.includes(":")) {
|
|
8
5
|
const [year, mon, day] = props
|
|
9
6
|
.split(":")
|
|
10
|
-
//
|
|
7
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
11
8
|
.map(Number);
|
|
12
|
-
return
|
|
9
|
+
return dayOfWeek({ year, mon, day }, timeDifference);
|
|
13
10
|
}
|
|
14
11
|
else if (props.includes("/")) {
|
|
15
12
|
const [year, mon, day] = props
|
|
16
13
|
.split("/")
|
|
17
|
-
//
|
|
14
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
18
15
|
.map(Number);
|
|
19
|
-
return
|
|
16
|
+
return dayOfWeek({ year, mon, day }, timeDifference);
|
|
20
17
|
}
|
|
21
18
|
else {
|
|
22
19
|
const [year, mon, day] = props
|
|
23
20
|
.split("-")
|
|
24
|
-
//
|
|
21
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
25
22
|
.map(Number);
|
|
26
|
-
return
|
|
23
|
+
return dayOfWeek({ year, mon, day }, timeDifference);
|
|
27
24
|
}
|
|
28
25
|
}
|
|
29
26
|
else if (props instanceof Date) {
|
|
30
|
-
return
|
|
27
|
+
return dayOfWeek({
|
|
31
28
|
year: props.getFullYear(),
|
|
32
|
-
mon: props.getMonth(),
|
|
29
|
+
mon: (props.getMonth() + 1),
|
|
33
30
|
day: props.getDate(),
|
|
34
31
|
}, timeDifference);
|
|
35
32
|
}
|
|
36
33
|
else {
|
|
37
|
-
return
|
|
34
|
+
return dayOfWeek(props, timeDifference);
|
|
38
35
|
}
|
|
39
|
-
}
|
|
40
|
-
|
|
36
|
+
}
|
|
37
|
+
export { dayOfWeekSimple };
|
|
38
|
+
//# sourceMappingURL=dayOfWeekSimple.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dayOfWeekSimple.js","sourceRoot":"","sources":["../../../src/Simple/Tool/dayOfWeekSimple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AA8B7C,SAAS,eAAe,CAOtB,KAyBQ,EACR,iBAA+B,CAAC;IAEhC,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC7B,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YACvB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK;iBAC3B,KAAK,CAAC,GAAG,CAAC;gBACX,4DAA4D;iBAC3D,GAAG,CAAC,MAAM,CAAQ,CAAC;YACtB,OAAO,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;SACtD;aAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC9B,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK;iBAC3B,KAAK,CAAC,GAAG,CAAC;gBACX,4DAA4D;iBAC3D,GAAG,CAAC,MAAM,CAAQ,CAAC;YACtB,OAAO,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;SACtD;aAAM;YACL,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK;iBAC3B,KAAK,CAAC,GAAG,CAAC;gBACX,4DAA4D;iBAC3D,GAAG,CAAC,MAAM,CAAQ,CAAC;YACtB,OAAO,SAAS,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,cAAc,CAAC,CAAC;SACtD;KACF;SAAM,IAAI,KAAK,YAAY,IAAI,EAAE;QAChC,OAAO,SAAS,CACd;YACE,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE;YACzB,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,CAEH;YACvB,GAAG,EAAE,KAAK,CAAC,OAAO,EAEjB;SACF,EACD,cAAc,CACf,CAAC;KACH;SAAM;QACL,OAAO,SAAS,CACd,KAIC,EACD,cAAc,CACf,CAAC;KACH;AACH,CAAC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const deviationValue_1 = require("../../Math/deviationValue");
|
|
6
|
-
const standardDeviation_1 = require("../../Math/standardDeviation");
|
|
7
|
-
exports.deviationValueSimple = ((value, averageValue, standardDeviationValue) => {
|
|
1
|
+
import { average } from "../../Math/average";
|
|
2
|
+
import { deviationValue } from "../../Math/deviationValue";
|
|
3
|
+
import { standardDeviation } from "../../Math/standardDeviation";
|
|
4
|
+
export const deviationValueSimple = ((value, averageValue, standardDeviationValue) => {
|
|
8
5
|
if (Array.isArray(averageValue)) {
|
|
9
|
-
const x =
|
|
10
|
-
return
|
|
6
|
+
const x = average(averageValue);
|
|
7
|
+
return deviationValue(value, x, standardDeviation(averageValue));
|
|
11
8
|
}
|
|
12
9
|
else {
|
|
13
|
-
return
|
|
10
|
+
return deviationValue(value, averageValue, standardDeviationValue);
|
|
14
11
|
}
|
|
15
12
|
});
|
|
13
|
+
//# sourceMappingURL=deviationValueSimple.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviationValueSimple.js","sourceRoot":"","sources":["../../../src/Simple/Tool/deviationValueSimple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAO7D,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CACnC,KAAa,EACb,YAA+B,EAC/B,sBAA8B,EAC9B,EAAE;IACF,IAAI,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QAC/B,MAAM,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;QAChC,OAAO,cAAc,CAAC,KAAK,EAAE,CAAC,EAAE,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC;KAClE;SAAM;QACL,OAAO,cAAc,CAAC,KAAK,EAAE,YAAY,EAAE,sBAAsB,CAAC,CAAC;KACpE;AACH,CAAC,CAAyB,CAAC"}
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
constructor();
|
|
6
|
-
get birthday(): import("./birthday").BIRTHDAYSIMPLE;
|
|
7
|
-
get dayOfWeek(): <T extends "09" | "01" | "02" | "03" | "04" | "05" | "06" | "07" | "08" | "10" | "11" | "12" | "2" | "9" | "1" | "3" | "4" | "5" | "6" | "7" | "8" | "0">(props?: Date | {
|
|
8
|
-
year?: number | undefined;
|
|
9
|
-
mon?: T | undefined;
|
|
10
|
-
day?: import("../../types/dateType").dayType<T> | undefined;
|
|
11
|
-
} | `${number}-${T}-${import("../../types/dateType").dayType<T>}` | `${number}:${T}:${import("../../types/dateType").dayType<T>}` | `${number}/${T}/${import("../../types/dateType").dayType<T>}` | undefined, timeDifference?: number) => number;
|
|
12
|
-
get deviationValue(): import("./deviationValueSimple").DeviationValueSimple;
|
|
13
|
-
}
|
|
1
|
+
import { birthdaySimple } from "./birthday";
|
|
2
|
+
import { dayOfWeekSimple } from "./dayOfWeekSimple";
|
|
3
|
+
import { deviationValueSimple } from "./deviationValueSimple";
|
|
4
|
+
export { birthdaySimple, dayOfWeekSimple, deviationValueSimple };
|
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const deviationValueSimple_1 = require("./deviationValueSimple");
|
|
7
|
-
class UMTSimpleToolClass {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.localDayOfWeek = dayOfWeekSimple_1.dayOfWeekSimple;
|
|
10
|
-
this.localDeviationValue = deviationValueSimple_1.deviationValueSimple;
|
|
11
|
-
this.localBirthday = birthday_1.birthdaySimple;
|
|
12
|
-
}
|
|
13
|
-
get birthday() {
|
|
14
|
-
return this.localBirthday;
|
|
15
|
-
}
|
|
16
|
-
get dayOfWeek() {
|
|
17
|
-
return this.localDayOfWeek;
|
|
18
|
-
}
|
|
19
|
-
get deviationValue() {
|
|
20
|
-
return this.localDeviationValue;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.UMTSimpleToolClass = UMTSimpleToolClass;
|
|
1
|
+
import { birthdaySimple } from "./birthday";
|
|
2
|
+
import { dayOfWeekSimple } from "./dayOfWeekSimple";
|
|
3
|
+
import { deviationValueSimple } from "./deviationValueSimple";
|
|
4
|
+
export { birthdaySimple, dayOfWeekSimple, deviationValueSimple };
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/Simple/Tool/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,CAAC"}
|
package/module/Simple/index.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(constructorLocalDateValue: LOCALDATE, constructorLocalToolValue: LOCALTOOL);
|
|
7
|
-
get getDate(): LOCALDATE;
|
|
8
|
-
get getTool(): LOCALTOOL;
|
|
9
|
-
}
|
|
10
|
-
export declare const UMT_Simple: UMTSimpleClass<UMTSimpleDateClass, UMTSimpleToolClass>;
|
|
1
|
+
import { nowSimple } from "./Date/now";
|
|
2
|
+
import { birthdaySimple } from "./Tool/birthday";
|
|
3
|
+
import { dayOfWeekSimple } from "./Tool/dayOfWeekSimple";
|
|
4
|
+
import { deviationValueSimple } from "./Tool/deviationValueSimple";
|
|
5
|
+
export { birthdaySimple, dayOfWeekSimple, deviationValueSimple, nowSimple };
|
package/module/Simple/index.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
constructor(constructorLocalDateValue, constructorLocalToolValue) {
|
|
8
|
-
this.localDate = constructorLocalDateValue;
|
|
9
|
-
this.localTool = constructorLocalToolValue;
|
|
10
|
-
}
|
|
11
|
-
get getDate() {
|
|
12
|
-
return this.localDate;
|
|
13
|
-
}
|
|
14
|
-
get getTool() {
|
|
15
|
-
return this.localTool;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.UMTSimpleClass = UMTSimpleClass;
|
|
19
|
-
exports.UMT_Simple = new UMTSimpleClass(new index_1.UMTSimpleDateClass(), new Tool_1.UMTSimpleToolClass());
|
|
1
|
+
import { nowSimple } from "./Date/now";
|
|
2
|
+
import { birthdaySimple } from "./Tool/birthday";
|
|
3
|
+
import { dayOfWeekSimple } from "./Tool/dayOfWeekSimple";
|
|
4
|
+
import { deviationValueSimple } from "./Tool/deviationValueSimple";
|
|
5
|
+
export { birthdaySimple, dayOfWeekSimple, deviationValueSimple, nowSimple };
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Simple/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,oBAAoB,EAAE,SAAS,EAAE,CAAC"}
|
package/module/String/index.d.ts
CHANGED
|
@@ -1,8 +1,2 @@
|
|
|
1
1
|
import { reverseString } from "./reverseString";
|
|
2
2
|
export { reverseString };
|
|
3
|
-
export declare class UMTStringClass {
|
|
4
|
-
private localReverseString;
|
|
5
|
-
constructor();
|
|
6
|
-
get reverseString(): (str: string) => string;
|
|
7
|
-
}
|
|
8
|
-
export declare const UMT_String: UMTStringClass;
|
package/module/String/index.js
CHANGED
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const reverseString_1 = require("./reverseString");
|
|
5
|
-
Object.defineProperty(exports, "reverseString", { enumerable: true, get: function () { return reverseString_1.reverseString; } });
|
|
6
|
-
class UMTStringClass {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.localReverseString = reverseString_1.reverseString;
|
|
9
|
-
}
|
|
10
|
-
get reverseString() {
|
|
11
|
-
return this.localReverseString;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
exports.UMTStringClass = UMTStringClass;
|
|
15
|
-
exports.UMT_String = new UMTStringClass();
|
|
1
|
+
import { reverseString } from "./reverseString";
|
|
2
|
+
export { reverseString };
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/String/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.reverseString = void 0;
|
|
4
|
-
const reverseString = (str) => {
|
|
1
|
+
export const reverseString = (str) => {
|
|
5
2
|
return str.split("").reverse().join("");
|
|
6
3
|
};
|
|
7
|
-
|
|
4
|
+
//# sourceMappingURL=reverseString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reverseString.js","sourceRoot":"","sources":["../../src/String/reverseString.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAW,EAAU,EAAE;IACnD,OAAO,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAC1C,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { hoursTypeInt } from "../types/clockType";
|
|
1
2
|
import { dayTypeInt, monTypeInt } from "../types/dateType";
|
|
2
3
|
/**
|
|
3
4
|
* @param {number} year
|
|
@@ -6,4 +7,4 @@ import { dayTypeInt, monTypeInt } from "../types/dateType";
|
|
|
6
7
|
* @param {number} [timeDifference=9] 時差
|
|
7
8
|
* @returns number 年齢
|
|
8
9
|
*/
|
|
9
|
-
export declare const birthday: <T extends monTypeInt>(year: number, mon: T, day: dayTypeInt<T>, timeDifference?:
|
|
10
|
+
export declare const birthday: <T extends monTypeInt>(year: number, mon: T, day: dayTypeInt<T>, timeDifference?: hoursTypeInt) => number;
|
package/module/Tool/birthday.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.birthday = void 0;
|
|
4
|
-
const Date_1 = require("../Date");
|
|
5
|
-
const now_1 = require("../Date/now");
|
|
1
|
+
import { newDateInt } from "../Date";
|
|
2
|
+
import { now } from "../Date/now";
|
|
6
3
|
/**
|
|
7
4
|
* @param {number} year
|
|
8
5
|
* @param {number} mon
|
|
@@ -10,13 +7,14 @@ const now_1 = require("../Date/now");
|
|
|
10
7
|
* @param {number} [timeDifference=9] 時差
|
|
11
8
|
* @returns number 年齢
|
|
12
9
|
*/
|
|
13
|
-
const birthday = (year, mon, day, timeDifference = 9) => {
|
|
14
|
-
const Bday = (
|
|
15
|
-
const nowTime =
|
|
10
|
+
export const birthday = (year, mon, day, timeDifference = 9) => {
|
|
11
|
+
const Bday = new Date(newDateInt(year, mon, day));
|
|
12
|
+
const nowTime = now(timeDifference);
|
|
16
13
|
const y = nowTime.getFullYear() - Bday.getFullYear();
|
|
17
|
-
const r = nowTime <
|
|
14
|
+
const r = nowTime <
|
|
15
|
+
newDateInt(nowTime.getFullYear(), (Bday.getMonth() - 1), Bday.getDay())
|
|
18
16
|
? y - 1
|
|
19
17
|
: y;
|
|
20
18
|
return year < 100 ? 1900 + y : r;
|
|
21
19
|
};
|
|
22
|
-
|
|
20
|
+
//# sourceMappingURL=birthday.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"birthday.js","sourceRoot":"","sources":["../../src/Tool/birthday.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAGjC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,CACtB,IAAY,EACZ,GAAM,EACN,GAAkB,EAClB,iBAA+B,CAAC,EAChC,EAAE;IACF,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAClD,MAAM,OAAO,GAAG,GAAG,CAAC,cAAc,CAAC,CAAC;IACpC,MAAM,CAAC,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACrD,MAAM,CAAC,GACL,OAAO;QACP,UAAU,CACR,OAAO,CAAC,WAAW,EAAE,EACrB,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAe,EACnC,IAAI,CAAC,MAAM,EA+BL,CACP;QACC,CAAC,CAAC,CAAC,GAAG,CAAC;QACP,CAAC,CAAC,CAAC,CAAC;IACR,OAAO,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACnC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* パイプラインを表すインターフェース。
|
|
3
|
+
* 無引数で呼び出された場合、ストアされている値を返す。
|
|
4
|
+
* 関数が引数として与えられた場合、その関数を適用して新しいPipeインスタンスを生成する。
|
|
5
|
+
*/
|
|
6
|
+
export interface Pipeline<T> {
|
|
7
|
+
(): T;
|
|
8
|
+
<U>(transformer: (input: T) => U): Pipeline<U>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Pipelineインスタンスを生成する関数。
|
|
12
|
+
* @param initialValue 初期値。
|
|
13
|
+
* @returns Pipelineインスタンス。
|
|
14
|
+
*/
|
|
15
|
+
export declare const createPipeline: <T>(initialValue: T) => Pipeline<T>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pipelineインスタンスを生成する関数。
|
|
3
|
+
* @param initialValue 初期値。
|
|
4
|
+
* @returns Pipelineインスタンス。
|
|
5
|
+
*/
|
|
6
|
+
export const createPipeline = (initialValue) =>
|
|
7
|
+
// 引数として変換関数(transformer)を受け取り、新しいPipelineを返す。
|
|
8
|
+
// 引数が無い場合、ストアされた値(initialValue)を返す。
|
|
9
|
+
((transformer) => transformer
|
|
10
|
+
? createPipeline(transformer(initialValue))
|
|
11
|
+
: initialValue);
|
|
12
|
+
//# sourceMappingURL=createPipeline.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPipeline.js","sourceRoot":"","sources":["../../src/Tool/createPipeline.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,MAAM,CAAC,MAAM,cAAc,GAAwC,CACjE,YAAe,EACf,EAAE;AACF,8CAA8C;AAC9C,oCAAoC;AACpC,CAAC,CAAI,WAA6B,EAAE,EAAE,CACpC,WAAW;IACT,CAAC,CAAC,cAAc,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAC3C,CAAC,CAAC,YAAY,CAAgB,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { hoursTypeInt } from "../types/clockType";
|
|
1
2
|
import { dayTypeInt, monTypeInt } from "../types/dateType";
|
|
2
3
|
export declare const dayOfWeek: <T extends monTypeInt>(props?: {
|
|
3
4
|
year?: number | undefined;
|
|
4
5
|
mon?: T | undefined;
|
|
5
6
|
day?: dayTypeInt<T> | undefined;
|
|
6
|
-
} | undefined, timeDifference?:
|
|
7
|
+
} | undefined, timeDifference?: hoursTypeInt) => number;
|
package/module/Tool/dayOfWeek.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const now_1 = require("../Date/now");
|
|
6
|
-
const dayOfWeek = (props, timeDifference = 9) => {
|
|
7
|
-
const nowTime = (0, now_1.now)(timeDifference);
|
|
1
|
+
import { newDateInt } from "../Date/new";
|
|
2
|
+
import { now } from "../Date/now";
|
|
3
|
+
export const dayOfWeek = (props, timeDifference = 9) => {
|
|
4
|
+
const nowTime = now(timeDifference);
|
|
8
5
|
if (props) {
|
|
9
|
-
return
|
|
6
|
+
return newDateInt(props.year || nowTime.getFullYear(), props.mon || (nowTime.getMonth() + 1), props.day || nowTime.getDate()).getDay();
|
|
10
7
|
}
|
|
11
8
|
else {
|
|
12
9
|
return nowTime.getDay();
|
|
13
10
|
}
|
|
14
11
|
};
|
|
15
|
-
|
|
12
|
+
//# sourceMappingURL=dayOfWeek.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dayOfWeek.js","sourceRoot":"","sources":["../../src/Tool/dayOfWeek.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAIjC,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,KAIC,EACD,iBAA+B,CAAC,EAChC,EAAE;IACF,MAAM,OAAO,GAAG,GAAG,CAAC,cAAc,CAAC,CAAC;IACpC,IAAI,KAAK,EAAE;QACT,OAAO,UAAU,CACf,KAAK,CAAC,IAAI,IAAI,OAAO,CAAC,WAAW,EAAE,EACnC,KAAK,CAAC,GAAG,IAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAgB,EACrD,KAAK,CAAC,GAAG,IAAK,OAAO,CAAC,OAAO,EAAoB,CAClD,CAAC,MAAM,EAAE,CAAC;KACZ;SAAM;QACL,OAAO,OAAO,CAAC,MAAM,EAAE,CAAC;KACzB;AACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const deleteSpace: (str: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteSpace.js","sourceRoot":"","sources":["../../src/Tool/deleteSpace.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE;IACzC,OAAO,GAAG,CAAC,UAAU,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACnC,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { division } from "../Math/division";
|
|
2
|
+
export function hexToRgba(hex) {
|
|
3
|
+
// hex形式かどうかのチェック
|
|
4
|
+
if (/^#([0-9a-f]{3}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(hex) === false) {
|
|
5
|
+
throw new Error("Invalid hex code");
|
|
6
|
+
}
|
|
7
|
+
const hexCode = hex.replace("#", "");
|
|
8
|
+
const r = parseInt(hexCode.substring(0, 2), 16);
|
|
9
|
+
const g = parseInt(hexCode.substring(2, 4), 16);
|
|
10
|
+
const b = parseInt(hexCode.substring(4, 6), 16);
|
|
11
|
+
const a = division(parseInt(hexCode.substring(6, 8), 16), 255);
|
|
12
|
+
return { r, g, b, a: Number.isNaN(a) ? 1 : a };
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=hexToRgba.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hexToRgba.js","sourceRoot":"","sources":["../../src/Tool/hexToRgba.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,MAAM,UAAU,SAAS,CAAC,GAAW;IAMnC,iBAAiB;IACjB,IAAI,2CAA2C,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,KAAK,EAAE;QACnE,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;KACrC;IAED,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;IACrC,MAAM,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAChD,MAAM,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAChD,MAAM,CAAC,GAAG,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAChD,MAAM,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;IAC/D,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AACjD,CAAC"}
|