@unicom-cloud/utils 0.1.47 → 0.1.49
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/.virtual/_rolldown/runtime.js +1 -1
- package/.vite/manifest.json +143 -24
- package/array/index.js +1 -1
- package/assert/index.js +1 -1
- package/case-name/index.js +1 -1
- package/class-name/index.js +1 -1
- package/clipboard-copy/index.js +1 -1
- package/constant/address.js +1 -1
- package/constant/chineseCharacters.js +1 -1
- package/constant/constellations.js +1 -1
- package/constant/domain.js +1 -1
- package/constant/identity.js +1 -1
- package/constant/index.js +1 -1
- package/constant/keyboardCode.js +1 -1
- package/constant/licensePlate.js +1 -1
- package/constant/name.js +1 -1
- package/constant/platform.js +1 -1
- package/constant/protocol.js +1 -1
- package/constant/string.js +1 -1
- package/constant/ui.js +1 -1
- package/content-disposition/index.js +1 -1
- package/cookie/api.js +1 -1
- package/cookie/assign.js +1 -1
- package/cookie/converter.js +1 -1
- package/cookie/index.js +1 -1
- package/css/cssSupported.js +1 -1
- package/css/index.js +1 -1
- package/date/convertTime.js +1 -1
- package/date/convertToDuration.js +1 -1
- package/date/index.js +1 -1
- package/decimal/decimal.js +1 -1
- package/decimal/index.js +1 -1
- package/dom-align/LICENSE.md +9 -0
- package/dom-align/adjustForViewport.d.ts +2 -0
- package/dom-align/adjustForViewport.js +13 -0
- package/dom-align/align/align.d.ts +15 -0
- package/dom-align/align/align.js +88 -0
- package/dom-align/align/alignElement.d.ts +16 -0
- package/dom-align/align/alignElement.js +18 -0
- package/dom-align/align/alignPoint.d.ts +14 -0
- package/dom-align/align/alignPoint.js +21 -0
- package/dom-align/getAlignOffset.d.ts +8 -0
- package/dom-align/getAlignOffset.js +12 -0
- package/dom-align/getElFuturePos.d.ts +5 -0
- package/dom-align/getElFuturePos.js +13 -0
- package/dom-align/getOffsetParent.d.ts +2 -0
- package/dom-align/getOffsetParent.js +14 -0
- package/dom-align/getRegion.d.ts +5 -0
- package/dom-align/getRegion.js +18 -0
- package/dom-align/getVisibleRectForElement.d.ts +10 -0
- package/dom-align/getVisibleRectForElement.js +34 -0
- package/dom-align/index.d.ts +4 -0
- package/dom-align/index.js +8 -0
- package/dom-align/isAncestorFixed.d.ts +1 -0
- package/dom-align/isAncestorFixed.js +13 -0
- package/dom-align/propertyUtils.d.ts +8 -0
- package/dom-align/propertyUtils.js +57 -0
- package/dom-align/utils.d.ts +28 -0
- package/dom-align/utils.js +220 -0
- package/dom-helpers/activeElement.js +1 -1
- package/dom-helpers/addClass.js +1 -1
- package/dom-helpers/addEventListener.js +1 -1
- package/dom-helpers/animate.js +1 -1
- package/dom-helpers/animationFrame.js +1 -1
- package/dom-helpers/attribute.js +1 -1
- package/dom-helpers/camelize.js +1 -1
- package/dom-helpers/camelizeStyle.js +1 -1
- package/dom-helpers/canUseDOM.js +1 -1
- package/dom-helpers/childElements.js +1 -1
- package/dom-helpers/childNodes.js +1 -1
- package/dom-helpers/clear.js +1 -1
- package/dom-helpers/closest.js +1 -1
- package/dom-helpers/collectElements.js +1 -1
- package/dom-helpers/collectSiblings.js +1 -1
- package/dom-helpers/contains.js +1 -1
- package/dom-helpers/css.js +1 -1
- package/dom-helpers/filterEventHandler.js +1 -1
- package/dom-helpers/getComputedStyle.js +1 -1
- package/dom-helpers/getElementCoordinates.js +1 -1
- package/dom-helpers/getScrollAccessor.js +1 -1
- package/dom-helpers/hasClass.js +1 -1
- package/dom-helpers/height.js +1 -1
- package/dom-helpers/hyphenate.js +1 -1
- package/dom-helpers/hyphenateStyle.js +1 -1
- package/dom-helpers/index.js +1 -1
- package/dom-helpers/insertAfter.js +1 -1
- package/dom-helpers/isDocument.js +1 -1
- package/dom-helpers/isInput.js +1 -1
- package/dom-helpers/isTransform.js +1 -1
- package/dom-helpers/isVisible.js +1 -1
- package/dom-helpers/isWindow.js +1 -1
- package/dom-helpers/listen.js +1 -1
- package/dom-helpers/matches.js +1 -1
- package/dom-helpers/nextUntil.js +1 -1
- package/dom-helpers/offset.js +1 -1
- package/dom-helpers/offsetParent.js +1 -1
- package/dom-helpers/ownerDocument.js +1 -1
- package/dom-helpers/ownerWindow.js +1 -1
- package/dom-helpers/parents.js +1 -1
- package/dom-helpers/position.js +1 -1
- package/dom-helpers/prepend.js +1 -1
- package/dom-helpers/querySelectorAll.js +1 -1
- package/dom-helpers/reflow.js +1 -1
- package/dom-helpers/remove.js +1 -1
- package/dom-helpers/removeClass.js +1 -1
- package/dom-helpers/removeEventListener.js +1 -1
- package/dom-helpers/scrollLeft.js +1 -1
- package/dom-helpers/scrollParent.js +1 -1
- package/dom-helpers/scrollTo.js +1 -1
- package/dom-helpers/scrollTop.js +1 -1
- package/dom-helpers/scrollbarSize.js +1 -1
- package/dom-helpers/siblings.js +1 -1
- package/dom-helpers/text.js +1 -1
- package/dom-helpers/toggleClass.js +1 -1
- package/dom-helpers/transitionEnd.js +1 -1
- package/dom-helpers/triggerEvent.js +1 -1
- package/dom-helpers/types.js +1 -1
- package/dom-helpers/width.js +1 -1
- package/emitter/index.js +1 -1
- package/emoji/emoji.js +1 -1
- package/emoji/emojis.js +1 -1
- package/emoji/index.js +1 -1
- package/escape/index.js +1 -1
- package/fflate/index.js +1 -1
- package/fflate/src/index.js +6 -6
- package/fflate/src/worker.js +1 -1
- package/file/fileRead.js +1 -1
- package/file/fileToDataURL.js +1 -1
- package/file/img.js +1 -1
- package/file/index.js +1 -1
- package/file/saveAs.js +1 -1
- package/filesize/index.js +1 -1
- package/filesize/src/constants.js +1 -1
- package/filesize/src/filesize.js +1 -1
- package/filesize/src/helpers.js +1 -1
- package/function/index.js +1 -1
- package/idb/async-iterators.js +1 -1
- package/idb/database-extras.js +1 -1
- package/idb/entry.js +1 -1
- package/idb/index-.js +1 -1
- package/idb/index.js +1 -1
- package/idb/util.js +1 -1
- package/idb/wrap-idb-value.js +1 -1
- package/index.js +1 -1
- package/invariant/index.js +1 -1
- package/is/index.d.ts +5 -2
- package/is/index.js +11 -2
- package/is/lib/isAscii.js +1 -1
- package/is/lib/isBase64.js +1 -1
- package/is/lib/isChinese.js +1 -1
- package/is/lib/isDataURI.js +1 -1
- package/is/lib/isEmail.js +1 -1
- package/is/lib/isFQDN.js +1 -1
- package/is/lib/isFullWidth.js +1 -1
- package/is/lib/isHSL.js +1 -1
- package/is/lib/isHalfWidth.js +1 -1
- package/is/lib/isHash.js +1 -1
- package/is/lib/isHexColor.js +1 -1
- package/is/lib/isIMEI.js +1 -1
- package/is/lib/isIP.js +1 -1
- package/is/lib/isIPRange.js +1 -1
- package/is/lib/isIdentityCard.js +1 -1
- package/is/lib/isJWT.js +1 -1
- package/is/lib/isMACAddress.js +1 -1
- package/is/lib/isMD5.js +1 -1
- package/is/lib/isMimeType.js +1 -1
- package/is/lib/isMobilePhone.js +1 -1
- package/is/lib/isPort.js +1 -1
- package/is/lib/isRgbColor.js +1 -1
- package/is/lib/isSemVer.js +1 -1
- package/is/lib/isSlug.js +1 -1
- package/is/lib/isStrongPassword.js +1 -1
- package/is/lib/isURL.js +1 -1
- package/is/lib/isUUID.js +1 -1
- package/is/lib/isVariableWidth.js +1 -1
- package/lodash/_DataView.js +1 -1
- package/lodash/_Hash.js +1 -1
- package/lodash/_LazyWrapper.js +1 -1
- package/lodash/_ListCache.js +1 -1
- package/lodash/_LodashWrapper.js +1 -1
- package/lodash/_Map.js +1 -1
- package/lodash/_MapCache.js +1 -1
- package/lodash/_Promise.js +1 -1
- package/lodash/_Set.js +1 -1
- package/lodash/_SetCache.js +1 -1
- package/lodash/_Stack.js +1 -1
- package/lodash/_Symbol.js +1 -1
- package/lodash/_Uint8Array.js +1 -1
- package/lodash/_WeakMap.js +1 -1
- package/lodash/_addMapEntry.js +1 -1
- package/lodash/_addSetEntry.js +1 -1
- package/lodash/_apply.js +1 -1
- package/lodash/_arrayAggregator.js +1 -1
- package/lodash/_arrayEach.js +1 -1
- package/lodash/_arrayEachRight.js +1 -1
- package/lodash/_arrayEvery.js +1 -1
- package/lodash/_arrayFilter.js +1 -1
- package/lodash/_arrayIncludes.js +1 -1
- package/lodash/_arrayIncludesWith.js +1 -1
- package/lodash/_arrayLikeKeys.js +1 -1
- package/lodash/_arrayMap.js +1 -1
- package/lodash/_arrayPush.js +1 -1
- package/lodash/_arrayReduce.js +1 -1
- package/lodash/_arrayReduceRight.js +1 -1
- package/lodash/_arraySample.js +1 -1
- package/lodash/_arraySampleSize.js +1 -1
- package/lodash/_arrayShuffle.js +1 -1
- package/lodash/_arraySome.js +1 -1
- package/lodash/_asciiSize.js +1 -1
- package/lodash/_asciiToArray.js +1 -1
- package/lodash/_asciiWords.js +1 -1
- package/lodash/_assignMergeValue.js +1 -1
- package/lodash/_assignValue.js +1 -1
- package/lodash/_assocIndexOf.js +1 -1
- package/lodash/_baseAggregator.js +1 -1
- package/lodash/_baseAssign.js +1 -1
- package/lodash/_baseAssignIn.js +1 -1
- package/lodash/_baseAssignValue.js +1 -1
- package/lodash/_baseAt.js +1 -1
- package/lodash/_baseClamp.js +1 -1
- package/lodash/_baseClone.js +1 -1
- package/lodash/_baseConforms.js +1 -1
- package/lodash/_baseConformsTo.js +1 -1
- package/lodash/_baseCreate.js +1 -1
- package/lodash/_baseDelay.js +1 -1
- package/lodash/_baseDifference.js +1 -1
- package/lodash/_baseEach.js +1 -1
- package/lodash/_baseEachRight.js +1 -1
- package/lodash/_baseEvery.js +1 -1
- package/lodash/_baseExtremum.js +1 -1
- package/lodash/_baseFill.js +1 -1
- package/lodash/_baseFilter.js +1 -1
- package/lodash/_baseFindIndex.js +1 -1
- package/lodash/_baseFindKey.js +1 -1
- package/lodash/_baseFlatten.js +1 -1
- package/lodash/_baseFor.js +1 -1
- package/lodash/_baseForOwn.js +1 -1
- package/lodash/_baseForOwnRight.js +1 -1
- package/lodash/_baseForRight.js +1 -1
- package/lodash/_baseFunctions.js +1 -1
- package/lodash/_baseGet.js +1 -1
- package/lodash/_baseGetAllKeys.js +1 -1
- package/lodash/_baseGetTag.js +1 -1
- package/lodash/_baseGt.js +1 -1
- package/lodash/_baseHas.js +1 -1
- package/lodash/_baseHasIn.js +1 -1
- package/lodash/_baseInRange.js +1 -1
- package/lodash/_baseIndexOf.js +1 -1
- package/lodash/_baseIndexOfWith.js +1 -1
- package/lodash/_baseIntersection.js +1 -1
- package/lodash/_baseInverter.js +1 -1
- package/lodash/_baseInvoke.js +1 -1
- package/lodash/_baseIsArguments.js +1 -1
- package/lodash/_baseIsArrayBuffer.js +1 -1
- package/lodash/_baseIsDate.js +1 -1
- package/lodash/_baseIsEqual.js +1 -1
- package/lodash/_baseIsEqualDeep.js +1 -1
- package/lodash/_baseIsMap.js +1 -1
- package/lodash/_baseIsMatch.js +1 -1
- package/lodash/_baseIsNaN.js +1 -1
- package/lodash/_baseIsNative.js +1 -1
- package/lodash/_baseIsRegExp.js +1 -1
- package/lodash/_baseIsSet.js +1 -1
- package/lodash/_baseIsTypedArray.js +1 -1
- package/lodash/_baseIteratee.js +1 -1
- package/lodash/_baseKeys.js +1 -1
- package/lodash/_baseKeysIn.js +1 -1
- package/lodash/_baseLodash.js +1 -1
- package/lodash/_baseLt.js +1 -1
- package/lodash/_baseMap.js +1 -1
- package/lodash/_baseMatches.js +1 -1
- package/lodash/_baseMatchesProperty.js +1 -1
- package/lodash/_baseMean.js +1 -1
- package/lodash/_baseMerge.js +1 -1
- package/lodash/_baseMergeDeep.js +1 -1
- package/lodash/_baseNth.js +1 -1
- package/lodash/_baseOrderBy.js +1 -1
- package/lodash/_basePick.js +1 -1
- package/lodash/_basePickBy.js +1 -1
- package/lodash/_baseProperty.js +1 -1
- package/lodash/_basePropertyDeep.js +1 -1
- package/lodash/_basePropertyOf.js +1 -1
- package/lodash/_basePullAll.js +1 -1
- package/lodash/_basePullAt.js +1 -1
- package/lodash/_baseRandom.js +1 -1
- package/lodash/_baseRange.js +1 -1
- package/lodash/_baseReduce.js +1 -1
- package/lodash/_baseRepeat.js +1 -1
- package/lodash/_baseRest.js +1 -1
- package/lodash/_baseSample.js +1 -1
- package/lodash/_baseSampleSize.js +1 -1
- package/lodash/_baseSet.js +1 -1
- package/lodash/_baseSetData.js +1 -1
- package/lodash/_baseSetToString.js +1 -1
- package/lodash/_baseShuffle.js +1 -1
- package/lodash/_baseSlice.js +1 -1
- package/lodash/_baseSome.js +1 -1
- package/lodash/_baseSortBy.js +1 -1
- package/lodash/_baseSortedIndex.js +1 -1
- package/lodash/_baseSortedIndexBy.js +1 -1
- package/lodash/_baseSortedUniq.js +1 -1
- package/lodash/_baseSum.js +1 -1
- package/lodash/_baseTimes.js +1 -1
- package/lodash/_baseToNumber.js +1 -1
- package/lodash/_baseToPairs.js +1 -1
- package/lodash/_baseToString.js +1 -1
- package/lodash/_baseTrim.js +1 -1
- package/lodash/_baseUnary.js +1 -1
- package/lodash/_baseUniq.js +1 -1
- package/lodash/_baseUnset.js +1 -1
- package/lodash/_baseUpdate.js +1 -1
- package/lodash/_baseValues.js +1 -1
- package/lodash/_baseWhile.js +1 -1
- package/lodash/_baseWrapperValue.js +1 -1
- package/lodash/_baseXor.js +1 -1
- package/lodash/_baseZipObject.js +1 -1
- package/lodash/_cacheHas.js +1 -1
- package/lodash/_castArrayLikeObject.js +1 -1
- package/lodash/_castFunction.js +1 -1
- package/lodash/_castPath.js +1 -1
- package/lodash/_castRest.js +1 -1
- package/lodash/_castSlice.js +1 -1
- package/lodash/_charsEndIndex.js +1 -1
- package/lodash/_charsStartIndex.js +1 -1
- package/lodash/_cloneArrayBuffer.js +1 -1
- package/lodash/_cloneBuffer.js +1 -1
- package/lodash/_cloneDataView.js +1 -1
- package/lodash/_cloneMap.js +1 -1
- package/lodash/_cloneRegExp.js +1 -1
- package/lodash/_cloneSet.js +1 -1
- package/lodash/_cloneSymbol.js +1 -1
- package/lodash/_cloneTypedArray.js +1 -1
- package/lodash/_compareAscending.js +1 -1
- package/lodash/_compareMultiple.js +1 -1
- package/lodash/_composeArgs.js +1 -1
- package/lodash/_composeArgsRight.js +1 -1
- package/lodash/_copyArray.js +1 -1
- package/lodash/_copyObject.js +1 -1
- package/lodash/_copySymbols.js +1 -1
- package/lodash/_copySymbolsIn.js +1 -1
- package/lodash/_coreJsData.js +1 -1
- package/lodash/_countHolders.js +1 -1
- package/lodash/_createAggregator.js +1 -1
- package/lodash/_createAssigner.js +1 -1
- package/lodash/_createBaseEach.js +1 -1
- package/lodash/_createBaseFor.js +1 -1
- package/lodash/_createBind.js +1 -1
- package/lodash/_createCaseFirst.js +1 -1
- package/lodash/_createCompounder.js +1 -1
- package/lodash/_createCtor.js +1 -1
- package/lodash/_createCurry.js +1 -1
- package/lodash/_createFind.js +1 -1
- package/lodash/_createFlow.js +1 -1
- package/lodash/_createHybrid.js +1 -1
- package/lodash/_createInverter.js +1 -1
- package/lodash/_createMathOperation.js +1 -1
- package/lodash/_createOver.js +1 -1
- package/lodash/_createPadding.js +1 -1
- package/lodash/_createPartial.js +1 -1
- package/lodash/_createRange.js +1 -1
- package/lodash/_createRecurry.js +1 -1
- package/lodash/_createRelationalOperation.js +1 -1
- package/lodash/_createRound.js +1 -1
- package/lodash/_createSet.js +1 -1
- package/lodash/_createToPairs.js +1 -1
- package/lodash/_createWrap.js +1 -1
- package/lodash/_customDefaultsAssignIn.js +1 -1
- package/lodash/_customDefaultsMerge.js +1 -1
- package/lodash/_customOmitClone.js +1 -1
- package/lodash/_deburrLetter.js +1 -1
- package/lodash/_defineProperty.js +1 -1
- package/lodash/_equalArrays.js +1 -1
- package/lodash/_equalByTag.js +1 -1
- package/lodash/_equalObjects.js +1 -1
- package/lodash/_escapeHtmlChar.js +1 -1
- package/lodash/_escapeStringChar.js +1 -1
- package/lodash/_flatRest.js +1 -1
- package/lodash/_freeGlobal.js +1 -1
- package/lodash/_getAllKeys.js +1 -1
- package/lodash/_getAllKeysIn.js +1 -1
- package/lodash/_getData.js +1 -1
- package/lodash/_getFuncName.js +1 -1
- package/lodash/_getHolder.js +1 -1
- package/lodash/_getMapData.js +1 -1
- package/lodash/_getMatchData.js +1 -1
- package/lodash/_getNative.js +1 -1
- package/lodash/_getPrototype.js +1 -1
- package/lodash/_getRawTag.js +1 -1
- package/lodash/_getSymbols.js +1 -1
- package/lodash/_getSymbolsIn.js +1 -1
- package/lodash/_getTag.js +1 -1
- package/lodash/_getValue.js +1 -1
- package/lodash/_getView.js +1 -1
- package/lodash/_getWrapDetails.js +1 -1
- package/lodash/_hasPath.js +1 -1
- package/lodash/_hasUnicode.js +1 -1
- package/lodash/_hasUnicodeWord.js +1 -1
- package/lodash/_hashClear.js +1 -1
- package/lodash/_hashDelete.js +1 -1
- package/lodash/_hashGet.js +1 -1
- package/lodash/_hashHas.js +1 -1
- package/lodash/_hashSet.js +1 -1
- package/lodash/_initCloneArray.js +1 -1
- package/lodash/_initCloneByTag.js +1 -1
- package/lodash/_initCloneObject.js +1 -1
- package/lodash/_insertWrapDetails.js +1 -1
- package/lodash/_isFlattenable.js +1 -1
- package/lodash/_isIndex.js +1 -1
- package/lodash/_isIterateeCall.js +1 -1
- package/lodash/_isKey.js +1 -1
- package/lodash/_isKeyable.js +1 -1
- package/lodash/_isLaziable.js +1 -1
- package/lodash/_isMaskable.js +1 -1
- package/lodash/_isMasked.js +1 -1
- package/lodash/_isPrototype.js +1 -1
- package/lodash/_isStrictComparable.js +1 -1
- package/lodash/_iteratorToArray.js +1 -1
- package/lodash/_lazyClone.js +1 -1
- package/lodash/_lazyReverse.js +1 -1
- package/lodash/_lazyValue.js +1 -1
- package/lodash/_listCacheClear.js +1 -1
- package/lodash/_listCacheDelete.js +1 -1
- package/lodash/_listCacheGet.js +1 -1
- package/lodash/_listCacheHas.js +1 -1
- package/lodash/_listCacheSet.js +1 -1
- package/lodash/_mapCacheClear.js +1 -1
- package/lodash/_mapCacheDelete.js +1 -1
- package/lodash/_mapCacheGet.js +1 -1
- package/lodash/_mapCacheHas.js +1 -1
- package/lodash/_mapCacheSet.js +1 -1
- package/lodash/_mapToArray.js +1 -1
- package/lodash/_matchesStrictComparable.js +1 -1
- package/lodash/_memoizeCapped.js +1 -1
- package/lodash/_mergeData.js +1 -1
- package/lodash/_metaMap.js +1 -1
- package/lodash/_nativeCreate.js +1 -1
- package/lodash/_nativeKeys.js +1 -1
- package/lodash/_nativeKeysIn.js +1 -1
- package/lodash/_nodeUtil.js +1 -1
- package/lodash/_objectToString.js +1 -1
- package/lodash/_overArg.js +1 -1
- package/lodash/_overRest.js +1 -1
- package/lodash/_parent.js +1 -1
- package/lodash/_reEscape.js +1 -1
- package/lodash/_reEvaluate.js +1 -1
- package/lodash/_reInterpolate.js +1 -1
- package/lodash/_realNames.js +1 -1
- package/lodash/_reorder.js +1 -1
- package/lodash/_replaceHolders.js +1 -1
- package/lodash/_root.js +1 -1
- package/lodash/_safeGet.js +1 -1
- package/lodash/_setCacheAdd.js +1 -1
- package/lodash/_setCacheHas.js +1 -1
- package/lodash/_setData.js +1 -1
- package/lodash/_setToArray.js +1 -1
- package/lodash/_setToPairs.js +1 -1
- package/lodash/_setToString.js +1 -1
- package/lodash/_setWrapToString.js +1 -1
- package/lodash/_shortOut.js +1 -1
- package/lodash/_shuffleSelf.js +1 -1
- package/lodash/_stackClear.js +1 -1
- package/lodash/_stackDelete.js +1 -1
- package/lodash/_stackGet.js +1 -1
- package/lodash/_stackHas.js +1 -1
- package/lodash/_stackSet.js +1 -1
- package/lodash/_strictIndexOf.js +1 -1
- package/lodash/_strictLastIndexOf.js +1 -1
- package/lodash/_stringSize.js +1 -1
- package/lodash/_stringToArray.js +1 -1
- package/lodash/_stringToPath.js +1 -1
- package/lodash/_toKey.js +1 -1
- package/lodash/_toSource.js +1 -1
- package/lodash/_trimmedEndIndex.js +1 -1
- package/lodash/_unescapeHtmlChar.js +1 -1
- package/lodash/_unicodeSize.js +1 -1
- package/lodash/_unicodeToArray.js +1 -1
- package/lodash/_unicodeWords.js +1 -1
- package/lodash/_updateWrapDetails.js +1 -1
- package/lodash/_wrapperClone.js +1 -1
- package/lodash/add.js +1 -1
- package/lodash/after.js +1 -1
- package/lodash/array.default.js +1 -1
- package/lodash/array.js +1 -1
- package/lodash/ary.js +1 -1
- package/lodash/assign.js +1 -1
- package/lodash/assignIn.js +1 -1
- package/lodash/assignInWith.js +1 -1
- package/lodash/assignWith.js +1 -1
- package/lodash/at.js +1 -1
- package/lodash/attempt.js +1 -1
- package/lodash/before.js +1 -1
- package/lodash/bind.js +1 -1
- package/lodash/bindAll.js +1 -1
- package/lodash/bindKey.js +1 -1
- package/lodash/camelCase.js +1 -1
- package/lodash/capitalize.js +1 -1
- package/lodash/castArray.js +1 -1
- package/lodash/ceil.js +1 -1
- package/lodash/chain.js +1 -1
- package/lodash/chunk.js +1 -1
- package/lodash/clamp.js +1 -1
- package/lodash/clone.js +1 -1
- package/lodash/cloneDeep.js +1 -1
- package/lodash/cloneDeepWith.js +1 -1
- package/lodash/cloneWith.js +1 -1
- package/lodash/collection.default.js +1 -1
- package/lodash/collection.js +1 -1
- package/lodash/commit.js +1 -1
- package/lodash/compact.js +1 -1
- package/lodash/concat.js +1 -1
- package/lodash/cond.js +1 -1
- package/lodash/conforms.js +1 -1
- package/lodash/conformsTo.js +1 -1
- package/lodash/constant.js +1 -1
- package/lodash/countBy.js +1 -1
- package/lodash/create.js +1 -1
- package/lodash/curry.js +1 -1
- package/lodash/curryRight.js +1 -1
- package/lodash/date.default.js +1 -1
- package/lodash/date.js +1 -1
- package/lodash/debounce.js +1 -1
- package/lodash/deburr.js +1 -1
- package/lodash/defaultTo.js +1 -1
- package/lodash/defaults.js +1 -1
- package/lodash/defaultsDeep.js +1 -1
- package/lodash/defer.js +1 -1
- package/lodash/delay.js +1 -1
- package/lodash/difference.js +1 -1
- package/lodash/differenceBy.js +1 -1
- package/lodash/differenceWith.js +1 -1
- package/lodash/divide.js +1 -1
- package/lodash/drop.js +1 -1
- package/lodash/dropRight.js +1 -1
- package/lodash/dropRightWhile.js +1 -1
- package/lodash/dropWhile.js +1 -1
- package/lodash/each.js +1 -1
- package/lodash/eachRight.js +1 -1
- package/lodash/endsWith.js +1 -1
- package/lodash/entries.js +1 -1
- package/lodash/entriesIn.js +1 -1
- package/lodash/eq.js +1 -1
- package/lodash/escape.js +1 -1
- package/lodash/escapeRegExp.js +1 -1
- package/lodash/every.js +1 -1
- package/lodash/extend.js +1 -1
- package/lodash/extendWith.js +1 -1
- package/lodash/fill.js +1 -1
- package/lodash/filter.js +1 -1
- package/lodash/find.js +1 -1
- package/lodash/findIndex.js +1 -1
- package/lodash/findKey.js +1 -1
- package/lodash/findLast.js +1 -1
- package/lodash/findLastIndex.js +1 -1
- package/lodash/findLastKey.js +1 -1
- package/lodash/first.js +1 -1
- package/lodash/flatMap.js +1 -1
- package/lodash/flatMapDeep.js +1 -1
- package/lodash/flatMapDepth.js +1 -1
- package/lodash/flatten.js +1 -1
- package/lodash/flattenDeep.js +1 -1
- package/lodash/flattenDepth.js +1 -1
- package/lodash/flip.js +1 -1
- package/lodash/floor.js +1 -1
- package/lodash/flow.js +1 -1
- package/lodash/flowRight.js +1 -1
- package/lodash/forEach.js +1 -1
- package/lodash/forEachRight.js +1 -1
- package/lodash/forIn.js +1 -1
- package/lodash/forInRight.js +1 -1
- package/lodash/forOwn.js +1 -1
- package/lodash/forOwnRight.js +1 -1
- package/lodash/fromPairs.js +1 -1
- package/lodash/function.default.js +1 -1
- package/lodash/function.js +1 -1
- package/lodash/functions.js +1 -1
- package/lodash/functionsIn.js +1 -1
- package/lodash/get.js +1 -1
- package/lodash/groupBy.js +1 -1
- package/lodash/gt.js +1 -1
- package/lodash/gte.js +1 -1
- package/lodash/has.js +1 -1
- package/lodash/hasIn.js +1 -1
- package/lodash/head.js +1 -1
- package/lodash/identity.js +1 -1
- package/lodash/inRange.js +1 -1
- package/lodash/includes.js +1 -1
- package/lodash/index.js +1 -1
- package/lodash/indexOf.js +1 -1
- package/lodash/initial.js +1 -1
- package/lodash/intersection.js +1 -1
- package/lodash/intersectionBy.js +1 -1
- package/lodash/intersectionWith.js +1 -1
- package/lodash/invert.js +1 -1
- package/lodash/invertBy.js +1 -1
- package/lodash/invoke.js +1 -1
- package/lodash/invokeMap.js +1 -1
- package/lodash/isArguments.js +1 -1
- package/lodash/isArray.js +1 -1
- package/lodash/isArrayBuffer.js +1 -1
- package/lodash/isArrayLike.js +1 -1
- package/lodash/isArrayLikeObject.js +1 -1
- package/lodash/isBoolean.js +1 -1
- package/lodash/isBuffer.js +1 -1
- package/lodash/isDate.js +1 -1
- package/lodash/isElement.js +1 -1
- package/lodash/isEmpty.js +1 -1
- package/lodash/isEqual.js +1 -1
- package/lodash/isEqualWith.js +1 -1
- package/lodash/isError.js +1 -1
- package/lodash/isFinite.js +1 -1
- package/lodash/isFunction.js +1 -1
- package/lodash/isInteger.js +1 -1
- package/lodash/isLength.js +1 -1
- package/lodash/isMap.js +1 -1
- package/lodash/isMatch.js +1 -1
- package/lodash/isMatchWith.js +1 -1
- package/lodash/isNaN.js +1 -1
- package/lodash/isNative.js +1 -1
- package/lodash/isNil.js +1 -1
- package/lodash/isNull.js +1 -1
- package/lodash/isNumber.js +1 -1
- package/lodash/isObject.js +1 -1
- package/lodash/isObjectLike.js +1 -1
- package/lodash/isPlainObject.js +1 -1
- package/lodash/isPromise.js +1 -1
- package/lodash/isRegExp.js +1 -1
- package/lodash/isSafeInteger.js +1 -1
- package/lodash/isSet.js +1 -1
- package/lodash/isString.js +1 -1
- package/lodash/isSymbol.js +1 -1
- package/lodash/isTypedArray.js +1 -1
- package/lodash/isUndefined.js +1 -1
- package/lodash/isWeakMap.js +1 -1
- package/lodash/isWeakSet.js +1 -1
- package/lodash/iteratee.js +1 -1
- package/lodash/join.js +1 -1
- package/lodash/kebabCase.js +1 -1
- package/lodash/keyBy.js +1 -1
- package/lodash/keys.js +1 -1
- package/lodash/keysIn.js +1 -1
- package/lodash/lang.default.js +1 -1
- package/lodash/lang.js +1 -1
- package/lodash/last.js +1 -1
- package/lodash/lastIndexOf.js +1 -1
- package/lodash/lodash.default.js +1 -1
- package/lodash/lodash.js +1 -1
- package/lodash/lowerCase.js +1 -1
- package/lodash/lowerFirst.js +1 -1
- package/lodash/lt.js +1 -1
- package/lodash/lte.js +1 -1
- package/lodash/map.js +1 -1
- package/lodash/mapKeys.js +1 -1
- package/lodash/mapValues.js +1 -1
- package/lodash/matches.js +1 -1
- package/lodash/matchesProperty.js +1 -1
- package/lodash/math.default.js +1 -1
- package/lodash/math.js +1 -1
- package/lodash/max.js +1 -1
- package/lodash/maxBy.js +1 -1
- package/lodash/mean.js +1 -1
- package/lodash/meanBy.js +1 -1
- package/lodash/memoize.js +1 -1
- package/lodash/merge.js +1 -1
- package/lodash/mergeWith.js +1 -1
- package/lodash/method.js +1 -1
- package/lodash/methodOf.js +1 -1
- package/lodash/min.js +1 -1
- package/lodash/minBy.js +1 -1
- package/lodash/mixin.js +1 -1
- package/lodash/multiply.js +1 -1
- package/lodash/negate.js +1 -1
- package/lodash/next.js +1 -1
- package/lodash/noop.js +1 -1
- package/lodash/now.js +1 -1
- package/lodash/nth.js +1 -1
- package/lodash/nthArg.js +1 -1
- package/lodash/number.default.js +1 -1
- package/lodash/number.js +1 -1
- package/lodash/object.default.js +1 -1
- package/lodash/object.js +1 -1
- package/lodash/omit.js +1 -1
- package/lodash/omitBy.js +1 -1
- package/lodash/once.js +1 -1
- package/lodash/orderBy.js +1 -1
- package/lodash/over.js +1 -1
- package/lodash/overArgs.js +1 -1
- package/lodash/overEvery.js +1 -1
- package/lodash/overSome.js +1 -1
- package/lodash/pad.js +1 -1
- package/lodash/padEnd.js +1 -1
- package/lodash/padStart.js +1 -1
- package/lodash/parseInt.js +1 -1
- package/lodash/partial.js +1 -1
- package/lodash/partialRight.js +1 -1
- package/lodash/partition.js +1 -1
- package/lodash/pick.js +1 -1
- package/lodash/pickBy.js +1 -1
- package/lodash/plant.js +1 -1
- package/lodash/property.js +1 -1
- package/lodash/propertyOf.js +1 -1
- package/lodash/pull.js +1 -1
- package/lodash/pullAll.js +1 -1
- package/lodash/pullAllBy.js +1 -1
- package/lodash/pullAllWith.js +1 -1
- package/lodash/pullAt.js +1 -1
- package/lodash/random.js +1 -1
- package/lodash/range.js +1 -1
- package/lodash/rangeRight.js +1 -1
- package/lodash/rearg.js +1 -1
- package/lodash/reduce.js +1 -1
- package/lodash/reduceRight.js +1 -1
- package/lodash/reject.js +1 -1
- package/lodash/remove.js +1 -1
- package/lodash/repeat.js +1 -1
- package/lodash/replace.js +1 -1
- package/lodash/rest.js +1 -1
- package/lodash/result.js +1 -1
- package/lodash/reverse.js +1 -1
- package/lodash/round.js +1 -1
- package/lodash/sample.js +1 -1
- package/lodash/sampleSize.js +1 -1
- package/lodash/seq.default.js +1 -1
- package/lodash/seq.js +1 -1
- package/lodash/set.js +1 -1
- package/lodash/setWith.js +1 -1
- package/lodash/shuffle.js +1 -1
- package/lodash/size.js +1 -1
- package/lodash/slice.js +1 -1
- package/lodash/snakeCase.js +1 -1
- package/lodash/some.js +1 -1
- package/lodash/sortBy.js +1 -1
- package/lodash/sortedIndex.js +1 -1
- package/lodash/sortedIndexBy.js +1 -1
- package/lodash/sortedIndexOf.js +1 -1
- package/lodash/sortedLastIndex.js +1 -1
- package/lodash/sortedLastIndexBy.js +1 -1
- package/lodash/sortedLastIndexOf.js +1 -1
- package/lodash/sortedUniq.js +1 -1
- package/lodash/sortedUniqBy.js +1 -1
- package/lodash/split.js +1 -1
- package/lodash/spread.js +1 -1
- package/lodash/startCase.js +1 -1
- package/lodash/startsWith.js +1 -1
- package/lodash/string.default.js +1 -1
- package/lodash/string.js +1 -1
- package/lodash/stubArray.js +1 -1
- package/lodash/stubFalse.js +1 -1
- package/lodash/stubObject.js +1 -1
- package/lodash/stubString.js +1 -1
- package/lodash/stubTrue.js +1 -1
- package/lodash/subtract.js +1 -1
- package/lodash/sum.js +1 -1
- package/lodash/sumBy.js +1 -1
- package/lodash/tail.js +1 -1
- package/lodash/take.js +1 -1
- package/lodash/takeRight.js +1 -1
- package/lodash/takeRightWhile.js +1 -1
- package/lodash/takeWhile.js +1 -1
- package/lodash/tap.js +1 -1
- package/lodash/template.js +1 -1
- package/lodash/templateSettings.js +1 -1
- package/lodash/throttle.js +1 -1
- package/lodash/thru.js +1 -1
- package/lodash/times.js +1 -1
- package/lodash/toArray.js +1 -1
- package/lodash/toFinite.js +1 -1
- package/lodash/toInteger.js +1 -1
- package/lodash/toIterator.js +1 -1
- package/lodash/toJSON.js +1 -1
- package/lodash/toLength.js +1 -1
- package/lodash/toLower.js +1 -1
- package/lodash/toNumber.js +1 -1
- package/lodash/toPairs.js +1 -1
- package/lodash/toPairsIn.js +1 -1
- package/lodash/toPath.js +1 -1
- package/lodash/toPlainObject.js +1 -1
- package/lodash/toSafeInteger.js +1 -1
- package/lodash/toString.js +1 -1
- package/lodash/toUpper.js +1 -1
- package/lodash/transform.js +1 -1
- package/lodash/trim.js +1 -1
- package/lodash/trimEnd.js +1 -1
- package/lodash/trimStart.js +1 -1
- package/lodash/truncate.js +1 -1
- package/lodash/unary.js +1 -1
- package/lodash/unescape.js +1 -1
- package/lodash/union.js +1 -1
- package/lodash/unionBy.js +1 -1
- package/lodash/unionWith.js +1 -1
- package/lodash/uniq.js +1 -1
- package/lodash/uniqBy.js +1 -1
- package/lodash/uniqWith.js +1 -1
- package/lodash/uniqueId.js +1 -1
- package/lodash/unset.js +1 -1
- package/lodash/unzip.js +1 -1
- package/lodash/unzipWith.js +1 -1
- package/lodash/update.js +1 -1
- package/lodash/updateWith.js +1 -1
- package/lodash/upperCase.js +1 -1
- package/lodash/upperFirst.js +1 -1
- package/lodash/util.default.js +1 -1
- package/lodash/util.js +1 -1
- package/lodash/value.js +1 -1
- package/lodash/valueOf.js +1 -1
- package/lodash/values.js +1 -1
- package/lodash/valuesIn.js +1 -1
- package/lodash/without.js +1 -1
- package/lodash/words.js +1 -1
- package/lodash/wrap.js +1 -1
- package/lodash/wrapperAt.js +1 -1
- package/lodash/wrapperChain.js +1 -1
- package/lodash/wrapperLodash.js +1 -1
- package/lodash/wrapperReverse.js +1 -1
- package/lodash/wrapperValue.js +1 -1
- package/lodash/xor.js +1 -1
- package/lodash/xorBy.js +1 -1
- package/lodash/xorWith.js +1 -1
- package/lodash/zip.js +1 -1
- package/lodash/zipObject.js +1 -1
- package/lodash/zipObjectDeep.js +1 -1
- package/lodash/zipWith.js +1 -1
- package/math/index.js +1 -1
- package/md5/index.js +1 -1
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -1
- package/mousetrap/Mousetrap.d.ts +115 -0
- package/mousetrap/Mousetrap.js +261 -0
- package/mousetrap/index.d.ts +3 -0
- package/mousetrap/index.js +7 -0
- package/mousetrap/plugins/bind-dictionary/index.d.ts +1 -0
- package/mousetrap/plugins/global-bind/index.d.ts +1 -0
- package/mousetrap/plugins/pause/index.d.ts +1 -0
- package/mousetrap/plugins/record/index.d.ts +1 -0
- package/normalize-wheel/ExecutionEnvironment.js +1 -1
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
- package/normalize-wheel/index.js +1 -1
- package/normalize-wheel/isEventSupported.js +1 -1
- package/number-to-chinese/index.js +1 -1
- package/nzh/cn.js +1 -1
- package/nzh/hk.js +1 -1
- package/nzh/index.js +1 -1
- package/nzh/nzh.js +1 -1
- package/nzh/src/autoGet.js +1 -1
- package/nzh/src/index.js +1 -1
- package/nzh/src/langs/cn_b.js +1 -1
- package/nzh/src/langs/cn_s.js +1 -1
- package/nzh/src/langs/hk_b.js +1 -1
- package/nzh/src/langs/hk_s.js +1 -1
- package/nzh/src/utils.js +1 -1
- package/object/index.js +1 -1
- package/package.json +1 -1
- package/pinyin/index.js +1 -1
- package/pinyin/lib/common/constant.js +1 -1
- package/pinyin/lib/common/segmentit/AC.js +1 -1
- package/pinyin/lib/common/segmentit/TrieNode.js +1 -1
- package/pinyin/lib/common/segmentit/index.js +1 -1
- package/pinyin/lib/common/segmentit/max-probability.js +1 -1
- package/pinyin/lib/common/segmentit/min-tokenization.js +1 -1
- package/pinyin/lib/common/segmentit/reverse-max-match.js +1 -1
- package/pinyin/lib/common/utils.js +1 -1
- package/pinyin/lib/core/convert/index.js +1 -1
- package/pinyin/lib/core/custom/index.js +1 -1
- package/pinyin/lib/core/dict/index.js +1 -1
- package/pinyin/lib/core/html/index.js +1 -1
- package/pinyin/lib/core/match/index.js +1 -1
- package/pinyin/lib/core/pinyin/handle.js +1 -1
- package/pinyin/lib/core/pinyin/index.js +1 -1
- package/pinyin/lib/core/pinyin/middlewares.js +1 -1
- package/pinyin/lib/core/polyphonic/index.js +1 -1
- package/pinyin/lib/core/segment/index.js +1 -1
- package/pinyin/lib/core/segment/middlewares.js +1 -1
- package/pinyin/lib/core/traditional/index.js +1 -1
- package/pinyin/lib/data/dict1.js +1 -1
- package/pinyin/lib/data/dict2.js +1 -1
- package/pinyin/lib/data/dict3.js +1 -1
- package/pinyin/lib/data/dict4.js +1 -1
- package/pinyin/lib/data/dict5.js +1 -1
- package/pinyin/lib/data/special.js +1 -1
- package/pinyin/lib/data/surname.js +1 -1
- package/pinyin/lib/index.js +1 -1
- package/query-string/index.d.ts +55 -2
- package/query-string/index.js +264 -4
- package/random/address.js +1 -1
- package/random/constellation.js +1 -1
- package/random/image.js +1 -1
- package/random/index.js +1 -1
- package/random/licensePlate.js +1 -1
- package/random/name.js +1 -1
- package/random/number.js +1 -1
- package/random/text.js +1 -1
- package/random/time.js +1 -1
- package/random/web.js +1 -1
- package/sanitize-url/index.js +1 -1
- package/screenfull/index.js +1 -1
- package/sleep/index.js +1 -1
- package/snapdom/index.browser.js +1 -1
- package/snapdom/index.js +1 -1
- package/snapdom/src/api/preCache.d.ts +1 -1
- package/snapdom/src/api/preCache.js +1 -1
- package/snapdom/src/api/snapdom.js +6 -2
- package/snapdom/src/core/cache.js +2 -2
- package/snapdom/src/core/capture.js +1 -1
- package/snapdom/src/core/clone.js +119 -116
- package/snapdom/src/core/context.js +1 -1
- package/snapdom/src/core/plugins.d.ts +0 -5
- package/snapdom/src/core/plugins.js +2 -2
- package/snapdom/src/core/prepare.js +7 -7
- package/snapdom/src/exporters/download.js +1 -1
- package/snapdom/src/exporters/toBlob.js +1 -1
- package/snapdom/src/exporters/toCanvas.js +1 -1
- package/snapdom/src/exporters/toImg.js +1 -1
- package/snapdom/src/index.browser.js +1 -1
- package/snapdom/src/index.js +1 -1
- package/snapdom/src/modules/CSSVar.js +1 -1
- package/snapdom/src/modules/background.js +5 -5
- package/snapdom/src/modules/changeCSS.js +1 -1
- package/snapdom/src/modules/counter.d.ts +2 -34
- package/snapdom/src/modules/counter.js +1 -1
- package/snapdom/src/modules/fonts.js +34 -29
- package/snapdom/src/modules/iconFonts.js +49 -48
- package/snapdom/src/modules/images.js +1 -1
- package/snapdom/src/modules/lineClamp.js +1 -1
- package/snapdom/src/modules/pictureResolver.js +1 -1
- package/snapdom/src/modules/pseudo.d.ts +1 -1
- package/snapdom/src/modules/pseudo.js +59 -41
- package/snapdom/src/modules/rasterize.js +1 -1
- package/snapdom/src/modules/snapFetch.js +1 -1
- package/snapdom/src/modules/styles.js +75 -73
- package/snapdom/src/modules/svgDefs.js +1 -1
- package/snapdom/src/utils/browser.js +1 -1
- package/snapdom/src/utils/capture.helpers.js +1 -1
- package/snapdom/src/utils/clone.helpers.js +1 -1
- package/snapdom/src/utils/css.js +1 -1
- package/snapdom/src/utils/debug.js +1 -1
- package/snapdom/src/utils/helpers.js +1 -1
- package/snapdom/src/utils/image.js +6 -6
- package/snapdom/src/utils/index.js +1 -1
- package/snapdom/src/utils/prepare.helpers.js +1 -1
- package/snapdom/src/utils/transforms.helpers.js +68 -45
- package/string/chars.js +1 -1
- package/string/index.js +1 -1
- package/tinycolor/conversion.js +1 -1
- package/tinycolor/css-color-names.js +4 -3
- package/tinycolor/format-input.js +1 -1
- package/tinycolor/from-ratio.js +1 -1
- package/tinycolor/index.js +1 -1
- package/tinycolor/interfaces.js +1 -1
- package/tinycolor/public_api.js +1 -1
- package/tinycolor/random.js +1 -1
- package/tinycolor/readability.js +1 -1
- package/tinycolor/to-ms-filter.js +1 -1
- package/tinycolor/umd_api.js +1 -1
- package/tinycolor/utils.js +1 -1
- package/tree/index.js +1 -1
- package/tree/searchTree.js +1 -1
- package/tween/easing.js +1 -1
- package/tween/index.js +1 -1
- package/tween/tween.js +1 -1
- package/ui-color/compareColorByRange.js +1 -1
- package/ui-color/index.js +1 -1
- package/url-toolkit/index.js +1 -1
- package/validate/index.js +1 -1
- package/validate/interface.js +1 -1
- package/validate/locale/en-US.js +1 -1
- package/validate/locale/index.js +1 -1
- package/validate/locale/zh-CN.js +1 -1
- package/validate/rules/array.js +1 -1
- package/validate/rules/base.js +1 -1
- package/validate/rules/boolean.js +1 -1
- package/validate/rules/custom.js +1 -1
- package/validate/rules/number.js +1 -1
- package/validate/rules/object.js +1 -1
- package/validate/rules/string.js +1 -1
- package/validate/rules/type.js +1 -1
- package/version/index.js +1 -1
- package/xlsx/crc32.js +1 -1
- package/xlsx/index.js +1 -1
- package/xlsx/xlsx.js +1 -1
- package/pinyin-match/core.d.ts +0 -3
- package/pinyin-match/index.d.ts +0 -1
- package/pinyin-match/simplified.d.ts +0 -4
- package/pinyin-match/simplified_dict.d.ts +0 -408
- package/pinyin-match/traditional.d.ts +0 -4
- package/pinyin-match/traditional_dict.d.ts +0 -401
- package/query-string/LICENSE +0 -20
- package/query-string/base.d.ts +0 -11
- package/query-string/base.js +0 -255
- package/query-string/splitOnFirst.d.ts +0 -1
- package/query-string/splitOnFirst.js +0 -12
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
import e from "../utils.js";
|
|
3
|
+
import t from "./align.js";
|
|
4
|
+
//#region utils/dom-align/align/alignPoint.js
|
|
5
|
+
function n(n, r, i) {
|
|
6
|
+
let a, o, s = e.getDocument(n), c = s.defaultView || s.parentWindow, l = e.getWindowScrollLeft(c), u = e.getWindowScrollTop(c), d = e.viewportWidth(c), f = e.viewportHeight(c);
|
|
7
|
+
a = "pageX" in r ? r.pageX : l + r.clientX, o = "pageY" in r ? r.pageY : u + r.clientY;
|
|
8
|
+
let p = {
|
|
9
|
+
left: a,
|
|
10
|
+
top: o,
|
|
11
|
+
width: 0,
|
|
12
|
+
height: 0
|
|
13
|
+
}, m = a >= 0 && a <= l + d && o >= 0 && o <= u + f, h = [i.points[0], "cc"];
|
|
14
|
+
return t(n, p, {
|
|
15
|
+
...i,
|
|
16
|
+
points: h
|
|
17
|
+
}, m);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { n as default };
|
|
21
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
//#region utils/dom-align/getAlignOffset.js
|
|
3
|
+
function e(e, t) {
|
|
4
|
+
let n = t.charAt(0), r = t.charAt(1), i = e.width, a = e.height, o = e.left, s = e.top;
|
|
5
|
+
return n === "c" ? s += a / 2 : n === "b" && (s += a), r === "c" ? o += i / 2 : r === "r" && (o += i), {
|
|
6
|
+
left: o,
|
|
7
|
+
top: s
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as default };
|
|
12
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
import e from "./getAlignOffset.js";
|
|
3
|
+
//#region utils/dom-align/getElFuturePos.js
|
|
4
|
+
function t(t, n, r, i, a) {
|
|
5
|
+
let o = e(n, r[1]), s = e(t, r[0]), c = [s.left - o.left, s.top - o.top];
|
|
6
|
+
return {
|
|
7
|
+
left: Math.round(t.left - c[0] + i[0] - a[0]),
|
|
8
|
+
top: Math.round(t.top - c[1] + i[1] - a[1])
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as default };
|
|
13
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
import e from "./utils.js";
|
|
3
|
+
//#region utils/dom-align/getOffsetParent.js
|
|
4
|
+
var { getParent: t } = e;
|
|
5
|
+
function n(n) {
|
|
6
|
+
if (e.isWindow(n) || n.nodeType === 9) return null;
|
|
7
|
+
let r = e.getDocument(n).body, i, a = e.css(n, "position");
|
|
8
|
+
if (!(a === "fixed" || a === "absolute")) return n.nodeName.toLowerCase() === "html" ? null : t(n);
|
|
9
|
+
for (i = t(n); i && i !== r && i.nodeType !== 9; i = t(i)) if (a = e.css(i, "position"), a !== "static") return i;
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as default };
|
|
14
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
import e from "./utils.js";
|
|
3
|
+
//#region utils/dom-align/getRegion.js
|
|
4
|
+
function t(t) {
|
|
5
|
+
let n, r, i;
|
|
6
|
+
if (!e.isWindow(t) && t.nodeType !== 9) n = e.offset(t), r = e.outerWidth(t), i = e.outerHeight(t);
|
|
7
|
+
else {
|
|
8
|
+
let a = e.getWindow(t);
|
|
9
|
+
n = {
|
|
10
|
+
left: e.getWindowScrollLeft(a),
|
|
11
|
+
top: e.getWindowScrollTop(a)
|
|
12
|
+
}, r = e.viewportWidth(a), i = e.viewportHeight(a);
|
|
13
|
+
}
|
|
14
|
+
return n.width = r, n.height = i, n;
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { t as default };
|
|
18
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
import e from "./utils.js";
|
|
3
|
+
import t from "./getOffsetParent.js";
|
|
4
|
+
import n from "./isAncestorFixed.js";
|
|
5
|
+
//#region utils/dom-align/getVisibleRectForElement.js
|
|
6
|
+
function r(r, i) {
|
|
7
|
+
let a = {
|
|
8
|
+
left: 0,
|
|
9
|
+
right: Infinity,
|
|
10
|
+
top: 0,
|
|
11
|
+
bottom: Infinity
|
|
12
|
+
}, o = t(r), s = e.getDocument(r), c = s.defaultView || s.parentWindow, l = s.body, u = s.documentElement;
|
|
13
|
+
for (; o;) {
|
|
14
|
+
if ((navigator.userAgent.indexOf("MSIE") === -1 || o.clientWidth !== 0) && o !== l && o !== u && e.css(o, "overflow") !== "visible") {
|
|
15
|
+
let t = e.offset(o);
|
|
16
|
+
t.left += o.clientLeft, t.top += o.clientTop, a.top = Math.max(a.top, t.top), a.right = Math.min(a.right, t.left + o.clientWidth), a.bottom = Math.min(a.bottom, t.top + o.clientHeight), a.left = Math.max(a.left, t.left);
|
|
17
|
+
} else if (o === l || o === u) break;
|
|
18
|
+
o = t(o);
|
|
19
|
+
}
|
|
20
|
+
let d = null;
|
|
21
|
+
!e.isWindow(r) && r.nodeType !== 9 && (d = r.style.position, e.css(r, "position") === "absolute" && (r.style.position = "fixed"));
|
|
22
|
+
let f = e.getWindowScrollLeft(c), p = e.getWindowScrollTop(c), m = e.viewportWidth(c), h = e.viewportHeight(c), g = u.scrollWidth, _ = u.scrollHeight, v = window.getComputedStyle(l);
|
|
23
|
+
if (v.overflowX === "hidden" && (g = c.innerWidth), v.overflowY === "hidden" && (_ = c.innerHeight), r.style && (r.style.position = d), i || n(r)) a.left = Math.max(a.left, f), a.top = Math.max(a.top, p), a.right = Math.min(a.right, f + m), a.bottom = Math.min(a.bottom, p + h);
|
|
24
|
+
else {
|
|
25
|
+
let e = Math.max(g, f + m);
|
|
26
|
+
a.right = Math.min(a.right, e);
|
|
27
|
+
let t = Math.max(_, p + h);
|
|
28
|
+
a.bottom = Math.min(a.bottom, t);
|
|
29
|
+
}
|
|
30
|
+
return a.top >= 0 && a.left >= 0 && a.bottom > a.top && a.right > a.left ? a : null;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
export { r as default };
|
|
34
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
import e from "./align/alignElement.js";
|
|
3
|
+
import t from "./align/alignPoint.js";
|
|
4
|
+
//#region utils/dom-align/index.js
|
|
5
|
+
var n = e;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { e as alignElement, t as alignPoint, n as default };
|
|
8
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function isAncestorFixed(element: any): boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
import e from "./utils.js";
|
|
3
|
+
//#region utils/dom-align/isAncestorFixed.js
|
|
4
|
+
var { getParent: t } = e;
|
|
5
|
+
function n(n) {
|
|
6
|
+
if (e.isWindow(n) || n.nodeType === 9) return !1;
|
|
7
|
+
let r = e.getDocument(n), i = r.body, a = null;
|
|
8
|
+
for (a = t(n); a && a !== i && a !== r; a = t(a)) if (e.css(a, "position") === "fixed") return !0;
|
|
9
|
+
return !1;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as default };
|
|
13
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function getTransformName(): string;
|
|
2
|
+
export function setTransitionProperty(node: any, value: any): void;
|
|
3
|
+
export function getTransitionProperty(node: any): any;
|
|
4
|
+
export function getTransformXY(node: any): {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
};
|
|
8
|
+
export function setTransformXY(node: any, xy: any): void;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
//#region utils/dom-align/propertyUtils.js
|
|
3
|
+
var e, t = {
|
|
4
|
+
Webkit: "-webkit-",
|
|
5
|
+
Moz: "-moz-",
|
|
6
|
+
ms: "-ms-",
|
|
7
|
+
O: "-o-"
|
|
8
|
+
};
|
|
9
|
+
function n() {
|
|
10
|
+
if (e !== void 0) return e;
|
|
11
|
+
e = "";
|
|
12
|
+
let n = document.createElement("p").style;
|
|
13
|
+
for (let r in t) r + "Transform" in n && (e = r);
|
|
14
|
+
return e;
|
|
15
|
+
}
|
|
16
|
+
function r() {
|
|
17
|
+
return n() ? `${n()}TransitionProperty` : "transitionProperty";
|
|
18
|
+
}
|
|
19
|
+
function i() {
|
|
20
|
+
return n() ? `${n()}Transform` : "transform";
|
|
21
|
+
}
|
|
22
|
+
function a(e, t) {
|
|
23
|
+
let n = r();
|
|
24
|
+
n && (e.style[n] = t, n !== "transitionProperty" && (e.style.transitionProperty = t));
|
|
25
|
+
}
|
|
26
|
+
function o(e, t) {
|
|
27
|
+
let n = i();
|
|
28
|
+
n && (e.style[n] = t, n !== "transform" && (e.style.transform = t));
|
|
29
|
+
}
|
|
30
|
+
function s(e) {
|
|
31
|
+
return e.style.transitionProperty || e.style[r()];
|
|
32
|
+
}
|
|
33
|
+
function c(e) {
|
|
34
|
+
let t = window.getComputedStyle(e, null), n = t.getPropertyValue("transform") || t.getPropertyValue(i());
|
|
35
|
+
if (n && n !== "none") {
|
|
36
|
+
let e = n.replace(/[^0-9\-.,]/g, "").split(",");
|
|
37
|
+
return {
|
|
38
|
+
x: parseFloat(e[12] || e[4], 0),
|
|
39
|
+
y: parseFloat(e[13] || e[5], 0)
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
x: 0,
|
|
44
|
+
y: 0
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
var l = /matrix\((.*)\)/, u = /matrix3d\((.*)\)/;
|
|
48
|
+
function d(e, t) {
|
|
49
|
+
let n = window.getComputedStyle(e, null), r = n.getPropertyValue("transform") || n.getPropertyValue(i());
|
|
50
|
+
if (r && r !== "none") {
|
|
51
|
+
let n, i = r.match(l);
|
|
52
|
+
i ? (i = i[1], n = i.split(",").map((e) => parseFloat(e, 10)), n[4] = t.x, n[5] = t.y, o(e, `matrix(${n.join(",")})`)) : (n = r.match(u)[1].split(",").map((e) => parseFloat(e, 10)), n[12] = t.x, n[13] = t.y, o(e, `matrix3d(${n.join(",")})`));
|
|
53
|
+
} else o(e, `translateX(${t.x}px) translateY(${t.y}px) translateZ(0)`);
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { i as getTransformName, c as getTransformXY, s as getTransitionProperty, d as setTransformXY, a as setTransitionProperty };
|
|
57
|
+
/* 独立思考,明辨是非 */
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default utils;
|
|
2
|
+
declare namespace utils {
|
|
3
|
+
export function getWindow(node: any): any;
|
|
4
|
+
export { getDocument };
|
|
5
|
+
export function offset(el: any, value: any, option: any): {
|
|
6
|
+
left: number;
|
|
7
|
+
top: number;
|
|
8
|
+
} | undefined;
|
|
9
|
+
export { isWindow };
|
|
10
|
+
export { each };
|
|
11
|
+
export { css };
|
|
12
|
+
export function clone(obj: any): {};
|
|
13
|
+
export { mix };
|
|
14
|
+
export function getWindowScrollLeft(w: any): any;
|
|
15
|
+
export function getWindowScrollTop(w: any): any;
|
|
16
|
+
export function merge(...args: any[]): {};
|
|
17
|
+
export let viewportWidth: number;
|
|
18
|
+
export let viewportHeight: number;
|
|
19
|
+
}
|
|
20
|
+
declare function getDocument(node: any): any;
|
|
21
|
+
/**
|
|
22
|
+
* A crude way of determining if an object is a window
|
|
23
|
+
* @member util
|
|
24
|
+
*/
|
|
25
|
+
declare function isWindow(obj: any): boolean;
|
|
26
|
+
declare function each(arr: any, fn: any): void;
|
|
27
|
+
declare function css(el: any, name: any, v: any): any;
|
|
28
|
+
declare function mix(to: any, from: any): any;
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
/* 潘启宝 2026-06-02 15:43:04 星期二 山东省济南市 */
|
|
2
|
+
import { getTransformName as e, getTransformXY as t, getTransitionProperty as n, setTransformXY as r, setTransitionProperty as i } from "./propertyUtils.js";
|
|
3
|
+
//#region utils/dom-align/utils.js
|
|
4
|
+
var a = "[-+]?(?:\\d*\\.|)\\d+(?:[eE][-+]?\\d+|)", o;
|
|
5
|
+
function s(e) {
|
|
6
|
+
let t = e.style.display;
|
|
7
|
+
e.style.display = "none", e.offsetHeight, e.style.display = t;
|
|
8
|
+
}
|
|
9
|
+
var c = Object.prototype.hasOwnProperty;
|
|
10
|
+
function l(e, t, n) {
|
|
11
|
+
let r = n;
|
|
12
|
+
if (typeof t == "object") {
|
|
13
|
+
for (let n in t) c.call(t, n) && l(e, n, t[n]);
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
if (r !== void 0) {
|
|
17
|
+
typeof r == "number" && (r = `${r}px`), e.style[t] = r;
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
return o(e, t);
|
|
21
|
+
}
|
|
22
|
+
function u(e) {
|
|
23
|
+
let t, n, r, i = e.ownerDocument, a = i.body, o = i && i.documentElement;
|
|
24
|
+
return t = e.getBoundingClientRect(), n = Math.floor(t.left), r = Math.floor(t.top), n -= o.clientLeft || a.clientLeft || 0, r -= o.clientTop || a.clientTop || 0, {
|
|
25
|
+
left: n,
|
|
26
|
+
top: r
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function d(e, t) {
|
|
30
|
+
let n = e[`page${t ? "Y" : "X"}Offset`], r = `scroll${t ? "Top" : "Left"}`;
|
|
31
|
+
if (typeof n != "number") {
|
|
32
|
+
let t = e.document;
|
|
33
|
+
n = t.documentElement[r], typeof n != "number" && (n = t.body[r]);
|
|
34
|
+
}
|
|
35
|
+
return n;
|
|
36
|
+
}
|
|
37
|
+
function f(e) {
|
|
38
|
+
return d(e);
|
|
39
|
+
}
|
|
40
|
+
function p(e) {
|
|
41
|
+
return d(e, !0);
|
|
42
|
+
}
|
|
43
|
+
function m(e) {
|
|
44
|
+
let t = u(e), n = e.ownerDocument, r = n.defaultView || n.parentWindow;
|
|
45
|
+
return t.left += f(r), t.top += p(r), t;
|
|
46
|
+
}
|
|
47
|
+
function h(e) {
|
|
48
|
+
return e != null && e == e.window;
|
|
49
|
+
}
|
|
50
|
+
function g(e) {
|
|
51
|
+
return h(e) ? e.document : e.nodeType === 9 ? e : e.ownerDocument;
|
|
52
|
+
}
|
|
53
|
+
function _(e, t, n) {
|
|
54
|
+
let r = n, i = "", a = g(e);
|
|
55
|
+
return r ||= a.defaultView.getComputedStyle(e, null), r && (i = r.getPropertyValue(t) || r[t]), i;
|
|
56
|
+
}
|
|
57
|
+
var v = RegExp(`^(${a})(?!px)[a-z%]+$`, "i"), y = /^(top|right|bottom|left)$/, b = "currentStyle", x = "runtimeStyle", S = "left", C = "px";
|
|
58
|
+
function w(e, t) {
|
|
59
|
+
let n = e[b] && e[b][t];
|
|
60
|
+
if (v.test(n) && !y.test(t)) {
|
|
61
|
+
let r = e.style, i = r[S], a = e[x][S];
|
|
62
|
+
e[x][S] = e[b][S], r[S] = t === "fontSize" ? "1em" : n || 0, n = r.pixelLeft + C, r[S] = i, e[x][S] = a;
|
|
63
|
+
}
|
|
64
|
+
return n === "" ? "auto" : n;
|
|
65
|
+
}
|
|
66
|
+
typeof window < "u" && (o = window.getComputedStyle ? _ : w);
|
|
67
|
+
function T(e, t) {
|
|
68
|
+
return e === "left" ? t.useCssRight ? "right" : e : t.useCssBottom ? "bottom" : e;
|
|
69
|
+
}
|
|
70
|
+
function E(e) {
|
|
71
|
+
if (e === "left") return "right";
|
|
72
|
+
if (e === "right") return "left";
|
|
73
|
+
if (e === "top") return "bottom";
|
|
74
|
+
if (e === "bottom") return "top";
|
|
75
|
+
}
|
|
76
|
+
function D(e, t, r) {
|
|
77
|
+
l(e, "position") === "static" && (e.style.position = "relative");
|
|
78
|
+
let a = -999, o = -999, u = T("left", r), d = T("top", r), f = E(u), p = E(d);
|
|
79
|
+
u !== "left" && (a = 999), d !== "top" && (o = 999);
|
|
80
|
+
let h = "", g = m(e);
|
|
81
|
+
("left" in t || "top" in t) && (h = n(e) || "", i(e, "none")), "left" in t && (e.style[f] = "", e.style[u] = `${a}px`), "top" in t && (e.style[p] = "", e.style[d] = `${o}px`), s(e);
|
|
82
|
+
let _ = m(e), v = {};
|
|
83
|
+
for (let e in t) if (c.call(t, e)) {
|
|
84
|
+
let t = T(e, r), n = e === "left" ? a : o, i = g[e] - _[e];
|
|
85
|
+
t === e ? v[t] = n + i : v[t] = n - i;
|
|
86
|
+
}
|
|
87
|
+
l(e, v), s(e), ("left" in t || "top" in t) && i(e, h);
|
|
88
|
+
let y = {};
|
|
89
|
+
for (let e in t) if (c.call(t, e)) {
|
|
90
|
+
let n = T(e, r), i = t[e] - g[e];
|
|
91
|
+
e === n ? y[n] = v[n] + i : y[n] = v[n] - i;
|
|
92
|
+
}
|
|
93
|
+
l(e, y);
|
|
94
|
+
}
|
|
95
|
+
function O(e, n) {
|
|
96
|
+
let i = m(e), a = t(e), o = {
|
|
97
|
+
x: a.x,
|
|
98
|
+
y: a.y
|
|
99
|
+
};
|
|
100
|
+
"left" in n && (o.x = a.x + n.left - i.left), "top" in n && (o.y = a.y + n.top - i.top), r(e, o);
|
|
101
|
+
}
|
|
102
|
+
function k(t, n, r) {
|
|
103
|
+
if (r.ignoreShake) {
|
|
104
|
+
let e = m(t), r = e.left.toFixed(0), i = e.top.toFixed(0), a = n.left.toFixed(0), o = n.top.toFixed(0);
|
|
105
|
+
if (r === a && i === o) return;
|
|
106
|
+
}
|
|
107
|
+
r.useCssRight || r.useCssBottom ? D(t, n, r) : r.useCssTransform && e() in document.body.style ? O(t, n, r) : D(t, n, r);
|
|
108
|
+
}
|
|
109
|
+
function A(e, t) {
|
|
110
|
+
for (let n = 0; n < e.length; n++) t(e[n]);
|
|
111
|
+
}
|
|
112
|
+
function j(e) {
|
|
113
|
+
return o(e, "boxSizing") === "border-box";
|
|
114
|
+
}
|
|
115
|
+
var M = [
|
|
116
|
+
"margin",
|
|
117
|
+
"border",
|
|
118
|
+
"padding"
|
|
119
|
+
], N = -1, P = 2, F = 1, I = 0;
|
|
120
|
+
function L(e, t, n) {
|
|
121
|
+
let r = {}, i = e.style, a;
|
|
122
|
+
for (a in t) c.call(t, a) && (r[a] = i[a], i[a] = t[a]);
|
|
123
|
+
for (a in n.call(e), t) c.call(t, a) && (i[a] = r[a]);
|
|
124
|
+
}
|
|
125
|
+
function R(e, t, n) {
|
|
126
|
+
let r = 0, i, a, s;
|
|
127
|
+
for (a = 0; a < t.length; a++) if (i = t[a], i) for (s = 0; s < n.length; s++) {
|
|
128
|
+
let t;
|
|
129
|
+
t = i === "border" ? `${i}${n[s]}Width` : i + n[s], r += parseFloat(o(e, t)) || 0;
|
|
130
|
+
}
|
|
131
|
+
return r;
|
|
132
|
+
}
|
|
133
|
+
var z = { getParent(e) {
|
|
134
|
+
let t = e;
|
|
135
|
+
do
|
|
136
|
+
t = t.nodeType === 11 && t.host ? t.host : t.parentNode;
|
|
137
|
+
while (t && t.nodeType !== 1 && t.nodeType !== 9);
|
|
138
|
+
return t;
|
|
139
|
+
} };
|
|
140
|
+
A(["Width", "Height"], (e) => {
|
|
141
|
+
z[`doc${e}`] = (t) => {
|
|
142
|
+
let n = t.document;
|
|
143
|
+
return Math.max(n.documentElement[`scroll${e}`], n.body[`scroll${e}`], z[`viewport${e}`](n));
|
|
144
|
+
}, z[`viewport${e}`] = (t) => {
|
|
145
|
+
let n = `client${e}`, r = t.document, i = r.body, a = r.documentElement[n];
|
|
146
|
+
return r.compatMode === "CSS1Compat" && a || i && i[n] || a;
|
|
147
|
+
};
|
|
148
|
+
});
|
|
149
|
+
function B(e, t, n) {
|
|
150
|
+
let r = n;
|
|
151
|
+
if (h(e)) return t === "width" ? z.viewportWidth(e) : z.viewportHeight(e);
|
|
152
|
+
if (e.nodeType === 9) return t === "width" ? z.docWidth(e) : z.docHeight(e);
|
|
153
|
+
let i = t === "width" ? ["Left", "Right"] : ["Top", "Bottom"], a = Math.floor(t === "width" ? e.getBoundingClientRect().width : e.getBoundingClientRect().height), s = j(e), c = 0;
|
|
154
|
+
(a == null || a <= 0) && (a = void 0, c = o(e, t), (c == null || Number(c) < 0) && (c = e.style[t] || 0), c = Math.floor(parseFloat(c)) || 0), r === void 0 && (r = s ? F : N);
|
|
155
|
+
let l = a !== void 0 || s, u = a || c;
|
|
156
|
+
return r === N ? l ? u - R(e, ["border", "padding"], i) : c : l ? r === F ? u : u + (r === P ? -R(e, ["border"], i) : R(e, ["margin"], i)) : c + R(e, M.slice(r), i);
|
|
157
|
+
}
|
|
158
|
+
var V = {
|
|
159
|
+
position: "absolute",
|
|
160
|
+
visibility: "hidden",
|
|
161
|
+
display: "block"
|
|
162
|
+
};
|
|
163
|
+
function H(...e) {
|
|
164
|
+
let t, n = e[0];
|
|
165
|
+
return n.offsetWidth === 0 ? L(n, V, () => {
|
|
166
|
+
t = B.apply(void 0, e);
|
|
167
|
+
}) : t = B.apply(void 0, e), t;
|
|
168
|
+
}
|
|
169
|
+
A(["width", "height"], (e) => {
|
|
170
|
+
let t = e.charAt(0).toUpperCase() + e.slice(1);
|
|
171
|
+
z[`outer${t}`] = (t, n) => t && H(t, e, n ? I : F);
|
|
172
|
+
let n = e === "width" ? ["Left", "Right"] : ["Top", "Bottom"];
|
|
173
|
+
z[e] = (t, r) => {
|
|
174
|
+
let i = r;
|
|
175
|
+
return i === void 0 ? t && H(t, e, N) : t ? (j(t) && (i += R(t, ["padding", "border"], n)), l(t, e, i)) : void 0;
|
|
176
|
+
};
|
|
177
|
+
});
|
|
178
|
+
function U(e, t) {
|
|
179
|
+
for (let n in t) c.call(t, n) && (e[n] = t[n]);
|
|
180
|
+
return e;
|
|
181
|
+
}
|
|
182
|
+
var W = {
|
|
183
|
+
getWindow(e) {
|
|
184
|
+
if (e && e.document && e.setTimeout) return e;
|
|
185
|
+
let t = e.ownerDocument || e;
|
|
186
|
+
return t.defaultView || t.parentWindow;
|
|
187
|
+
},
|
|
188
|
+
getDocument: g,
|
|
189
|
+
offset(e, t, n) {
|
|
190
|
+
if (t !== void 0) k(e, t, n || {});
|
|
191
|
+
else return m(e);
|
|
192
|
+
},
|
|
193
|
+
isWindow: h,
|
|
194
|
+
each: A,
|
|
195
|
+
css: l,
|
|
196
|
+
clone(e) {
|
|
197
|
+
let t, n = {};
|
|
198
|
+
for (t in e) c.call(e, t) && (n[t] = e[t]);
|
|
199
|
+
if (e.overflow) for (t in e) c.call(e, t) && (n.overflow[t] = e.overflow[t]);
|
|
200
|
+
return n;
|
|
201
|
+
},
|
|
202
|
+
mix: U,
|
|
203
|
+
getWindowScrollLeft(e) {
|
|
204
|
+
return f(e);
|
|
205
|
+
},
|
|
206
|
+
getWindowScrollTop(e) {
|
|
207
|
+
return p(e);
|
|
208
|
+
},
|
|
209
|
+
merge(...e) {
|
|
210
|
+
let t = {};
|
|
211
|
+
for (let n = 0; n < e.length; n++) W.mix(t, e[n]);
|
|
212
|
+
return t;
|
|
213
|
+
},
|
|
214
|
+
viewportWidth: 0,
|
|
215
|
+
viewportHeight: 0
|
|
216
|
+
};
|
|
217
|
+
U(W, z);
|
|
218
|
+
//#endregion
|
|
219
|
+
export { W as default };
|
|
220
|
+
/* 独立思考,明辨是非 */
|
package/dom-helpers/addClass.js
CHANGED
package/dom-helpers/animate.js
CHANGED
package/dom-helpers/attribute.js
CHANGED
package/dom-helpers/camelize.js
CHANGED
package/dom-helpers/canUseDOM.js
CHANGED
package/dom-helpers/clear.js
CHANGED
package/dom-helpers/closest.js
CHANGED
package/dom-helpers/contains.js
CHANGED
package/dom-helpers/css.js
CHANGED