react-native-reanimated 4.0.2 → 4.1.0-jsx-fix
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/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.cpp +3 -3
- package/Common/cpp/reanimated/AnimatedSensor/AnimatedSensorModule.h +1 -1
- package/Common/cpp/reanimated/CSS/common/definitions.h +0 -2
- package/Common/cpp/reanimated/CSS/common/{Quaternion.cpp → transforms/Quaternion.cpp} +1 -1
- package/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix.h +148 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.cpp +259 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix2D.h +59 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.cpp +581 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformMatrix3D.h +86 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformOp.cpp +49 -0
- package/Common/cpp/reanimated/CSS/common/transforms/TransformOp.h +29 -0
- package/Common/cpp/reanimated/CSS/common/{vectors.cpp → transforms/vectors.cpp} +66 -1
- package/Common/cpp/reanimated/CSS/common/{vectors.h → transforms/vectors.h} +24 -0
- package/Common/cpp/reanimated/CSS/common/values/CSSAngle.cpp +16 -1
- package/Common/cpp/reanimated/CSS/common/values/CSSAngle.h +5 -0
- package/Common/cpp/reanimated/CSS/common/values/CSSColor.cpp +63 -45
- package/Common/cpp/reanimated/CSS/common/values/CSSColor.h +9 -0
- package/Common/cpp/reanimated/CSS/common/values/{CSSDimension.cpp → CSSLength.cpp} +27 -32
- package/Common/cpp/reanimated/CSS/common/values/{CSSDimension.h → CSSLength.h} +11 -13
- package/Common/cpp/reanimated/CSS/common/values/CSSValueVariant.h +2 -2
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSAnimationConfig.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSAnimationConfig.h +2 -2
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSKeyframesConfig.cpp +11 -10
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSKeyframesConfig.h +2 -9
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSTransitionConfig.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{config → configs}/CSSTransitionConfig.h +1 -1
- package/Common/cpp/reanimated/CSS/{config → configs}/common.cpp +1 -1
- package/Common/cpp/reanimated/CSS/configs/interpolators/base/common.h +138 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/base/image.h +15 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/base/text.h +51 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/base/view.h +77 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/constants.h +13 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/registry.cpp +39 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/registry.h +28 -0
- package/Common/cpp/reanimated/CSS/configs/interpolators/utils.h +20 -0
- package/Common/cpp/reanimated/CSS/core/CSSAnimation.cpp +5 -7
- package/Common/cpp/reanimated/CSS/core/CSSAnimation.h +6 -7
- package/Common/cpp/reanimated/CSS/core/CSSTransition.cpp +5 -3
- package/Common/cpp/reanimated/CSS/core/CSSTransition.h +2 -2
- package/Common/cpp/reanimated/CSS/easing/linear.h +1 -1
- package/Common/cpp/reanimated/CSS/easing/steps.h +1 -1
- package/Common/cpp/reanimated/CSS/interpolation/InterpolatorFactory.cpp +2 -2
- package/Common/cpp/reanimated/CSS/interpolation/PropertyInterpolator.h +3 -1
- package/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.cpp +19 -11
- package/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.h +2 -2
- package/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.cpp +30 -20
- package/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.h +2 -2
- package/Common/cpp/reanimated/CSS/interpolation/styles/AnimationStyleInterpolator.h +9 -3
- package/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.cpp +8 -5
- package/Common/cpp/reanimated/CSS/interpolation/styles/TransitionStyleInterpolator.h +3 -1
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformInterpolator.h +2 -3
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.cpp +120 -393
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperation.h +29 -155
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.cpp +4 -4
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.h +3 -2
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.cpp +32 -10
- package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformsStyleInterpolator.h +7 -4
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.cpp +136 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/matrix.h +29 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/perspective.h +25 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/rotate.h +47 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/scale.h +51 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/skew.h +29 -0
- package/Common/cpp/reanimated/CSS/interpolation/transforms/operations/translate.h +40 -0
- package/Common/cpp/reanimated/CSS/interpolation/values/ResolvableValueInterpolator.h +1 -1
- package/Common/cpp/reanimated/CSS/interpolation/values/ValueInterpolator.h +5 -5
- package/Common/cpp/reanimated/CSS/misc/ViewStylesRepository.h +1 -1
- package/Common/cpp/reanimated/CSS/progress/AnimationProgressProvider.h +2 -2
- package/Common/cpp/reanimated/CSS/progress/TransitionProgressProvider.h +2 -2
- package/Common/cpp/reanimated/CSS/{registry → registries}/CSSAnimationsRegistry.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{registry → registries}/CSSAnimationsRegistry.h +3 -3
- package/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.cpp +47 -0
- package/Common/cpp/reanimated/CSS/registries/CSSKeyframesRegistry.h +38 -0
- package/Common/cpp/reanimated/CSS/{registry → registries}/CSSTransitionsRegistry.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{registry → registries}/CSSTransitionsRegistry.h +3 -3
- package/Common/cpp/reanimated/CSS/{registry → registries}/StaticPropsRegistry.cpp +1 -1
- package/Common/cpp/reanimated/CSS/svg/configs/init.cpp +15 -0
- package/Common/cpp/reanimated/CSS/svg/configs/init.h +15 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/circle.h +16 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/common.h +65 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/ellipse.h +18 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/line.h +17 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/path.h +12 -0
- package/Common/cpp/reanimated/CSS/svg/configs/interpolators/rect.h +19 -0
- package/Common/cpp/reanimated/CSS/svg/values/SVGLength.cpp +107 -0
- package/Common/cpp/reanimated/CSS/svg/values/SVGLength.h +36 -0
- package/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.cpp +119 -0
- package/Common/cpp/reanimated/CSS/svg/values/SVGStrokeDashArray.h +36 -0
- package/Common/cpp/reanimated/CSS/{util → utils}/DelayedItemsManager.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{util → utils}/algorithms.cpp +1 -1
- package/Common/cpp/reanimated/CSS/{util → utils}/interpolators.cpp +1 -1
- package/Common/cpp/reanimated/CSS/utils/keyframes.cpp +52 -0
- package/Common/cpp/reanimated/CSS/utils/keyframes.h +15 -0
- package/Common/cpp/reanimated/CSS/{util → utils}/props.cpp +7 -4
- package/Common/cpp/reanimated/CSS/{util → utils}/props.h +4 -2
- package/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.cpp +11 -5
- package/Common/cpp/reanimated/Fabric/updates/UpdatesRegistryManager.h +4 -2
- package/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.cpp +2 -2
- package/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsManager.h +7 -7
- package/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.cpp +2 -42
- package/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsProxy.h +0 -4
- package/Common/cpp/reanimated/LayoutAnimations/LayoutAnimationsUtils.cpp +0 -5
- package/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.cpp +52 -27
- package/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.h +15 -7
- package/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.cpp +16 -4
- package/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxySpec.h +8 -2
- package/Common/cpp/reanimated/Tools/FeatureFlags.h +2 -2
- package/Common/cpp/reanimated/Tools/ReanimatedVersion.cpp +9 -54
- package/Common/cpp/reanimated/Tools/ReanimatedVersion.h +0 -1
- package/README.md +1 -0
- package/android/CMakeLists.txt +12 -10
- package/android/build.gradle +18 -8
- package/compatibility.json +62 -0
- package/lib/module/Animated.js +7 -71
- package/lib/module/Animated.js.map +1 -1
- package/lib/module/Bezier.js +1 -1
- package/lib/module/Bezier.js.map +1 -1
- package/lib/module/Colors.js +4 -5
- package/lib/module/Colors.js.map +1 -1
- package/lib/module/ConfigHelper.js +1 -1
- package/lib/module/ConfigHelper.js.map +1 -1
- package/lib/module/Easing.js +1 -5
- package/lib/module/Easing.js.map +1 -1
- package/lib/module/PropAdapters.js +1 -1
- package/lib/module/PropAdapters.js.map +1 -1
- package/lib/module/ReanimatedModule/NativeReanimated.js +15 -9
- package/lib/module/ReanimatedModule/NativeReanimated.js.map +1 -1
- package/lib/module/ReanimatedModule/index.web.js +1 -1
- package/lib/module/ReanimatedModule/index.web.js.map +1 -1
- package/lib/module/ReanimatedModule/js-reanimated/JSReanimated.js +13 -9
- package/lib/module/ReanimatedModule/js-reanimated/JSReanimated.js.map +1 -1
- package/lib/module/ReanimatedModule/js-reanimated/index.js +2 -13
- package/lib/module/ReanimatedModule/js-reanimated/index.js.map +1 -1
- package/lib/module/ReanimatedModule/reanimatedModuleInstance.js +3 -3
- package/lib/module/ReanimatedModule/reanimatedModuleInstance.js.map +1 -1
- package/lib/module/ReanimatedModule/reanimatedModuleInstance.web.js +1 -1
- package/lib/module/ReanimatedModule/reanimatedModuleInstance.web.js.map +1 -1
- package/lib/module/ReducedMotion.js +2 -2
- package/lib/module/ReducedMotion.js.map +1 -1
- package/lib/module/Sensor.js +2 -2
- package/lib/module/Sensor.js.map +1 -1
- package/lib/module/SensorContainer.js +1 -1
- package/lib/module/SensorContainer.js.map +1 -1
- package/lib/module/UpdateLayoutAnimations.js +4 -4
- package/lib/module/UpdateLayoutAnimations.js.map +1 -1
- package/lib/module/ViewDescriptorsSet.js +4 -2
- package/lib/module/ViewDescriptorsSet.js.map +1 -1
- package/lib/module/WorkletEventHandler.js +2 -2
- package/lib/module/WorkletEventHandler.js.map +1 -1
- package/lib/module/animation/clamp.js +2 -2
- package/lib/module/animation/clamp.js.map +1 -1
- package/lib/module/animation/decay/decay.js +5 -5
- package/lib/module/animation/decay/decay.js.map +1 -1
- package/lib/module/animation/decay/index.js +1 -1
- package/lib/module/animation/decay/index.js.map +1 -1
- package/lib/module/animation/decay/rigidDecay.js +1 -1
- package/lib/module/animation/decay/rigidDecay.js.map +1 -1
- package/lib/module/animation/decay/rubberBandDecay.js +1 -1
- package/lib/module/animation/decay/rubberBandDecay.js.map +1 -1
- package/lib/module/animation/decay/utils.js +1 -1
- package/lib/module/animation/decay/utils.js.map +1 -1
- package/lib/module/animation/delay.js +1 -1
- package/lib/module/animation/delay.js.map +1 -1
- package/lib/module/animation/index.js +9 -9
- package/lib/module/animation/index.js.map +1 -1
- package/lib/module/animation/repeat.js +1 -1
- package/lib/module/animation/repeat.js.map +1 -1
- package/lib/module/animation/sequence.js +2 -2
- package/lib/module/animation/sequence.js.map +1 -1
- package/lib/module/animation/spring/index.js +3 -3
- package/lib/module/animation/spring/index.js.map +1 -1
- package/lib/module/animation/spring/spring.js +3 -3
- package/lib/module/animation/spring/spring.js.map +1 -1
- package/lib/module/animation/spring/springConfigs.js +2 -2
- package/lib/module/animation/spring/springUtils.js +1 -1
- package/lib/module/animation/spring/springUtils.js.map +1 -1
- package/lib/module/animation/styleAnimation.js +4 -4
- package/lib/module/animation/styleAnimation.js.map +1 -1
- package/lib/module/animation/timing.js +2 -2
- package/lib/module/animation/timing.js.map +1 -1
- package/lib/module/animation/transformationMatrix/matrixUtils.js +1 -1
- package/lib/module/animation/transformationMatrix/matrixUtils.js.map +1 -1
- package/lib/module/animation/util.js +12 -12
- package/lib/module/animation/util.js.map +1 -1
- package/lib/module/animationBuilder.js +1 -1
- package/lib/module/animationBuilder.js.map +1 -1
- package/lib/module/common/errors.js +2 -1
- package/lib/module/common/errors.js.map +1 -1
- package/lib/module/common/index.js +5 -5
- package/lib/module/common/index.js.map +1 -1
- package/lib/module/common/processors/colors.js +2 -6
- package/lib/module/common/processors/colors.js.map +1 -1
- package/lib/module/common/processors/index.js +3 -3
- package/lib/module/common/processors/index.js.map +1 -1
- package/lib/module/common/processors/shadows.js +4 -4
- package/lib/module/common/processors/shadows.js.map +1 -1
- package/lib/module/common/processors/transformOrigin.js +1 -1
- package/lib/module/common/processors/transformOrigin.js.map +1 -1
- package/lib/module/common/utils/index.js +3 -3
- package/lib/module/common/utils/index.js.map +1 -1
- package/lib/module/common/utils/parsers.js +1 -1
- package/lib/module/common/utils/parsers.js.map +1 -1
- package/lib/module/commonTypes.js +0 -4
- package/lib/module/commonTypes.js.map +1 -1
- package/lib/module/component/FlatList.js +27 -16
- package/lib/module/component/FlatList.js.map +1 -1
- package/lib/module/component/Image.js +1 -1
- package/lib/module/component/Image.js.map +1 -1
- package/lib/module/component/LayoutAnimationConfig.js +15 -9
- package/lib/module/component/LayoutAnimationConfig.js.map +1 -1
- package/lib/module/component/PerformanceMonitor.js +27 -12
- package/lib/module/component/PerformanceMonitor.js.map +1 -1
- package/lib/module/component/ReducedMotionConfig.js +3 -3
- package/lib/module/component/ReducedMotionConfig.js.map +1 -1
- package/lib/module/component/ScrollView.js +7 -4
- package/lib/module/component/ScrollView.js.map +1 -1
- package/lib/module/component/Text.js +1 -1
- package/lib/module/component/Text.js.map +1 -1
- package/lib/module/component/View.js +1 -1
- package/lib/module/component/View.js.map +1 -1
- package/lib/module/core.js +14 -14
- package/lib/module/core.js.map +1 -1
- package/lib/module/createAnimatedComponent/AnimatedComponent.js +68 -70
- package/lib/module/createAnimatedComponent/AnimatedComponent.js.map +1 -1
- package/lib/module/createAnimatedComponent/InlinePropManager.js +5 -5
- package/lib/module/createAnimatedComponent/InlinePropManager.js.map +1 -1
- package/lib/module/createAnimatedComponent/JSPropsUpdater.js +1 -1
- package/lib/module/createAnimatedComponent/JSPropsUpdater.js.map +1 -1
- package/lib/module/createAnimatedComponent/NativeEventsManager.js +3 -3
- package/lib/module/createAnimatedComponent/NativeEventsManager.js.map +1 -1
- package/lib/module/createAnimatedComponent/PropsFilter.js +15 -12
- package/lib/module/createAnimatedComponent/PropsFilter.js.map +1 -1
- package/lib/module/createAnimatedComponent/createAnimatedComponent.js +11 -8
- package/lib/module/createAnimatedComponent/createAnimatedComponent.js.map +1 -1
- package/lib/module/createAnimatedComponent/getViewInfo.js +1 -1
- package/lib/module/createAnimatedComponent/getViewInfo.js.map +1 -1
- package/lib/module/createAnimatedComponent/index.js +1 -1
- package/lib/module/createAnimatedComponent/index.js.map +1 -1
- package/lib/module/createAnimatedComponent/utils.js +2 -2
- package/lib/module/createAnimatedComponent/utils.js.map +1 -1
- package/lib/module/css/component/AnimatedComponent.js +19 -10
- package/lib/module/css/component/AnimatedComponent.js.map +1 -1
- package/lib/module/css/component/createAnimatedComponent.js +11 -8
- package/lib/module/css/component/createAnimatedComponent.js.map +1 -1
- package/lib/module/css/component/index.js +1 -1
- package/lib/module/css/component/index.js.map +1 -1
- package/lib/module/css/component/utils.js +1 -1
- package/lib/module/css/component/utils.js.map +1 -1
- package/lib/module/css/constants/index.js +4 -4
- package/lib/module/css/constants/index.js.map +1 -1
- package/lib/module/css/{easings → easing}/cubicBezier.js +1 -1
- package/lib/module/css/easing/cubicBezier.js.map +1 -0
- package/lib/module/css/{easings → easing}/index.js +3 -3
- package/lib/module/css/easing/index.js.map +1 -0
- package/lib/module/css/{easings → easing}/linear.js +2 -2
- package/lib/module/css/easing/linear.js.map +1 -0
- package/lib/module/css/{easings → easing}/steps.js +1 -1
- package/lib/module/css/easing/steps.js.map +1 -0
- package/lib/module/css/easing/types.js.map +1 -0
- package/lib/module/css/index.js +3 -3
- package/lib/module/css/index.js.map +1 -1
- package/lib/module/css/models/CSSKeyframesRuleBase.js +1 -1
- package/lib/module/css/models/CSSKeyframesRuleBase.js.map +1 -1
- package/lib/module/css/models/index.js +1 -1
- package/lib/module/css/models/index.js.map +1 -1
- package/lib/module/css/native/index.js +9 -0
- package/lib/module/css/native/index.js.map +1 -0
- package/lib/module/css/native/keyframes/CSSKeyframesRegistry.js +79 -0
- package/lib/module/css/native/keyframes/CSSKeyframesRegistry.js.map +1 -0
- package/lib/module/css/native/keyframes/CSSKeyframesRuleImpl.js +18 -0
- package/lib/module/css/native/keyframes/CSSKeyframesRuleImpl.js.map +1 -0
- package/lib/module/css/native/keyframes/index.js +5 -0
- package/lib/module/css/native/keyframes/index.js.map +1 -0
- package/lib/module/css/{managers → native/managers}/CSSAnimationsManager.js +9 -8
- package/lib/module/css/native/managers/CSSAnimationsManager.js.map +1 -0
- package/lib/module/css/{managers → native/managers}/CSSManager.js +14 -5
- package/lib/module/css/native/managers/CSSManager.js.map +1 -0
- package/lib/module/css/{managers → native/managers}/CSSTransitionsManager.js +2 -2
- package/lib/module/css/native/managers/CSSTransitionsManager.js.map +1 -0
- package/lib/module/css/native/managers/index.js.map +1 -0
- package/lib/module/css/native/normalization/animation/constants.js.map +1 -0
- package/lib/module/css/native/normalization/animation/index.js +7 -0
- package/lib/module/css/native/normalization/animation/index.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/animation/keyframes.js +11 -13
- package/lib/module/css/native/normalization/animation/keyframes.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/animation/properties.js +1 -1
- package/lib/module/css/native/normalization/animation/properties.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/animation/settings.js +4 -4
- package/lib/module/css/native/normalization/animation/settings.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/common/index.js +1 -1
- package/lib/module/css/native/normalization/common/index.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/common/settings.js +3 -3
- package/lib/module/css/native/normalization/common/settings.js.map +1 -0
- package/lib/module/css/native/normalization/index.js +6 -0
- package/lib/module/css/native/normalization/index.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/transition/config.js +5 -5
- package/lib/module/css/native/normalization/transition/config.js.map +1 -0
- package/lib/module/css/native/normalization/transition/constants.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/transition/index.js +1 -1
- package/lib/module/css/native/normalization/transition/index.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/transition/settings.js +2 -2
- package/lib/module/css/native/normalization/transition/settings.js.map +1 -0
- package/lib/module/css/{platform/native → native}/normalization/transition/shorthand.js +3 -3
- package/lib/module/css/native/normalization/transition/shorthand.js.map +1 -0
- package/lib/module/css/{platform/native/native.js → native/proxy.js} +6 -6
- package/lib/module/css/native/proxy.js.map +1 -0
- package/lib/module/css/native/registry.js +30 -0
- package/lib/module/css/native/registry.js.map +1 -0
- package/lib/module/css/{platform/native → native/style}/config.js +3 -4
- package/lib/module/css/native/style/config.js.map +1 -0
- package/lib/module/css/{platform/native/style/builderFactory.js → native/style/createStyleBuilder.js} +11 -7
- package/lib/module/css/native/style/createStyleBuilder.js.map +1 -0
- package/lib/module/css/native/style/index.js +6 -0
- package/lib/module/css/native/style/index.js.map +1 -0
- package/lib/module/css/{platform/native → native}/style/processors/colors.js +1 -1
- package/lib/module/css/native/style/processors/colors.js.map +1 -0
- package/lib/module/css/{platform/native → native}/style/processors/font.js +2 -2
- package/lib/module/css/native/style/processors/font.js.map +1 -0
- package/lib/module/css/native/style/processors/index.js +8 -0
- package/lib/module/css/native/style/processors/index.js.map +1 -0
- package/lib/module/css/native/style/processors/insets.js.map +1 -0
- package/lib/module/css/{platform/native → native}/style/processors/others.js +1 -1
- package/lib/module/css/native/style/processors/others.js.map +1 -0
- package/lib/module/css/{platform/native → native}/style/processors/transform.js +5 -5
- package/lib/module/css/native/style/processors/transform.js.map +1 -0
- package/lib/module/css/native/style/types.js.map +1 -0
- package/lib/module/css/native/types/animation.js.map +1 -0
- package/lib/module/css/native/types/index.js.map +1 -0
- package/lib/module/css/native/types/transition.js.map +1 -0
- package/lib/module/css/platform.js +4 -0
- package/lib/module/css/platform.js.map +1 -0
- package/lib/module/css/platform.web.js +4 -0
- package/lib/module/css/platform.web.js.map +1 -0
- package/lib/module/css/stylesheet/index.js +2 -2
- package/lib/module/css/stylesheet/index.js.map +1 -1
- package/lib/module/css/stylesheet/keyframes.js +1 -1
- package/lib/module/css/stylesheet/keyframes.js.map +1 -1
- package/lib/module/css/stylesheet/stylesheet.js +2 -2
- package/lib/module/css/stylesheet/stylesheet.js.map +1 -1
- package/lib/module/css/svg/index.js +4 -0
- package/lib/module/css/svg/index.js.map +1 -0
- package/lib/module/css/svg/init.js +14 -0
- package/lib/module/css/svg/init.js.map +1 -0
- package/lib/module/css/svg/init.web.js +6 -0
- package/lib/module/css/svg/init.web.js.map +1 -0
- package/lib/module/css/svg/native/configs/circle.js +14 -0
- package/lib/module/css/svg/native/configs/circle.js.map +1 -0
- package/lib/module/css/svg/native/configs/common.js +112 -0
- package/lib/module/css/svg/native/configs/common.js.map +1 -0
- package/lib/module/css/svg/native/configs/ellipse.js +12 -0
- package/lib/module/css/svg/native/configs/ellipse.js.map +1 -0
- package/lib/module/css/svg/native/configs/index.js +8 -0
- package/lib/module/css/svg/native/configs/index.js.map +1 -0
- package/lib/module/css/svg/native/configs/line.js +12 -0
- package/lib/module/css/svg/native/configs/line.js.map +1 -0
- package/lib/module/css/svg/native/configs/path.js +10 -0
- package/lib/module/css/svg/native/configs/path.js.map +1 -0
- package/lib/module/css/svg/native/configs/rect.js +14 -0
- package/lib/module/css/svg/native/configs/rect.js.map +1 -0
- package/lib/module/css/svg/native/index.js +4 -0
- package/lib/module/css/svg/native/index.js.map +1 -0
- package/lib/module/css/svg/native/processors/colors.js +13 -0
- package/lib/module/css/svg/native/processors/colors.js.map +1 -0
- package/lib/module/css/svg/native/processors/index.js +7 -0
- package/lib/module/css/svg/native/processors/index.js.map +1 -0
- package/lib/module/css/svg/native/processors/opacity.js +7 -0
- package/lib/module/css/svg/native/processors/opacity.js.map +1 -0
- package/lib/module/css/svg/native/processors/others.js +4 -0
- package/lib/module/css/svg/native/processors/others.js.map +1 -0
- package/lib/module/css/svg/native/processors/stroke.js +33 -0
- package/lib/module/css/svg/native/processors/stroke.js.map +1 -0
- package/lib/module/css/utils/guards.js +3 -2
- package/lib/module/css/utils/guards.js.map +1 -1
- package/lib/module/css/utils/index.js +5 -5
- package/lib/module/css/utils/index.js.map +1 -1
- package/lib/module/css/utils/parsers.js +2 -2
- package/lib/module/css/utils/parsers.js.map +1 -1
- package/lib/module/css/utils/props.js +3 -3
- package/lib/module/css/utils/props.js.map +1 -1
- package/lib/module/css/{platform/web → web}/animationParser.js +4 -4
- package/lib/module/css/web/animationParser.js.map +1 -0
- package/lib/module/css/{platform/web → web}/config.js +2 -2
- package/lib/module/css/web/config.js.map +1 -0
- package/lib/module/css/{platform/web → web}/domUtils.js +1 -1
- package/lib/module/css/web/domUtils.js.map +1 -0
- package/lib/module/css/web/index.js +9 -0
- package/lib/module/css/web/index.js.map +1 -0
- package/lib/module/css/{models/CSSKeyframesRule.web.js → web/keyframes/CSSKeyframesRuleImpl.js} +3 -3
- package/lib/module/css/web/keyframes/CSSKeyframesRuleImpl.js.map +1 -0
- package/lib/module/css/web/keyframes/index.js +4 -0
- package/lib/module/css/web/keyframes/index.js.map +1 -0
- package/lib/module/css/{managers/CSSAnimationsManager.web.js → web/managers/CSSAnimationsManager.js} +7 -5
- package/lib/module/css/web/managers/CSSAnimationsManager.js.map +1 -0
- package/lib/module/css/{managers/CSSManager.web.js → web/managers/CSSManager.js} +4 -4
- package/lib/module/css/web/managers/CSSManager.js.map +1 -0
- package/lib/module/css/{managers/CSSTransitionsManager.web.js → web/managers/CSSTransitionsManager.js} +4 -3
- package/lib/module/css/web/managers/CSSTransitionsManager.js.map +1 -0
- package/lib/module/css/web/managers/index.js +4 -0
- package/lib/module/css/web/managers/index.js.map +1 -0
- package/lib/module/css/web/normalization/index.js +4 -0
- package/lib/module/css/web/normalization/index.js.map +1 -0
- package/lib/module/css/{platform/web → web}/normalization/transition.js +1 -1
- package/lib/module/css/web/normalization/transition.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/builderFactories.js +2 -2
- package/lib/module/css/web/style/builderFactories.js.map +1 -0
- package/lib/module/css/web/style/builders/index.js +4 -0
- package/lib/module/css/web/style/builders/index.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/builders/shadows.js +4 -4
- package/lib/module/css/web/style/builders/shadows.js.map +1 -0
- package/lib/module/css/web/style/index.js +6 -0
- package/lib/module/css/web/style/index.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/colors.js +2 -2
- package/lib/module/css/web/style/processors/colors.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/filter.js +1 -1
- package/lib/module/css/web/style/processors/filter.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/font.js +1 -1
- package/lib/module/css/web/style/processors/font.js.map +1 -0
- package/lib/module/css/web/style/processors/index.js +9 -0
- package/lib/module/css/web/style/processors/index.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/margins.js +1 -1
- package/lib/module/css/web/style/processors/margins.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/paddings.js +1 -1
- package/lib/module/css/web/style/processors/paddings.js.map +1 -0
- package/lib/module/css/{platform/web → web}/style/processors/transforms.js +1 -1
- package/lib/module/css/web/style/processors/transforms.js.map +1 -0
- package/lib/module/css/web/style/types.js.map +1 -0
- package/lib/module/css/{platform/web → web}/utils.js +3 -3
- package/lib/module/css/web/utils.js.map +1 -0
- package/lib/module/culori/index.js +1 -1
- package/lib/module/culori/index.js.map +1 -1
- package/lib/module/culori/oklab.js +1 -1
- package/lib/module/culori/oklab.js.map +1 -1
- package/lib/module/fabricUtils.js +8 -24
- package/lib/module/fabricUtils.js.map +1 -1
- package/lib/module/fabricUtils.web.js +1 -1
- package/lib/module/fabricUtils.web.js.map +1 -1
- package/lib/module/featureFlags/index.js +53 -0
- package/lib/module/featureFlags/index.js.map +1 -0
- package/lib/module/featureFlags/staticFlags.json +4 -2
- package/lib/module/frameCallback/FrameCallbackRegistryJS.js +1 -1
- package/lib/module/frameCallback/FrameCallbackRegistryJS.js.map +1 -1
- package/lib/module/hook/index.js +15 -15
- package/lib/module/hook/index.js.map +1 -1
- package/lib/module/hook/useAnimatedKeyboard.js +2 -2
- package/lib/module/hook/useAnimatedKeyboard.js.map +1 -1
- package/lib/module/hook/useAnimatedProps.js +2 -2
- package/lib/module/hook/useAnimatedProps.js.map +1 -1
- package/lib/module/hook/useAnimatedReaction.js +3 -3
- package/lib/module/hook/useAnimatedReaction.js.map +1 -1
- package/lib/module/hook/useAnimatedRef.js +23 -29
- package/lib/module/hook/useAnimatedRef.js.map +1 -1
- package/lib/module/hook/useAnimatedScrollHandler.js +2 -2
- package/lib/module/hook/useAnimatedScrollHandler.js.map +1 -1
- package/lib/module/hook/useAnimatedSensor.js +2 -2
- package/lib/module/hook/useAnimatedSensor.js.map +1 -1
- package/lib/module/hook/useAnimatedStyle.js +27 -18
- package/lib/module/hook/useAnimatedStyle.js.map +1 -1
- package/lib/module/hook/useComposedEventHandler.js +3 -3
- package/lib/module/hook/useComposedEventHandler.js.map +1 -1
- package/lib/module/hook/useDerivedValue.js +3 -3
- package/lib/module/hook/useDerivedValue.js.map +1 -1
- package/lib/module/hook/useEvent.js +1 -1
- package/lib/module/hook/useEvent.js.map +1 -1
- package/lib/module/hook/useFrameCallback.js +1 -1
- package/lib/module/hook/useFrameCallback.js.map +1 -1
- package/lib/module/hook/useHandler.js +2 -2
- package/lib/module/hook/useHandler.js.map +1 -1
- package/lib/module/hook/useReducedMotion.js +1 -1
- package/lib/module/hook/useReducedMotion.js.map +1 -1
- package/lib/module/hook/useScrollOffset.js +8 -7
- package/lib/module/hook/useScrollOffset.js.map +1 -1
- package/lib/module/hook/useSharedValue.js +2 -2
- package/lib/module/hook/useSharedValue.js.map +1 -1
- package/lib/module/hook/utils.js +1 -1
- package/lib/module/hook/utils.js.map +1 -1
- package/lib/module/index.js +27 -27
- package/lib/module/index.js.map +1 -1
- package/lib/module/initializers.js +7 -5
- package/lib/module/initializers.js.map +1 -1
- package/lib/module/interpolateColor.js +6 -6
- package/lib/module/interpolateColor.js.map +1 -1
- package/lib/module/interpolation.js +1 -1
- package/lib/module/interpolation.js.map +1 -1
- package/lib/module/jestUtils.js +1 -1
- package/lib/module/jestUtils.js.map +1 -1
- package/lib/module/layoutReanimation/animationBuilder/BaseAnimationBuilder.js +4 -4
- package/lib/module/layoutReanimation/animationBuilder/BaseAnimationBuilder.js.map +1 -1
- package/lib/module/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js +40 -30
- package/lib/module/layoutReanimation/animationBuilder/ComplexAnimationBuilder.js.map +1 -1
- package/lib/module/layoutReanimation/animationBuilder/Keyframe.js +5 -5
- package/lib/module/layoutReanimation/animationBuilder/Keyframe.js.map +1 -1
- package/lib/module/layoutReanimation/animationBuilder/index.js +3 -3
- package/lib/module/layoutReanimation/animationBuilder/index.js.map +1 -1
- package/lib/module/layoutReanimation/animationsManager.js +4 -4
- package/lib/module/layoutReanimation/animationsManager.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Bounce.js +2 -2
- package/lib/module/layoutReanimation/defaultAnimations/Bounce.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Fade.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Fade.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Flip.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Flip.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Lightspeed.js +2 -2
- package/lib/module/layoutReanimation/defaultAnimations/Lightspeed.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Pinwheel.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Pinwheel.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Roll.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Roll.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Rotate.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Rotate.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Slide.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Slide.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Stretch.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Stretch.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Zoom.js +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/Zoom.js.map +1 -1
- package/lib/module/layoutReanimation/defaultAnimations/index.js +10 -10
- package/lib/module/layoutReanimation/defaultAnimations/index.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/CurvedTransition.js +4 -4
- package/lib/module/layoutReanimation/defaultTransitions/CurvedTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/EntryExitTransition.js +4 -4
- package/lib/module/layoutReanimation/defaultTransitions/EntryExitTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/FadingTransition.js +2 -2
- package/lib/module/layoutReanimation/defaultTransitions/FadingTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/JumpingTransition.js +3 -3
- package/lib/module/layoutReanimation/defaultTransitions/JumpingTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/LinearTransition.js +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/LinearTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/SequencedTransition.js +2 -2
- package/lib/module/layoutReanimation/defaultTransitions/SequencedTransition.js.map +1 -1
- package/lib/module/layoutReanimation/defaultTransitions/index.js +6 -6
- package/lib/module/layoutReanimation/defaultTransitions/index.js.map +1 -1
- package/lib/module/layoutReanimation/index.js +4 -4
- package/lib/module/layoutReanimation/index.js.map +1 -1
- package/lib/module/layoutReanimation/web/Easing.web.js +14 -0
- package/lib/module/layoutReanimation/web/Easing.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Bounce.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Bounce.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Fade.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Fade.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Flip.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Flip.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Lightspeed.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Lightspeed.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Pinwheel.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Pinwheel.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Roll.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Roll.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Rotate.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Rotate.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Slide.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Slide.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Stretch.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Stretch.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animation/Zoom.web.js +1 -1
- package/lib/module/layoutReanimation/web/animation/Zoom.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/animationParser.js +1 -1
- package/lib/module/layoutReanimation/web/animationParser.js.map +1 -1
- package/lib/module/layoutReanimation/web/animationsManager.js +9 -9
- package/lib/module/layoutReanimation/web/animationsManager.js.map +1 -1
- package/lib/module/layoutReanimation/web/componentStyle.js +1 -1
- package/lib/module/layoutReanimation/web/componentStyle.js.map +1 -1
- package/lib/module/layoutReanimation/web/componentUtils.js +63 -25
- package/lib/module/layoutReanimation/web/componentUtils.js.map +1 -1
- package/lib/module/layoutReanimation/web/config.js +10 -10
- package/lib/module/layoutReanimation/web/config.js.map +1 -1
- package/lib/module/layoutReanimation/web/createAnimation.js +9 -9
- package/lib/module/layoutReanimation/web/createAnimation.js.map +1 -1
- package/lib/module/layoutReanimation/web/domUtils.js +4 -4
- package/lib/module/layoutReanimation/web/domUtils.js.map +1 -1
- package/lib/module/layoutReanimation/web/index.js +3 -3
- package/lib/module/layoutReanimation/web/index.js.map +1 -1
- package/lib/module/layoutReanimation/web/transition/Curved.web.js +3 -2
- package/lib/module/layoutReanimation/web/transition/Curved.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/transition/EntryExit.web.js +1 -1
- package/lib/module/layoutReanimation/web/transition/EntryExit.web.js.map +1 -1
- package/lib/module/layoutReanimation/web/transition/Jumping.web.js +1 -1
- package/lib/module/layoutReanimation/web/transition/Jumping.web.js.map +1 -1
- package/lib/module/mappers.js +2 -2
- package/lib/module/mappers.js.map +1 -1
- package/lib/module/mock.js +2 -2
- package/lib/module/mock.js.map +1 -1
- package/lib/module/mutables.js +116 -9
- package/lib/module/mutables.js.map +1 -1
- package/lib/module/platform-specific/checkCppVersion.js +2 -2
- package/lib/module/platform-specific/checkCppVersion.js.map +1 -1
- package/lib/module/platform-specific/findHostInstance.js +4 -4
- package/lib/module/platform-specific/findHostInstance.js.map +1 -1
- package/lib/module/platform-specific/jsVersion.js +1 -1
- package/lib/module/platform-specific/jsVersion.js.map +1 -1
- package/lib/module/platform-specific/workletsVersion.js +3 -2
- package/lib/module/platform-specific/workletsVersion.js.map +1 -1
- package/lib/module/platformFunctions/dispatchCommand.js +4 -3
- package/lib/module/platformFunctions/dispatchCommand.js.map +1 -1
- package/lib/module/platformFunctions/dispatchCommand.web.js +1 -1
- package/lib/module/platformFunctions/dispatchCommand.web.js.map +1 -1
- package/lib/module/platformFunctions/getRelativeCoords.js.map +1 -1
- package/lib/module/platformFunctions/index.js +1 -1
- package/lib/module/platformFunctions/index.js.map +1 -1
- package/lib/module/platformFunctions/measure.js +4 -3
- package/lib/module/platformFunctions/measure.js.map +1 -1
- package/lib/module/platformFunctions/measure.web.js +1 -1
- package/lib/module/platformFunctions/measure.web.js.map +1 -1
- package/lib/module/platformFunctions/scrollTo.js +3 -5
- package/lib/module/platformFunctions/scrollTo.js.map +1 -1
- package/lib/module/platformFunctions/scrollTo.web.js.map +1 -1
- package/lib/module/platformFunctions/setGestureState.js +3 -2
- package/lib/module/platformFunctions/setGestureState.js.map +1 -1
- package/lib/module/platformFunctions/setGestureState.web.js +1 -1
- package/lib/module/platformFunctions/setGestureState.web.js.map +1 -1
- package/lib/module/platformFunctions/setNativeProps.js +4 -3
- package/lib/module/platformFunctions/setNativeProps.js.map +1 -1
- package/lib/module/platformFunctions/setNativeProps.web.js +1 -1
- package/lib/module/platformFunctions/setNativeProps.web.js.map +1 -1
- package/lib/module/screenTransition/RNScreensTurboModule.js +1 -1
- package/lib/module/screenTransition/RNScreensTurboModule.js.map +1 -1
- package/lib/module/screenTransition/animationManager.js +2 -2
- package/lib/module/screenTransition/animationManager.js.map +1 -1
- package/lib/module/screenTransition/index.js +2 -2
- package/lib/module/screenTransition/index.js.map +1 -1
- package/lib/module/screenTransition/styleUpdater.js +1 -1
- package/lib/module/screenTransition/styleUpdater.js.map +1 -1
- package/lib/module/screenTransition/swipeSimulator.js +2 -2
- package/lib/module/screenTransition/swipeSimulator.js.map +1 -1
- package/lib/module/specs/index.js +1 -1
- package/lib/module/specs/index.js.map +1 -1
- package/lib/module/updateProps/index.js +2 -2
- package/lib/module/updateProps/index.js.map +1 -1
- package/lib/module/updateProps/updateProps.js +3 -3
- package/lib/module/updateProps/updateProps.js.map +1 -1
- package/lib/module/workletFunctions.js +2 -2
- package/lib/module/workletFunctions.js.map +1 -1
- package/lib/typescript/Animated.d.ts +0 -71
- package/lib/typescript/Animated.d.ts.map +1 -1
- package/lib/typescript/Colors.d.ts.map +1 -1
- package/lib/typescript/Easing.d.ts +0 -4
- package/lib/typescript/Easing.d.ts.map +1 -1
- package/lib/typescript/ReanimatedModule/js-reanimated/JSReanimated.d.ts.map +1 -1
- package/lib/typescript/ReanimatedModule/js-reanimated/index.d.ts.map +1 -1
- package/lib/typescript/ReanimatedModule/reanimatedModuleProxy.d.ts +10 -10
- package/lib/typescript/ReanimatedModule/reanimatedModuleProxy.d.ts.map +1 -1
- package/lib/typescript/Sensor.d.ts +2 -2
- package/lib/typescript/Sensor.d.ts.map +1 -1
- package/lib/typescript/SensorContainer.d.ts +2 -2
- package/lib/typescript/SensorContainer.d.ts.map +1 -1
- package/lib/typescript/ViewDescriptorsSet.d.ts +2 -2
- package/lib/typescript/ViewDescriptorsSet.d.ts.map +1 -1
- package/lib/typescript/animation/clamp.d.ts.map +1 -1
- package/lib/typescript/animation/decay/decay.d.ts.map +1 -1
- package/lib/typescript/animation/delay.d.ts.map +1 -1
- package/lib/typescript/animation/repeat.d.ts.map +1 -1
- package/lib/typescript/animation/spring/spring.d.ts.map +1 -1
- package/lib/typescript/animation/spring/springConfigs.d.ts +5 -5
- package/lib/typescript/animation/spring/springConfigs.d.ts.map +1 -1
- package/lib/typescript/animation/timing.d.ts.map +1 -1
- package/lib/typescript/animation/util.d.ts.map +1 -1
- package/lib/typescript/common/errors.d.ts.map +1 -1
- package/lib/typescript/common/processors/colors.d.ts.map +1 -1
- package/lib/typescript/common/utils/guards.d.ts.map +1 -1
- package/lib/typescript/commonTypes.d.ts +26 -10
- package/lib/typescript/commonTypes.d.ts.map +1 -1
- package/lib/typescript/component/FlatList.d.ts +2 -3
- package/lib/typescript/component/FlatList.d.ts.map +1 -1
- package/lib/typescript/component/Image.d.ts +1 -2
- package/lib/typescript/component/Image.d.ts.map +1 -1
- package/lib/typescript/component/PerformanceMonitor.d.ts +0 -1
- package/lib/typescript/component/PerformanceMonitor.d.ts.map +1 -1
- package/lib/typescript/component/ScrollView.d.ts +1 -1
- package/lib/typescript/component/ScrollView.d.ts.map +1 -1
- package/lib/typescript/component/Text.d.ts +1 -2
- package/lib/typescript/component/Text.d.ts.map +1 -1
- package/lib/typescript/component/View.d.ts +1 -2
- package/lib/typescript/component/View.d.ts.map +1 -1
- package/lib/typescript/core.d.ts +7 -8
- package/lib/typescript/core.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/AnimatedComponent.d.ts +6 -3
- package/lib/typescript/createAnimatedComponent/AnimatedComponent.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/JSPropsUpdater.d.ts +0 -1
- package/lib/typescript/createAnimatedComponent/JSPropsUpdater.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/PropsFilter.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/commonTypes.d.ts +18 -13
- package/lib/typescript/createAnimatedComponent/commonTypes.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/createAnimatedComponent.d.ts +5 -5
- package/lib/typescript/createAnimatedComponent/createAnimatedComponent.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/getViewInfo.d.ts.map +1 -1
- package/lib/typescript/createAnimatedComponent/utils.d.ts +4 -2
- package/lib/typescript/createAnimatedComponent/utils.d.ts.map +1 -1
- package/lib/typescript/css/component/AnimatedComponent.d.ts +3 -3
- package/lib/typescript/css/component/AnimatedComponent.d.ts.map +1 -1
- package/lib/typescript/css/constants/settings.d.ts +1 -1
- package/lib/typescript/css/constants/settings.d.ts.map +1 -1
- package/lib/typescript/css/easing/cubicBezier.d.ts.map +1 -0
- package/lib/typescript/css/easing/index.d.ts.map +1 -0
- package/lib/typescript/css/easing/linear.d.ts.map +1 -0
- package/lib/typescript/css/easing/steps.d.ts.map +1 -0
- package/lib/typescript/css/easing/types.d.ts.map +1 -0
- package/lib/typescript/css/index.d.ts +1 -1
- package/lib/typescript/css/index.d.ts.map +1 -1
- package/lib/typescript/css/models/index.d.ts +1 -1
- package/lib/typescript/css/models/index.d.ts.map +1 -1
- package/lib/typescript/css/native/index.d.ts +8 -0
- package/lib/typescript/css/native/index.d.ts.map +1 -0
- package/lib/typescript/css/{registry → native/keyframes}/CSSKeyframesRegistry.d.ts +4 -4
- package/lib/typescript/css/native/keyframes/CSSKeyframesRegistry.d.ts.map +1 -0
- package/lib/typescript/css/native/keyframes/CSSKeyframesRuleImpl.d.ts +9 -0
- package/lib/typescript/css/native/keyframes/CSSKeyframesRuleImpl.d.ts.map +1 -0
- package/lib/typescript/css/native/keyframes/index.d.ts +3 -0
- package/lib/typescript/css/native/keyframes/index.d.ts.map +1 -0
- package/lib/typescript/css/{managers → native/managers}/CSSAnimationsManager.d.ts +5 -5
- package/lib/typescript/css/native/managers/CSSAnimationsManager.d.ts.map +1 -0
- package/lib/typescript/css/native/managers/CSSManager.d.ts +15 -0
- package/lib/typescript/css/native/managers/CSSManager.d.ts.map +1 -0
- package/lib/typescript/css/{managers → native/managers}/CSSTransitionsManager.d.ts +2 -3
- package/lib/typescript/css/native/managers/CSSTransitionsManager.d.ts.map +1 -0
- package/lib/typescript/css/native/managers/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/animation/constants.d.ts +1 -1
- package/lib/typescript/css/native/normalization/animation/constants.d.ts.map +1 -0
- package/lib/typescript/css/native/normalization/animation/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/animation/keyframes.d.ts +3 -2
- package/lib/typescript/css/native/normalization/animation/keyframes.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/animation/properties.d.ts +1 -1
- package/lib/typescript/css/native/normalization/animation/properties.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/animation/settings.d.ts +1 -1
- package/lib/typescript/css/native/normalization/animation/settings.d.ts.map +1 -0
- package/lib/typescript/css/native/normalization/common/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/common/settings.d.ts +2 -2
- package/lib/typescript/css/native/normalization/common/settings.d.ts.map +1 -0
- package/lib/typescript/css/native/normalization/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/transition/config.d.ts +1 -1
- package/lib/typescript/css/native/normalization/transition/config.d.ts.map +1 -0
- package/lib/typescript/css/native/normalization/transition/constants.d.ts +3 -0
- package/lib/typescript/css/native/normalization/transition/constants.d.ts.map +1 -0
- package/lib/typescript/css/native/normalization/transition/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/transition/settings.d.ts +1 -1
- package/lib/typescript/css/native/normalization/transition/settings.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/normalization/transition/shorthand.d.ts +1 -1
- package/lib/typescript/css/native/normalization/transition/shorthand.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native/native.d.ts → native/proxy.d.ts} +4 -4
- package/lib/typescript/css/native/proxy.d.ts.map +1 -0
- package/lib/typescript/css/native/registry.d.ts +8 -0
- package/lib/typescript/css/native/registry.d.ts.map +1 -0
- package/lib/typescript/css/native/style/config.d.ts +4 -0
- package/lib/typescript/css/native/style/config.d.ts.map +1 -0
- package/lib/typescript/css/native/style/createStyleBuilder.d.ts +9 -0
- package/lib/typescript/css/native/style/createStyleBuilder.d.ts.map +1 -0
- package/lib/typescript/css/native/style/index.d.ts +6 -0
- package/lib/typescript/css/native/style/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/style/processors/colors.d.ts +1 -1
- package/lib/typescript/css/native/style/processors/colors.d.ts.map +1 -0
- package/lib/typescript/css/native/style/processors/font.d.ts.map +1 -0
- package/lib/typescript/css/native/style/processors/index.d.ts.map +1 -0
- package/lib/typescript/css/native/style/processors/insets.d.ts.map +1 -0
- package/lib/typescript/css/native/style/processors/others.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/style/processors/transform.d.ts +1 -1
- package/lib/typescript/css/native/style/processors/transform.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/style/types.d.ts +6 -5
- package/lib/typescript/css/native/style/types.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/types/animation.d.ts +2 -2
- package/lib/typescript/css/native/types/animation.d.ts.map +1 -0
- package/lib/typescript/css/native/types/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/native → native}/types/transition.d.ts +1 -1
- package/lib/typescript/css/native/types/transition.d.ts.map +1 -0
- package/lib/typescript/css/platform.d.ts +2 -0
- package/lib/typescript/css/platform.d.ts.map +1 -0
- package/lib/typescript/css/platform.web.d.ts +2 -0
- package/lib/typescript/css/platform.web.d.ts.map +1 -0
- package/lib/typescript/css/stylesheet/stylesheet.d.ts.map +1 -1
- package/lib/typescript/css/svg/index.d.ts +2 -0
- package/lib/typescript/css/svg/index.d.ts.map +1 -0
- package/lib/typescript/css/svg/init.d.ts +2 -0
- package/lib/typescript/css/svg/init.d.ts.map +1 -0
- package/lib/typescript/css/svg/init.web.d.ts +2 -0
- package/lib/typescript/css/svg/init.web.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/circle.d.ts +4 -0
- package/lib/typescript/css/svg/native/configs/circle.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/common.d.ts +318 -0
- package/lib/typescript/css/svg/native/configs/common.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/ellipse.d.ts +4 -0
- package/lib/typescript/css/svg/native/configs/ellipse.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/index.d.ts +6 -0
- package/lib/typescript/css/svg/native/configs/index.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/line.d.ts +4 -0
- package/lib/typescript/css/svg/native/configs/line.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/path.d.ts +4 -0
- package/lib/typescript/css/svg/native/configs/path.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/configs/rect.d.ts +4 -0
- package/lib/typescript/css/svg/native/configs/rect.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/index.d.ts +2 -0
- package/lib/typescript/css/svg/native/index.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/processors/colors.d.ts +4 -0
- package/lib/typescript/css/svg/native/processors/colors.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/processors/index.d.ts +5 -0
- package/lib/typescript/css/svg/native/processors/index.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/processors/opacity.d.ts +4 -0
- package/lib/typescript/css/svg/native/processors/opacity.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/processors/others.d.ts +3 -0
- package/lib/typescript/css/svg/native/processors/others.d.ts.map +1 -0
- package/lib/typescript/css/svg/native/processors/stroke.d.ts +7 -0
- package/lib/typescript/css/svg/native/processors/stroke.d.ts.map +1 -0
- package/lib/typescript/css/types/animation.d.ts +1 -1
- package/lib/typescript/css/types/animation.d.ts.map +1 -1
- package/lib/typescript/css/types/index.d.ts +1 -0
- package/lib/typescript/css/types/index.d.ts.map +1 -1
- package/lib/typescript/css/types/transition.d.ts +1 -1
- package/lib/typescript/css/types/transition.d.ts.map +1 -1
- package/lib/typescript/css/utils/conversions.d.ts.map +1 -1
- package/lib/typescript/css/utils/guards.d.ts +7 -11
- package/lib/typescript/css/utils/guards.d.ts.map +1 -1
- package/lib/typescript/css/web/animationParser.d.ts +3 -0
- package/lib/typescript/css/web/animationParser.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/config.d.ts +1 -1
- package/lib/typescript/css/web/config.d.ts.map +1 -0
- package/lib/typescript/css/web/domUtils.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/index.d.ts +2 -0
- package/lib/typescript/css/web/index.d.ts.map +1 -0
- package/lib/typescript/css/{models/CSSKeyframesRule.web.d.ts → web/keyframes/CSSKeyframesRuleImpl.d.ts} +3 -3
- package/lib/typescript/css/web/keyframes/CSSKeyframesRuleImpl.d.ts.map +1 -0
- package/lib/typescript/css/web/keyframes/index.d.ts +2 -0
- package/lib/typescript/css/web/keyframes/index.d.ts.map +1 -0
- package/lib/typescript/css/web/managers/CSSAnimationsManager.d.ts +13 -0
- package/lib/typescript/css/web/managers/CSSAnimationsManager.d.ts.map +1 -0
- package/lib/typescript/css/{managers/CSSManager.web.d.ts → web/managers/CSSManager.d.ts} +4 -4
- package/lib/typescript/css/web/managers/CSSManager.d.ts.map +1 -0
- package/lib/typescript/css/{managers/CSSTransitionsManager.web.d.ts → web/managers/CSSTransitionsManager.d.ts} +3 -4
- package/lib/typescript/css/web/managers/CSSTransitionsManager.d.ts.map +1 -0
- package/lib/typescript/css/web/managers/index.d.ts +2 -0
- package/lib/typescript/css/web/managers/index.d.ts.map +1 -0
- package/lib/typescript/css/web/normalization/index.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/normalization/transition.d.ts +1 -1
- package/lib/typescript/css/web/normalization/transition.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/style/builderFactories.d.ts +1 -1
- package/lib/typescript/css/web/style/builderFactories.d.ts.map +1 -0
- package/lib/typescript/css/web/style/builders/index.d.ts.map +1 -0
- package/lib/typescript/css/web/style/builders/shadows.d.ts.map +1 -0
- package/lib/typescript/css/web/style/index.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/colors.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/filter.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/font.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/index.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/margins.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/paddings.d.ts.map +1 -0
- package/lib/typescript/css/web/style/processors/transforms.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/style/types.d.ts +2 -2
- package/lib/typescript/css/web/style/types.d.ts.map +1 -0
- package/lib/typescript/css/{platform/web → web}/utils.d.ts +2 -2
- package/lib/typescript/css/web/utils.d.ts.map +1 -0
- package/lib/typescript/culori/lrgb.d.ts.map +1 -1
- package/lib/typescript/fabricUtils.d.ts +3 -4
- package/lib/typescript/fabricUtils.d.ts.map +1 -1
- package/lib/typescript/featureFlags/index.d.ts +27 -0
- package/lib/typescript/featureFlags/index.d.ts.map +1 -0
- package/lib/typescript/helperTypes.d.ts +5 -15
- package/lib/typescript/helperTypes.d.ts.map +1 -1
- package/lib/typescript/hook/commonTypes.d.ts +12 -8
- package/lib/typescript/hook/commonTypes.d.ts.map +1 -1
- package/lib/typescript/hook/useAnimatedRef.d.ts +4 -4
- package/lib/typescript/hook/useAnimatedRef.d.ts.map +1 -1
- package/lib/typescript/hook/useAnimatedStyle.d.ts.map +1 -1
- package/lib/typescript/hook/useScrollOffset.d.ts +2 -6
- package/lib/typescript/hook/useScrollOffset.d.ts.map +1 -1
- package/lib/typescript/hook/utils.d.ts +1 -1
- package/lib/typescript/hook/utils.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +4 -4
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/initializers.d.ts.map +1 -1
- package/lib/typescript/jestUtils.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/animationBuilder/ComplexAnimationBuilder.d.ts +25 -17
- package/lib/typescript/layoutReanimation/animationBuilder/ComplexAnimationBuilder.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/animationBuilder/Keyframe.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/defaultAnimations/Flip.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/defaultAnimations/Rotate.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/defaultAnimations/Slide.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/defaultAnimations/Zoom.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/web/Easing.web.d.ts +2 -0
- package/lib/typescript/layoutReanimation/web/Easing.web.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/web/componentUtils.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/web/config.d.ts +3 -3
- package/lib/typescript/layoutReanimation/web/config.d.ts.map +1 -1
- package/lib/typescript/layoutReanimation/web/transition/Curved.web.d.ts.map +1 -1
- package/lib/typescript/mutables.d.ts +1 -1
- package/lib/typescript/mutables.d.ts.map +1 -1
- package/lib/typescript/platform-specific/findHostInstance.d.ts +3 -3
- package/lib/typescript/platform-specific/findHostInstance.d.ts.map +1 -1
- package/lib/typescript/platform-specific/jsVersion.d.ts +1 -1
- package/lib/typescript/platform-specific/jsVersion.d.ts.map +1 -1
- package/lib/typescript/platform-specific/workletsVersion.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/dispatchCommand.d.ts +2 -2
- package/lib/typescript/platformFunctions/dispatchCommand.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/getRelativeCoords.d.ts +2 -2
- package/lib/typescript/platformFunctions/getRelativeCoords.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/measure.d.ts +2 -3
- package/lib/typescript/platformFunctions/measure.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/measure.web.d.ts +2 -3
- package/lib/typescript/platformFunctions/measure.web.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/scrollTo.d.ts +2 -2
- package/lib/typescript/platformFunctions/scrollTo.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/scrollTo.web.d.ts +2 -2
- package/lib/typescript/platformFunctions/scrollTo.web.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/setGestureState.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/setNativeProps.d.ts +2 -3
- package/lib/typescript/platformFunctions/setNativeProps.d.ts.map +1 -1
- package/lib/typescript/platformFunctions/setNativeProps.web.d.ts +2 -3
- package/lib/typescript/platformFunctions/setNativeProps.web.d.ts.map +1 -1
- package/lib/typescript/updateProps/updateProps.d.ts +2 -2
- package/lib/typescript/updateProps/updateProps.d.ts.map +1 -1
- package/lib/typescript/workletFunctions.d.ts.map +1 -1
- package/package.json +18 -15
- package/scripts/reanimated_utils.rb +3 -4
- package/scripts/validate-react-native-version.js +43 -0
- package/scripts/validate-worklets-build.js +6 -1
- package/scripts/validate-worklets-version.js +25 -10
- package/src/Animated.ts +0 -84
- package/src/Colors.ts +4 -5
- package/src/Easing.ts +0 -5
- package/src/ReanimatedModule/NativeReanimated.ts +19 -12
- package/src/ReanimatedModule/js-reanimated/JSReanimated.ts +19 -12
- package/src/ReanimatedModule/js-reanimated/index.ts +1 -20
- package/src/ReanimatedModule/reanimatedModuleProxy.ts +11 -7
- package/src/Sensor.ts +3 -3
- package/src/SensorContainer.ts +2 -2
- package/src/UpdateLayoutAnimations.ts +2 -2
- package/src/ViewDescriptorsSet.ts +5 -3
- package/src/animation/spring/springConfigs.ts +5 -5
- package/src/animation/util.ts +15 -8
- package/src/common/errors.ts +3 -1
- package/src/common/processors/colors.ts +0 -2
- package/src/commonTypes.ts +42 -11
- package/src/component/FlatList.tsx +5 -6
- package/src/component/ScrollView.tsx +2 -3
- package/src/core.ts +12 -15
- package/src/createAnimatedComponent/AnimatedComponent.tsx +82 -76
- package/src/createAnimatedComponent/NativeEventsManager.ts +1 -1
- package/src/createAnimatedComponent/PropsFilter.tsx +16 -10
- package/src/createAnimatedComponent/commonTypes.ts +26 -12
- package/src/createAnimatedComponent/createAnimatedComponent.tsx +5 -5
- package/src/createAnimatedComponent/getViewInfo.ts +3 -1
- package/src/createAnimatedComponent/utils.ts +8 -9
- package/src/css/component/AnimatedComponent.tsx +17 -9
- package/src/css/constants/settings.ts +1 -1
- package/src/css/index.ts +1 -1
- package/src/css/models/index.ts +1 -1
- package/src/css/native/index.ts +8 -0
- package/src/css/native/keyframes/CSSKeyframesRegistry.ts +99 -0
- package/src/css/native/keyframes/CSSKeyframesRuleImpl.ts +32 -0
- package/src/css/{registry → native/keyframes}/index.ts +1 -0
- package/src/css/{managers → native/managers}/CSSAnimationsManager.ts +22 -18
- package/src/css/{managers → native/managers}/CSSManager.ts +29 -9
- package/src/css/{managers → native/managers}/CSSTransitionsManager.ts +8 -6
- package/src/css/{platform/native → native}/normalization/animation/constants.ts +1 -1
- package/src/css/{platform/native → native}/normalization/animation/keyframes.ts +26 -17
- package/src/css/{platform/native → native}/normalization/animation/properties.ts +2 -2
- package/src/css/{platform/native → native}/normalization/animation/settings.ts +3 -3
- package/src/css/{platform/native → native}/normalization/common/settings.ts +5 -5
- package/src/css/{platform/native → native}/normalization/transition/config.ts +3 -3
- package/src/css/{platform/native → native}/normalization/transition/constants.ts +1 -1
- package/src/css/{platform/native → native}/normalization/transition/settings.ts +2 -2
- package/src/css/{platform/native → native}/normalization/transition/shorthand.ts +5 -5
- package/src/css/{platform/native/native.ts → native/proxy.ts} +13 -5
- package/src/css/native/registry.ts +41 -0
- package/src/css/{platform/native → native/style}/config.ts +4 -9
- package/src/css/{platform/native/style/builderFactory.ts → native/style/createStyleBuilder.ts} +25 -10
- package/src/css/native/style/index.ts +6 -0
- package/src/css/{platform/native → native}/style/processors/colors.ts +2 -2
- package/src/css/{platform/native → native}/style/processors/font.ts +2 -2
- package/src/css/{platform/native → native}/style/processors/others.ts +1 -1
- package/src/css/{platform/native → native}/style/processors/transform.ts +6 -11
- package/src/css/{platform/native → native}/style/types.ts +6 -5
- package/src/css/{platform/native → native}/types/animation.ts +2 -2
- package/src/css/{platform/native → native}/types/transition.ts +1 -1
- package/src/css/platform.ts +2 -0
- package/src/css/platform.web.ts +2 -0
- package/src/css/stylesheet/keyframes.ts +1 -1
- package/src/css/stylesheet/stylesheet.ts +1 -1
- package/src/css/svg/index.ts +2 -0
- package/src/css/svg/init.ts +19 -0
- package/src/css/svg/init.web.ts +5 -0
- package/src/css/svg/native/configs/circle.ts +15 -0
- package/src/css/svg/native/configs/common.ts +144 -0
- package/src/css/svg/native/configs/ellipse.ts +15 -0
- package/src/css/svg/native/configs/index.ts +6 -0
- package/src/css/svg/native/configs/line.ts +14 -0
- package/src/css/svg/native/configs/path.ts +11 -0
- package/src/css/svg/native/configs/rect.ts +16 -0
- package/src/css/svg/native/index.ts +2 -0
- package/src/css/svg/native/processors/colors.ts +18 -0
- package/src/css/svg/native/processors/index.ts +5 -0
- package/src/css/svg/native/processors/opacity.ts +12 -0
- package/src/css/svg/native/processors/others.ts +9 -0
- package/src/css/svg/native/processors/stroke.ts +45 -0
- package/src/css/svg/web/.gitkeep +0 -0
- package/src/css/types/animation.ts +1 -1
- package/src/css/types/index.ts +1 -0
- package/src/css/types/transition.ts +1 -1
- package/src/css/utils/guards.ts +6 -3
- package/src/css/{platform/web → web}/animationParser.ts +2 -2
- package/src/css/{platform/web → web}/config.ts +2 -2
- package/src/css/{platform/web → web}/domUtils.ts +1 -1
- package/src/css/{platform/web → web}/index.ts +2 -0
- package/src/css/{models/CSSKeyframesRule.web.ts → web/keyframes/CSSKeyframesRuleImpl.ts} +3 -3
- package/src/css/web/keyframes/index.ts +2 -0
- package/src/css/{managers/CSSAnimationsManager.web.ts → web/managers/CSSAnimationsManager.ts} +13 -14
- package/src/css/{managers/CSSManager.web.ts → web/managers/CSSManager.ts} +7 -7
- package/src/css/{managers/CSSTransitionsManager.web.ts → web/managers/CSSTransitionsManager.ts} +8 -9
- package/src/css/web/managers/index.ts +2 -0
- package/src/css/{platform/web → web}/normalization/transition.ts +2 -2
- package/src/css/{platform/web → web}/style/builderFactories.ts +3 -3
- package/src/css/{platform/web → web}/style/builders/shadows.ts +2 -2
- package/src/css/{platform/web → web}/style/processors/colors.ts +2 -2
- package/src/css/{platform/web → web}/style/processors/filter.ts +1 -1
- package/src/css/{platform/web → web}/style/processors/font.ts +1 -1
- package/src/css/{platform/web → web}/style/types.ts +2 -2
- package/src/css/{platform/web → web}/utils.ts +5 -5
- package/src/fabricUtils.ts +17 -30
- package/src/featureFlags/{dynamicFlags.ts → index.ts} +33 -1
- package/src/featureFlags/staticFlags.json +4 -2
- package/src/helperTypes.ts +6 -25
- package/src/hook/commonTypes.ts +14 -8
- package/src/hook/useAnimatedRef.ts +30 -49
- package/src/hook/useAnimatedStyle.ts +24 -12
- package/src/hook/useHandler.ts +2 -2
- package/src/hook/useScrollOffset.ts +10 -22
- package/src/hook/utils.ts +2 -3
- package/src/index.ts +3 -17
- package/src/initializers.ts +6 -4
- package/src/layoutReanimation/animationBuilder/ComplexAnimationBuilder.ts +40 -30
- package/src/layoutReanimation/animationsManager.ts +1 -1
- package/src/layoutReanimation/web/Easing.web.ts +32 -0
- package/src/layoutReanimation/web/componentUtils.ts +69 -16
- package/src/layoutReanimation/web/config.ts +3 -2
- package/src/layoutReanimation/web/domUtils.ts +1 -1
- package/src/layoutReanimation/web/transition/Curved.web.ts +1 -0
- package/src/mock.ts +1 -1
- package/src/mutables.ts +142 -7
- package/src/platform-specific/findHostInstance.ts +7 -6
- package/src/platform-specific/jsVersion.ts +1 -1
- package/src/platform-specific/workletsVersion.ts +2 -1
- package/src/platformFunctions/dispatchCommand.ts +6 -6
- package/src/platformFunctions/getRelativeCoords.ts +3 -4
- package/src/platformFunctions/measure.ts +10 -6
- package/src/platformFunctions/measure.web.ts +3 -5
- package/src/platformFunctions/scrollTo.ts +8 -18
- package/src/platformFunctions/scrollTo.web.ts +4 -4
- package/src/platformFunctions/setGestureState.ts +3 -1
- package/src/platformFunctions/setNativeProps.ts +6 -6
- package/src/platformFunctions/setNativeProps.web.ts +3 -5
- package/src/privateGlobals.d.ts +0 -21
- package/src/updateProps/updateProps.ts +2 -3
- package/src/workletFunctions.ts +2 -2
- package/Common/cpp/reanimated/CSS/common/TransformMatrix.cpp +0 -634
- package/Common/cpp/reanimated/CSS/common/TransformMatrix.h +0 -103
- package/Common/cpp/reanimated/CSS/config/PropertyInterpolatorsConfig.h +0 -302
- package/Common/cpp/reanimated/CSS/registry/CSSKeyframesRegistry.cpp +0 -26
- package/Common/cpp/reanimated/CSS/registry/CSSKeyframesRegistry.h +0 -22
- package/Common/cpp/reanimated/CSS/util/keyframes.cpp +0 -40
- package/Common/cpp/reanimated/CSS/util/keyframes.h +0 -12
- package/lib/module/css/easings/cubicBezier.js.map +0 -1
- package/lib/module/css/easings/index.js.map +0 -1
- package/lib/module/css/easings/linear.js.map +0 -1
- package/lib/module/css/easings/steps.js.map +0 -1
- package/lib/module/css/easings/types.js.map +0 -1
- package/lib/module/css/managers/CSSAnimationsManager.js.map +0 -1
- package/lib/module/css/managers/CSSAnimationsManager.web.js.map +0 -1
- package/lib/module/css/managers/CSSManager.js.map +0 -1
- package/lib/module/css/managers/CSSManager.web.js.map +0 -1
- package/lib/module/css/managers/CSSTransitionsManager.js.map +0 -1
- package/lib/module/css/managers/CSSTransitionsManager.web.js.map +0 -1
- package/lib/module/css/managers/index.js.map +0 -1
- package/lib/module/css/models/CSSKeyframesRule.js +0 -14
- package/lib/module/css/models/CSSKeyframesRule.js.map +0 -1
- package/lib/module/css/models/CSSKeyframesRule.web.js.map +0 -1
- package/lib/module/css/platform/native/config.js.map +0 -1
- package/lib/module/css/platform/native/index.js +0 -6
- package/lib/module/css/platform/native/index.js.map +0 -1
- package/lib/module/css/platform/native/native.js.map +0 -1
- package/lib/module/css/platform/native/normalization/animation/constants.js.map +0 -1
- package/lib/module/css/platform/native/normalization/animation/index.js +0 -7
- package/lib/module/css/platform/native/normalization/animation/index.js.map +0 -1
- package/lib/module/css/platform/native/normalization/animation/keyframes.js.map +0 -1
- package/lib/module/css/platform/native/normalization/animation/properties.js.map +0 -1
- package/lib/module/css/platform/native/normalization/animation/settings.js.map +0 -1
- package/lib/module/css/platform/native/normalization/common/index.js.map +0 -1
- package/lib/module/css/platform/native/normalization/common/settings.js.map +0 -1
- package/lib/module/css/platform/native/normalization/index.js +0 -6
- package/lib/module/css/platform/native/normalization/index.js.map +0 -1
- package/lib/module/css/platform/native/normalization/transition/config.js.map +0 -1
- package/lib/module/css/platform/native/normalization/transition/constants.js.map +0 -1
- package/lib/module/css/platform/native/normalization/transition/index.js.map +0 -1
- package/lib/module/css/platform/native/normalization/transition/settings.js.map +0 -1
- package/lib/module/css/platform/native/normalization/transition/shorthand.js.map +0 -1
- package/lib/module/css/platform/native/style/builderFactory.js.map +0 -1
- package/lib/module/css/platform/native/style/index.js +0 -5
- package/lib/module/css/platform/native/style/index.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/colors.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/font.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/index.js +0 -8
- package/lib/module/css/platform/native/style/processors/index.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/insets.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/others.js.map +0 -1
- package/lib/module/css/platform/native/style/processors/transform.js.map +0 -1
- package/lib/module/css/platform/native/style/types.js.map +0 -1
- package/lib/module/css/platform/native/styleBuilder.js +0 -7
- package/lib/module/css/platform/native/styleBuilder.js.map +0 -1
- package/lib/module/css/platform/native/types/animation.js.map +0 -1
- package/lib/module/css/platform/native/types/index.js.map +0 -1
- package/lib/module/css/platform/native/types/transition.js.map +0 -1
- package/lib/module/css/platform/web/animationParser.js.map +0 -1
- package/lib/module/css/platform/web/config.js.map +0 -1
- package/lib/module/css/platform/web/domUtils.js.map +0 -1
- package/lib/module/css/platform/web/index.js +0 -7
- package/lib/module/css/platform/web/index.js.map +0 -1
- package/lib/module/css/platform/web/normalization/index.js +0 -4
- package/lib/module/css/platform/web/normalization/index.js.map +0 -1
- package/lib/module/css/platform/web/normalization/transition.js.map +0 -1
- package/lib/module/css/platform/web/style/builderFactories.js.map +0 -1
- package/lib/module/css/platform/web/style/builders/index.js +0 -4
- package/lib/module/css/platform/web/style/builders/index.js.map +0 -1
- package/lib/module/css/platform/web/style/builders/shadows.js.map +0 -1
- package/lib/module/css/platform/web/style/index.js +0 -6
- package/lib/module/css/platform/web/style/index.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/colors.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/filter.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/font.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/index.js +0 -9
- package/lib/module/css/platform/web/style/processors/index.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/margins.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/paddings.js.map +0 -1
- package/lib/module/css/platform/web/style/processors/transforms.js.map +0 -1
- package/lib/module/css/platform/web/style/types.js.map +0 -1
- package/lib/module/css/platform/web/utils.js.map +0 -1
- package/lib/module/css/registry/CSSKeyframesRegistry.js +0 -66
- package/lib/module/css/registry/CSSKeyframesRegistry.js.map +0 -1
- package/lib/module/css/registry/CSSKeyframesRegistry.web.js +0 -5
- package/lib/module/css/registry/CSSKeyframesRegistry.web.js.map +0 -1
- package/lib/module/css/registry/index.js +0 -4
- package/lib/module/css/registry/index.js.map +0 -1
- package/lib/module/featureFlags/dynamicFlags.js +0 -30
- package/lib/module/featureFlags/dynamicFlags.js.map +0 -1
- package/lib/typescript/css/easings/cubicBezier.d.ts.map +0 -1
- package/lib/typescript/css/easings/index.d.ts.map +0 -1
- package/lib/typescript/css/easings/linear.d.ts.map +0 -1
- package/lib/typescript/css/easings/steps.d.ts.map +0 -1
- package/lib/typescript/css/easings/types.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSAnimationsManager.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSAnimationsManager.web.d.ts +0 -16
- package/lib/typescript/css/managers/CSSAnimationsManager.web.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSManager.d.ts +0 -13
- package/lib/typescript/css/managers/CSSManager.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSManager.web.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSTransitionsManager.d.ts.map +0 -1
- package/lib/typescript/css/managers/CSSTransitionsManager.web.d.ts.map +0 -1
- package/lib/typescript/css/managers/index.d.ts.map +0 -1
- package/lib/typescript/css/models/CSSKeyframesRule.d.ts +0 -9
- package/lib/typescript/css/models/CSSKeyframesRule.d.ts.map +0 -1
- package/lib/typescript/css/models/CSSKeyframesRule.web.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/config.d.ts +0 -5
- package/lib/typescript/css/platform/native/config.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/index.d.ts +0 -5
- package/lib/typescript/css/platform/native/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/native.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/animation/constants.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/animation/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/animation/keyframes.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/animation/properties.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/animation/settings.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/common/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/common/settings.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/transition/config.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/transition/constants.d.ts +0 -3
- package/lib/typescript/css/platform/native/normalization/transition/constants.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/transition/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/transition/settings.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/normalization/transition/shorthand.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/builderFactory.d.ts +0 -4
- package/lib/typescript/css/platform/native/style/builderFactory.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/index.d.ts +0 -4
- package/lib/typescript/css/platform/native/style/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/colors.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/font.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/insets.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/others.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/processors/transform.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/style/types.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/styleBuilder.d.ts +0 -3
- package/lib/typescript/css/platform/native/styleBuilder.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/types/animation.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/types/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/native/types/transition.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/animationParser.d.ts +0 -3
- package/lib/typescript/css/platform/web/animationParser.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/config.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/domUtils.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/normalization/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/normalization/transition.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/builderFactories.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/builders/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/builders/shadows.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/colors.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/filter.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/font.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/index.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/margins.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/paddings.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/processors/transforms.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/style/types.d.ts.map +0 -1
- package/lib/typescript/css/platform/web/utils.d.ts.map +0 -1
- package/lib/typescript/css/registry/CSSKeyframesRegistry.d.ts.map +0 -1
- package/lib/typescript/css/registry/CSSKeyframesRegistry.web.d.ts +0 -3
- package/lib/typescript/css/registry/CSSKeyframesRegistry.web.d.ts.map +0 -1
- package/lib/typescript/css/registry/index.d.ts +0 -2
- package/lib/typescript/css/registry/index.d.ts.map +0 -1
- package/lib/typescript/featureFlags/dynamicFlags.d.ts +0 -11
- package/lib/typescript/featureFlags/dynamicFlags.d.ts.map +0 -1
- package/src/css/models/CSSKeyframesRule.ts +0 -20
- package/src/css/platform/native/index.ts +0 -5
- package/src/css/platform/native/style/index.ts +0 -4
- package/src/css/platform/native/styleBuilder.ts +0 -7
- package/src/css/registry/CSSKeyframesRegistry.ts +0 -86
- package/src/css/registry/CSSKeyframesRegistry.web.ts +0 -3
- /package/Common/cpp/reanimated/CSS/common/{Quaternion.h → transforms/Quaternion.h} +0 -0
- /package/Common/cpp/reanimated/CSS/{config → configs}/common.h +0 -0
- /package/Common/cpp/reanimated/CSS/{registry → registries}/StaticPropsRegistry.h +0 -0
- /package/Common/cpp/reanimated/CSS/{util → utils}/DelayedItemsManager.h +0 -0
- /package/Common/cpp/reanimated/CSS/{util → utils}/algorithms.h +0 -0
- /package/Common/cpp/reanimated/CSS/{util → utils}/interpolators.h +0 -0
- /package/lib/module/css/{easings → easing}/types.js +0 -0
- /package/lib/module/css/{managers → native/managers}/index.js +0 -0
- /package/lib/module/css/{platform/native → native}/normalization/animation/constants.js +0 -0
- /package/lib/module/css/{platform/native → native}/normalization/transition/constants.js +0 -0
- /package/lib/module/css/{platform/native → native}/style/processors/insets.js +0 -0
- /package/lib/module/css/{platform/native → native}/style/types.js +0 -0
- /package/lib/module/css/{platform/native → native}/types/animation.js +0 -0
- /package/lib/module/css/{platform/native → native}/types/index.js +0 -0
- /package/lib/module/css/{platform/native → native}/types/transition.js +0 -0
- /package/lib/module/css/{platform/web → web}/style/types.js +0 -0
- /package/lib/typescript/css/{easings → easing}/cubicBezier.d.ts +0 -0
- /package/lib/typescript/css/{easings → easing}/index.d.ts +0 -0
- /package/lib/typescript/css/{easings → easing}/linear.d.ts +0 -0
- /package/lib/typescript/css/{easings → easing}/steps.d.ts +0 -0
- /package/lib/typescript/css/{easings → easing}/types.d.ts +0 -0
- /package/lib/typescript/css/{managers → native/managers}/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/normalization/animation/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/normalization/common/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/normalization/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/normalization/transition/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/style/processors/font.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/style/processors/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/style/processors/insets.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/style/processors/others.d.ts +0 -0
- /package/lib/typescript/css/{platform/native → native}/types/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/domUtils.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/normalization/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/builders/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/builders/shadows.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/colors.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/filter.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/font.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/index.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/margins.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/paddings.d.ts +0 -0
- /package/lib/typescript/css/{platform/web → web}/style/processors/transforms.d.ts +0 -0
- /package/src/css/{easings → easing}/cubicBezier.ts +0 -0
- /package/src/css/{easings → easing}/index.ts +0 -0
- /package/src/css/{easings → easing}/linear.ts +0 -0
- /package/src/css/{easings → easing}/steps.ts +0 -0
- /package/src/css/{easings → easing}/types.ts +0 -0
- /package/src/css/{managers → native/managers}/index.ts +0 -0
- /package/src/css/{platform/native → native}/normalization/animation/index.ts +0 -0
- /package/src/css/{platform/native → native}/normalization/common/index.ts +0 -0
- /package/src/css/{platform/native → native}/normalization/index.ts +0 -0
- /package/src/css/{platform/native → native}/normalization/transition/index.ts +0 -0
- /package/src/css/{platform/native → native}/style/processors/index.ts +0 -0
- /package/src/css/{platform/native → native}/style/processors/insets.ts +0 -0
- /package/src/css/{platform/native → native}/types/index.ts +0 -0
- /package/src/css/{platform/web → web}/normalization/index.ts +0 -0
- /package/src/css/{platform/web → web}/style/builders/index.ts +0 -0
- /package/src/css/{platform/web → web}/style/index.ts +0 -0
- /package/src/css/{platform/web → web}/style/processors/index.ts +0 -0
- /package/src/css/{platform/web → web}/style/processors/margins.ts +0 -0
- /package/src/css/{platform/web → web}/style/processors/paddings.ts +0 -0
- /package/src/css/{platform/web → web}/style/processors/transforms.ts +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include <array>
|
|
4
|
+
#include <string>
|
|
5
|
+
#include <unordered_map>
|
|
6
|
+
|
|
7
|
+
namespace reanimated::css {
|
|
8
|
+
|
|
9
|
+
enum class TransformOp {
|
|
10
|
+
Perspective,
|
|
11
|
+
Rotate,
|
|
12
|
+
RotateX,
|
|
13
|
+
RotateY,
|
|
14
|
+
RotateZ,
|
|
15
|
+
Scale,
|
|
16
|
+
ScaleX,
|
|
17
|
+
ScaleY,
|
|
18
|
+
TranslateX,
|
|
19
|
+
TranslateY,
|
|
20
|
+
SkewX,
|
|
21
|
+
SkewY,
|
|
22
|
+
Matrix,
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
TransformOp getTransformOperationType(const std::string &property);
|
|
26
|
+
|
|
27
|
+
std::string getOperationNameFromType(const TransformOp type);
|
|
28
|
+
|
|
29
|
+
} // namespace reanimated::css
|
|
@@ -1,7 +1,70 @@
|
|
|
1
|
-
#include <reanimated/CSS/common/vectors.h>
|
|
1
|
+
#include <reanimated/CSS/common/transforms/vectors.h>
|
|
2
2
|
|
|
3
3
|
namespace reanimated::css {
|
|
4
4
|
|
|
5
|
+
// Vector2D
|
|
6
|
+
|
|
7
|
+
double &Vector2D::operator[](const size_t idx) {
|
|
8
|
+
return vec[idx];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const double &Vector2D::operator[](const size_t idx) const {
|
|
12
|
+
return vec[idx];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
Vector2D &Vector2D::operator*=(const double scalar) {
|
|
16
|
+
vec[0] *= scalar;
|
|
17
|
+
vec[1] *= scalar;
|
|
18
|
+
return *this;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
#ifndef NDEBUG
|
|
22
|
+
|
|
23
|
+
std::ostream &operator<<(std::ostream &os, const Vector2D &vector) {
|
|
24
|
+
os << "Vector2D(" << vector.vec[0] << ", " << vector.vec[1] << ")";
|
|
25
|
+
return os;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
#endif // NDEBUG
|
|
29
|
+
|
|
30
|
+
double Vector2D::length() const {
|
|
31
|
+
return std::hypot(vec[0], vec[1]);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
void Vector2D::scaleToLength(double targetLength) {
|
|
35
|
+
double currentLength = length();
|
|
36
|
+
if (currentLength != 0) {
|
|
37
|
+
double factor = targetLength / currentLength;
|
|
38
|
+
vec[0] *= factor;
|
|
39
|
+
vec[1] *= factor;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
void Vector2D::normalize() {
|
|
44
|
+
scaleToLength(1);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
double Vector2D::dot(const Vector2D &other) const {
|
|
48
|
+
return vec[0] * other.vec[0] + vec[1] * other.vec[1];
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
double Vector2D::cross(const Vector2D &other) const {
|
|
52
|
+
return vec[0] * other.vec[1] - vec[1] * other.vec[0];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
Vector2D Vector2D::addScaled(const Vector2D &other, const double scale) const {
|
|
56
|
+
return Vector2D{vec[0] + scale * other.vec[0], vec[1] + scale * other.vec[1]};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
Vector2D Vector2D::interpolate(const double progress, const Vector2D &other)
|
|
60
|
+
const {
|
|
61
|
+
return Vector2D{
|
|
62
|
+
vec[0] + progress * (other.vec[0] - vec[0]),
|
|
63
|
+
vec[1] + progress * (other.vec[1] - vec[1])};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Vector3D
|
|
67
|
+
|
|
5
68
|
double &Vector3D::operator[](const size_t idx) {
|
|
6
69
|
return vec[idx];
|
|
7
70
|
}
|
|
@@ -71,6 +134,8 @@ Vector3D Vector3D::interpolate(const double progress, const Vector3D &other)
|
|
|
71
134
|
vec[2] + progress * (other.vec[2] - vec[2])};
|
|
72
135
|
}
|
|
73
136
|
|
|
137
|
+
// Vector4D
|
|
138
|
+
|
|
74
139
|
double &Vector4D::operator[](const size_t idx) {
|
|
75
140
|
return vec[idx];
|
|
76
141
|
}
|
|
@@ -11,6 +11,30 @@
|
|
|
11
11
|
|
|
12
12
|
namespace reanimated::css {
|
|
13
13
|
|
|
14
|
+
struct Vector2D {
|
|
15
|
+
std::array<double, 2> vec;
|
|
16
|
+
|
|
17
|
+
Vector2D() : vec({0, 0}) {}
|
|
18
|
+
explicit Vector2D(double x, double y) : vec({x, y}) {}
|
|
19
|
+
explicit Vector2D(std::array<double, 2> vec) : vec(vec) {}
|
|
20
|
+
|
|
21
|
+
double &operator[](size_t idx);
|
|
22
|
+
const double &operator[](size_t idx) const;
|
|
23
|
+
Vector2D &operator*=(double scalar);
|
|
24
|
+
|
|
25
|
+
#ifndef NDEBUG
|
|
26
|
+
friend std::ostream &operator<<(std::ostream &os, const Vector2D &vector);
|
|
27
|
+
#endif // NDEBUG
|
|
28
|
+
|
|
29
|
+
double length() const;
|
|
30
|
+
void scaleToLength(double targetLength);
|
|
31
|
+
void normalize();
|
|
32
|
+
double dot(const Vector2D &other) const;
|
|
33
|
+
double cross(const Vector2D &other) const;
|
|
34
|
+
Vector2D addScaled(const Vector2D &other, double scale) const;
|
|
35
|
+
Vector2D interpolate(double progress, const Vector2D &other) const;
|
|
36
|
+
};
|
|
37
|
+
|
|
14
38
|
struct Vector3D {
|
|
15
39
|
std::array<double, 3> vec;
|
|
16
40
|
|
|
@@ -42,6 +42,8 @@ CSSAngle::CSSAngle(const std::string &rotationString) {
|
|
|
42
42
|
this->value = numericValue * it->second;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
CSSAngle::CSSAngle(const char *cstr) : CSSAngle(std::string_view{cstr}) {}
|
|
46
|
+
|
|
45
47
|
CSSAngle::CSSAngle(jsi::Runtime &rt, const jsi::Value &jsiValue) {
|
|
46
48
|
if (!jsiValue.isString()) {
|
|
47
49
|
throw std::invalid_argument(
|
|
@@ -53,9 +55,22 @@ CSSAngle::CSSAngle(jsi::Runtime &rt, const jsi::Value &jsiValue) {
|
|
|
53
55
|
*this = CSSAngle(strValue);
|
|
54
56
|
}
|
|
55
57
|
|
|
58
|
+
CSSAngle::CSSAngle(const folly::dynamic &value) {
|
|
59
|
+
if (!value.isString()) {
|
|
60
|
+
throw std::invalid_argument(
|
|
61
|
+
"[Reanimated] CSSAngle: Invalid value type: " + folly::toJson(value));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
*this = CSSAngle(value.asString());
|
|
65
|
+
}
|
|
66
|
+
|
|
56
67
|
bool CSSAngle::canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue) {
|
|
57
68
|
// TODO - improve canConstruct check and add check for string correctness
|
|
58
|
-
return jsiValue.isString();
|
|
69
|
+
return jsiValue.isString() || jsiValue.isNumber();
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
bool CSSAngle::canConstruct(const folly::dynamic &value) {
|
|
73
|
+
return value.isString() || value.isNumber();
|
|
59
74
|
}
|
|
60
75
|
|
|
61
76
|
folly::dynamic CSSAngle::toDynamic() const {
|
|
@@ -4,10 +4,12 @@
|
|
|
4
4
|
|
|
5
5
|
#include <worklets/Tools/JSISerializer.h>
|
|
6
6
|
|
|
7
|
+
#include <folly/json.h>
|
|
7
8
|
#include <iomanip>
|
|
8
9
|
#include <regex>
|
|
9
10
|
#include <sstream>
|
|
10
11
|
#include <string>
|
|
12
|
+
#include <string_view>
|
|
11
13
|
#include <unordered_map>
|
|
12
14
|
|
|
13
15
|
namespace reanimated::css {
|
|
@@ -20,9 +22,12 @@ struct CSSAngle : public CSSSimpleValue<CSSAngle> {
|
|
|
20
22
|
CSSAngle();
|
|
21
23
|
explicit CSSAngle(double value);
|
|
22
24
|
explicit CSSAngle(const std::string &rotationString);
|
|
25
|
+
explicit CSSAngle(const char *cstr);
|
|
23
26
|
explicit CSSAngle(jsi::Runtime &rt, const jsi::Value &jsiValue);
|
|
27
|
+
explicit CSSAngle(const folly::dynamic &value);
|
|
24
28
|
|
|
25
29
|
static bool canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue);
|
|
30
|
+
static bool canConstruct(const folly::dynamic &value);
|
|
26
31
|
|
|
27
32
|
folly::dynamic toDynamic() const override;
|
|
28
33
|
std::string toString() const override;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
#include <folly/json.h>
|
|
2
1
|
#include <reanimated/CSS/common/values/CSSColor.h>
|
|
3
2
|
|
|
4
3
|
namespace reanimated::css {
|
|
@@ -9,6 +8,39 @@ CSSColor::CSSColor()
|
|
|
9
8
|
CSSColor::CSSColor(ColorType colorType)
|
|
10
9
|
: channels{0, 0, 0, 0}, colorType(colorType) {}
|
|
11
10
|
|
|
11
|
+
CSSColor::CSSColor(int64_t numberValue)
|
|
12
|
+
: channels{0, 0, 0, 0}, colorType(ColorType::Rgba) {
|
|
13
|
+
uint32_t color;
|
|
14
|
+
// On Android, colors are represented as signed 32-bit integers. In JS, we use
|
|
15
|
+
// a bitwise operation (normalizedColor = normalizedColor | 0x0) to ensure the
|
|
16
|
+
// value is treated as a signed int, causing numbers above 2^31 to become
|
|
17
|
+
// negative. To correctly interpret these in C++, we cast negative values to
|
|
18
|
+
// int32_t to preserve their bit pattern, then assign to uint32_t. This wraps
|
|
19
|
+
// the bits (modulo 2^32), effectively reversing the JS-side bit shift.
|
|
20
|
+
if (numberValue < 0) {
|
|
21
|
+
color = static_cast<int32_t>(numberValue);
|
|
22
|
+
} else {
|
|
23
|
+
color = static_cast<uint32_t>(numberValue);
|
|
24
|
+
}
|
|
25
|
+
channels[0] = (color >> 16) & 0xFF; // Red
|
|
26
|
+
channels[1] = (color >> 8) & 0xFF; // Green
|
|
27
|
+
channels[2] = color & 0xFF; // Blue
|
|
28
|
+
channels[3] = (color >> 24) & 0xFF; // Alpha
|
|
29
|
+
colorType = ColorType::Rgba;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
CSSColor::CSSColor(const std::string &colorString)
|
|
33
|
+
: channels{0, 0, 0, 0}, colorType(ColorType::Transparent) {
|
|
34
|
+
if (colorString == "transparent") {
|
|
35
|
+
colorType = ColorType::Transparent;
|
|
36
|
+
} else if (colorString == "currentColor") {
|
|
37
|
+
colorType = ColorType::CurrentColor;
|
|
38
|
+
} else {
|
|
39
|
+
throw std::invalid_argument(
|
|
40
|
+
"[Reanimated] CSSColor: Invalid string value: " + colorString);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
12
44
|
CSSColor::CSSColor(const uint8_t r, const uint8_t g, const uint8_t b)
|
|
13
45
|
: channels{r, g, b, 255}, colorType(ColorType::Rgba) {}
|
|
14
46
|
|
|
@@ -26,26 +58,14 @@ CSSColor::CSSColor(const ColorChannels &colorChannels)
|
|
|
26
58
|
CSSColor::CSSColor(jsi::Runtime &rt, const jsi::Value &jsiValue)
|
|
27
59
|
: channels{0, 0, 0, 0}, colorType(ColorType::Transparent) {
|
|
28
60
|
if (jsiValue.isNumber()) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
color = static_cast<uint32_t>(numberValue);
|
|
35
|
-
}
|
|
36
|
-
channels[0] = (color >> 16) & 0xFF; // Red
|
|
37
|
-
channels[1] = (color >> 8) & 0xFF; // Green
|
|
38
|
-
channels[2] = color & 0xFF; // Blue
|
|
39
|
-
channels[3] = (color >> 24) & 0xFF; // Alpha
|
|
40
|
-
colorType = ColorType::Rgba;
|
|
41
|
-
} else if (
|
|
42
|
-
jsiValue.isUndefined() ||
|
|
43
|
-
(jsiValue.isString() &&
|
|
44
|
-
jsiValue.getString(rt).utf8(rt) == "transparent")) {
|
|
45
|
-
colorType = ColorType::Transparent;
|
|
61
|
+
*this = CSSColor(jsiValue.getNumber());
|
|
62
|
+
} else if (jsiValue.isString()) {
|
|
63
|
+
*this = CSSColor(jsiValue.getString(rt).utf8(rt));
|
|
64
|
+
} else if (jsiValue.isUndefined()) {
|
|
65
|
+
*this = Transparent;
|
|
46
66
|
} else {
|
|
47
67
|
throw std::invalid_argument(
|
|
48
|
-
"[Reanimated] CSSColor: Invalid value
|
|
68
|
+
"[Reanimated] CSSColor: Invalid value: " +
|
|
49
69
|
stringifyJSIValue(rt, jsiValue));
|
|
50
70
|
}
|
|
51
71
|
}
|
|
@@ -53,36 +73,26 @@ CSSColor::CSSColor(jsi::Runtime &rt, const jsi::Value &jsiValue)
|
|
|
53
73
|
CSSColor::CSSColor(const folly::dynamic &value)
|
|
54
74
|
: channels{0, 0, 0, 0}, colorType(ColorType::Transparent) {
|
|
55
75
|
if (value.isNumber()) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
color = static_cast<uint32_t>(numberValue);
|
|
62
|
-
}
|
|
63
|
-
channels[0] = (color >> 16) & 0xFF; // Red
|
|
64
|
-
channels[1] = (color >> 8) & 0xFF; // Green
|
|
65
|
-
channels[2] = color & 0xFF; // Blue
|
|
66
|
-
channels[3] = (color >> 24) & 0xFF; // Alpha
|
|
67
|
-
colorType = ColorType::Rgba;
|
|
68
|
-
} else if (
|
|
69
|
-
value.empty() ||
|
|
70
|
-
(value.isString() && value.getString() == "transparent")) {
|
|
71
|
-
colorType = ColorType::Transparent;
|
|
76
|
+
*this = CSSColor(value.asInt());
|
|
77
|
+
} else if (value.isString()) {
|
|
78
|
+
*this = CSSColor(value.getString());
|
|
79
|
+
} else if (value.empty()) {
|
|
80
|
+
*this = Transparent;
|
|
72
81
|
} else {
|
|
73
82
|
throw std::invalid_argument(
|
|
74
|
-
"[Reanimated] CSSColor: Invalid value
|
|
83
|
+
"[Reanimated] CSSColor: Invalid value: " + folly::toJson(value));
|
|
75
84
|
}
|
|
76
85
|
}
|
|
77
86
|
|
|
78
87
|
bool CSSColor::canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue) {
|
|
79
|
-
|
|
80
|
-
|
|
88
|
+
return jsiValue.isNumber() || jsiValue.isUndefined() ||
|
|
89
|
+
(jsiValue.isString() &&
|
|
90
|
+
isValidColorString(jsiValue.getString(rt).utf8(rt)));
|
|
81
91
|
}
|
|
82
92
|
|
|
83
93
|
bool CSSColor::canConstruct(const folly::dynamic &value) {
|
|
84
|
-
|
|
85
|
-
|
|
94
|
+
return value.isNumber() || value.empty() ||
|
|
95
|
+
(value.isString() && isValidColorString(value.getString()));
|
|
86
96
|
}
|
|
87
97
|
|
|
88
98
|
folly::dynamic CSSColor::toDynamic() const {
|
|
@@ -98,16 +108,20 @@ std::string CSSColor::toString() const {
|
|
|
98
108
|
return "rgba(" + std::to_string(channels[0]) + "," +
|
|
99
109
|
std::to_string(channels[1]) + "," + std::to_string(channels[2]) + "," +
|
|
100
110
|
std::to_string(channels[3]) + ")";
|
|
101
|
-
} else {
|
|
102
|
-
return "transparent";
|
|
103
111
|
}
|
|
112
|
+
if (colorType == ColorType::CurrentColor) {
|
|
113
|
+
return "currentColor";
|
|
114
|
+
}
|
|
115
|
+
return "transparent";
|
|
104
116
|
}
|
|
105
117
|
|
|
106
118
|
CSSColor CSSColor::interpolate(const double progress, const CSSColor &to)
|
|
107
119
|
const {
|
|
108
|
-
if (to.colorType == ColorType::Transparent &&
|
|
109
|
-
|
|
110
|
-
|
|
120
|
+
if ((to.colorType == ColorType::Transparent &&
|
|
121
|
+
colorType == ColorType::Transparent) ||
|
|
122
|
+
colorType == ColorType::CurrentColor ||
|
|
123
|
+
to.colorType == ColorType::CurrentColor) {
|
|
124
|
+
return progress < 0.5 ? *this : to;
|
|
111
125
|
}
|
|
112
126
|
|
|
113
127
|
ColorChannels fromChannels = channels;
|
|
@@ -152,4 +166,8 @@ std::ostream &operator<<(std::ostream &os, const CSSColor &colorValue) {
|
|
|
152
166
|
|
|
153
167
|
#endif // NDEBUG
|
|
154
168
|
|
|
169
|
+
bool CSSColor::isValidColorString(const std::string &colorString) {
|
|
170
|
+
return colorString == "transparent" || colorString == "currentColor";
|
|
171
|
+
}
|
|
172
|
+
|
|
155
173
|
} // namespace reanimated::css
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#include <worklets/Tools/JSISerializer.h>
|
|
7
7
|
|
|
8
|
+
#include <folly/json.h>
|
|
8
9
|
#include <string>
|
|
9
10
|
|
|
10
11
|
namespace reanimated::css {
|
|
@@ -14,6 +15,7 @@ using namespace worklets;
|
|
|
14
15
|
enum class ColorType {
|
|
15
16
|
Rgba,
|
|
16
17
|
Transparent,
|
|
18
|
+
CurrentColor, // for SVG
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
struct CSSColor : public CSSSimpleValue<CSSColor> {
|
|
@@ -24,9 +26,13 @@ struct CSSColor : public CSSSimpleValue<CSSColor> {
|
|
|
24
26
|
|
|
25
27
|
CSSColor();
|
|
26
28
|
explicit CSSColor(ColorType colorType);
|
|
29
|
+
explicit CSSColor(int64_t numberValue);
|
|
30
|
+
explicit CSSColor(const std::string &colorString);
|
|
31
|
+
|
|
27
32
|
explicit CSSColor(uint8_t r, uint8_t g, uint8_t b);
|
|
28
33
|
explicit CSSColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a);
|
|
29
34
|
explicit CSSColor(const ColorChannels &colorChannels);
|
|
35
|
+
|
|
30
36
|
explicit CSSColor(jsi::Runtime &rt, const jsi::Value &jsiValue);
|
|
31
37
|
explicit CSSColor(const folly::dynamic &value);
|
|
32
38
|
|
|
@@ -44,6 +50,9 @@ struct CSSColor : public CSSSimpleValue<CSSColor> {
|
|
|
44
50
|
#ifndef NDEBUG
|
|
45
51
|
friend std::ostream &operator<<(std::ostream &os, const CSSColor &colorValue);
|
|
46
52
|
#endif // NDEBUG
|
|
53
|
+
|
|
54
|
+
private:
|
|
55
|
+
static bool isValidColorString(const std::string &colorString);
|
|
47
56
|
};
|
|
48
57
|
|
|
49
58
|
inline const CSSColor CSSColor::Transparent(ColorType::Transparent);
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
#include <reanimated/CSS/common/values/
|
|
1
|
+
#include <reanimated/CSS/common/values/CSSLength.h>
|
|
2
2
|
|
|
3
3
|
namespace reanimated::css {
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
CSSLength::CSSLength() : value(0), isRelative(false) {}
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
: value(value), isRelative(false) {}
|
|
7
|
+
CSSLength::CSSLength(const double value) : value(value), isRelative(false) {}
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
CSSLength::CSSLength(const double value, const bool isRelative)
|
|
11
10
|
: value(value), isRelative(isRelative) {}
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
CSSLength::CSSLength(const char *value) {
|
|
14
13
|
if (!canConstruct(value)) {
|
|
15
14
|
throw std::invalid_argument(
|
|
16
|
-
"[Reanimated]
|
|
15
|
+
"[Reanimated] CSSLength: Invalid value: " + std::string(value));
|
|
17
16
|
}
|
|
18
17
|
|
|
19
18
|
std::string str = value;
|
|
@@ -22,76 +21,72 @@ CSSDimension::CSSDimension(const char *value) {
|
|
|
22
21
|
this->isRelative = true;
|
|
23
22
|
}
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
CSSLength::CSSLength(jsi::Runtime &rt, const jsi::Value &jsiValue) {
|
|
26
25
|
if (jsiValue.isNumber()) {
|
|
27
26
|
this->value = jsiValue.asNumber();
|
|
28
27
|
this->isRelative = false;
|
|
29
28
|
} else if (jsiValue.isString()) {
|
|
30
29
|
std::string strValue = jsiValue.asString(rt).utf8(rt);
|
|
31
|
-
*this =
|
|
30
|
+
*this = CSSLength(strValue); // Delegate to the string constructor
|
|
32
31
|
} else {
|
|
33
|
-
throw std::runtime_error(
|
|
34
|
-
"[Reanimated] CSSDimension: Unsupported value type");
|
|
32
|
+
throw std::runtime_error("[Reanimated] CSSLength: Unsupported value type");
|
|
35
33
|
}
|
|
36
34
|
}
|
|
37
35
|
|
|
38
|
-
|
|
36
|
+
CSSLength::CSSLength(const folly::dynamic &value) {
|
|
39
37
|
if (value.isNumber()) {
|
|
40
38
|
this->value = value.getDouble();
|
|
41
39
|
this->isRelative = false;
|
|
42
40
|
} else if (value.isString()) {
|
|
43
41
|
std::string strValue = value.getString();
|
|
44
|
-
*this =
|
|
45
|
-
CSSDimension(strValue.c_str()); // Delegate to the string constructor
|
|
42
|
+
*this = CSSLength(strValue.c_str()); // Delegate to the string constructor
|
|
46
43
|
} else {
|
|
47
|
-
throw std::runtime_error(
|
|
48
|
-
"[Reanimated] CSSDimension: Unsupported value type");
|
|
44
|
+
throw std::runtime_error("[Reanimated] CSSLength: Unsupported value type");
|
|
49
45
|
}
|
|
50
46
|
}
|
|
51
47
|
|
|
52
|
-
bool
|
|
48
|
+
bool CSSLength::canConstruct(const std::string &value) {
|
|
53
49
|
return !value.empty() && value.back() == '%';
|
|
54
50
|
}
|
|
55
51
|
|
|
56
|
-
bool
|
|
57
|
-
|
|
58
|
-
return !str.empty() && str.back() == '%';
|
|
52
|
+
bool CSSLength::canConstruct(const char *value) {
|
|
53
|
+
return canConstruct(std::string(value));
|
|
59
54
|
}
|
|
60
55
|
|
|
61
|
-
bool
|
|
56
|
+
bool CSSLength::canConstruct(jsi::Runtime &rt, const jsi::Value &jsiValue) {
|
|
62
57
|
return jsiValue.isNumber() ||
|
|
63
58
|
(jsiValue.isString() && canConstruct(jsiValue.getString(rt).utf8(rt)));
|
|
64
59
|
}
|
|
65
60
|
|
|
66
|
-
bool
|
|
61
|
+
bool CSSLength::canConstruct(const folly::dynamic &value) {
|
|
67
62
|
return value.isNumber() ||
|
|
68
63
|
(value.isString() && canConstruct(value.getString()));
|
|
69
64
|
}
|
|
70
65
|
|
|
71
|
-
folly::dynamic
|
|
66
|
+
folly::dynamic CSSLength::toDynamic() const {
|
|
72
67
|
if (isRelative) {
|
|
73
68
|
return std::to_string(value * 100) + "%";
|
|
74
69
|
}
|
|
75
70
|
return value;
|
|
76
71
|
}
|
|
77
72
|
|
|
78
|
-
std::string
|
|
73
|
+
std::string CSSLength::toString() const {
|
|
79
74
|
if (isRelative) {
|
|
80
75
|
return std::to_string(value * 100) + "%";
|
|
81
76
|
}
|
|
82
77
|
return std::to_string(value);
|
|
83
78
|
}
|
|
84
79
|
|
|
85
|
-
|
|
80
|
+
CSSLength CSSLength::interpolate(
|
|
86
81
|
const double progress,
|
|
87
|
-
const
|
|
82
|
+
const CSSLength &to,
|
|
88
83
|
const CSSResolvableValueInterpolationContext &context) const {
|
|
89
84
|
// If both value types are the same, we can interpolate without reading the
|
|
90
85
|
// relative value from the shadow node
|
|
91
86
|
// (also, when one of the values is 0, and the other is relative)
|
|
92
87
|
if ((isRelative == to.isRelative) || (isRelative && to.value == 0) ||
|
|
93
88
|
(to.isRelative && value == 0)) {
|
|
94
|
-
return
|
|
89
|
+
return CSSLength(
|
|
95
90
|
value + (to.value - value) * progress, isRelative || to.isRelative);
|
|
96
91
|
}
|
|
97
92
|
// Otherwise, we need to read the relative value from the shadow node and
|
|
@@ -102,12 +97,12 @@ CSSDimension CSSDimension::interpolate(
|
|
|
102
97
|
if (!resolvedFrom.has_value() || !resolvedTo.has_value()) {
|
|
103
98
|
return progress < 0.5 ? *this : to;
|
|
104
99
|
}
|
|
105
|
-
return
|
|
100
|
+
return CSSLength(
|
|
106
101
|
resolvedFrom.value() +
|
|
107
102
|
(resolvedTo.value() - resolvedFrom.value()) * progress);
|
|
108
103
|
}
|
|
109
104
|
|
|
110
|
-
std::optional<double>
|
|
105
|
+
std::optional<double> CSSLength::resolve(
|
|
111
106
|
const CSSResolvableValueInterpolationContext &context) const {
|
|
112
107
|
if (!isRelative) {
|
|
113
108
|
return value;
|
|
@@ -129,14 +124,14 @@ std::optional<double> CSSDimension::resolve(
|
|
|
129
124
|
return value * relativeValue.getNumber();
|
|
130
125
|
}
|
|
131
126
|
|
|
132
|
-
bool
|
|
127
|
+
bool CSSLength::operator==(const CSSLength &other) const {
|
|
133
128
|
return value == other.value && isRelative == other.isRelative;
|
|
134
129
|
}
|
|
135
130
|
|
|
136
131
|
#ifndef NDEBUG
|
|
137
132
|
|
|
138
|
-
std::ostream &operator<<(std::ostream &os, const
|
|
139
|
-
os << "
|
|
133
|
+
std::ostream &operator<<(std::ostream &os, const CSSLength &value) {
|
|
134
|
+
os << "CSSLength(" << value.toString() << ")";
|
|
140
135
|
return os;
|
|
141
136
|
}
|
|
142
137
|
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
|
|
7
7
|
namespace reanimated::css {
|
|
8
8
|
|
|
9
|
-
struct
|
|
9
|
+
struct CSSLength : public CSSResolvableValue<CSSLength, double> {
|
|
10
10
|
double value;
|
|
11
11
|
bool isRelative;
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
explicit
|
|
15
|
-
explicit
|
|
16
|
-
explicit
|
|
17
|
-
explicit
|
|
18
|
-
explicit
|
|
13
|
+
CSSLength();
|
|
14
|
+
explicit CSSLength(double value);
|
|
15
|
+
explicit CSSLength(double value, bool isRelative);
|
|
16
|
+
explicit CSSLength(const char *value);
|
|
17
|
+
explicit CSSLength(jsi::Runtime &rt, const jsi::Value &jsiValue);
|
|
18
|
+
explicit CSSLength(const folly::dynamic &value);
|
|
19
19
|
|
|
20
20
|
static bool canConstruct(const std::string &value);
|
|
21
21
|
static bool canConstruct(const char *value);
|
|
@@ -24,19 +24,17 @@ struct CSSDimension : public CSSResolvableValue<CSSDimension, double> {
|
|
|
24
24
|
|
|
25
25
|
folly::dynamic toDynamic() const override;
|
|
26
26
|
std::string toString() const override;
|
|
27
|
-
|
|
27
|
+
CSSLength interpolate(
|
|
28
28
|
double progress,
|
|
29
|
-
const
|
|
29
|
+
const CSSLength &to,
|
|
30
30
|
const CSSResolvableValueInterpolationContext &context) const override;
|
|
31
31
|
std::optional<double> resolve(
|
|
32
32
|
const CSSResolvableValueInterpolationContext &context) const override;
|
|
33
33
|
|
|
34
|
-
bool operator==(const
|
|
34
|
+
bool operator==(const CSSLength &other) const;
|
|
35
35
|
|
|
36
36
|
#ifndef NDEBUG
|
|
37
|
-
friend std::ostream &operator<<(
|
|
38
|
-
std::ostream &os,
|
|
39
|
-
const CSSDimension &dimension);
|
|
37
|
+
friend std::ostream &operator<<(std::ostream &os, const CSSLength &dimension);
|
|
40
38
|
#endif // NDEBUG
|
|
41
39
|
};
|
|
42
40
|
|
|
@@ -91,7 +91,7 @@ class CSSValueVariant final : public CSSValue {
|
|
|
91
91
|
// Otherwise, try each type in turn
|
|
92
92
|
if (!tryConstruct(std::forward<TValue>(value))) {
|
|
93
93
|
throw std::runtime_error(
|
|
94
|
-
"[
|
|
94
|
+
"[Reanimated] No compatible type found for construction");
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}
|
|
@@ -220,7 +220,7 @@ class CSSValueVariant final : public CSSValue {
|
|
|
220
220
|
// For construction from a non-jsi::Value, we perform a runtime
|
|
221
221
|
// canConstruct check only if the type has a canConstruct method.
|
|
222
222
|
// (this is needed e.g. when different CSS value types can be
|
|
223
|
-
// constructed from the same value type, like
|
|
223
|
+
// constructed from the same value type, like CSSLength and
|
|
224
224
|
// CSSKeyword)
|
|
225
225
|
if (!TCSSValue::canConstruct(std::forward<TValue>(value))) {
|
|
226
226
|
return false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
|
|
3
|
-
#include <reanimated/CSS/
|
|
4
|
-
#include <reanimated/CSS/
|
|
3
|
+
#include <reanimated/CSS/configs/CSSKeyframesConfig.h>
|
|
4
|
+
#include <reanimated/CSS/configs/common.h>
|
|
5
5
|
#include <reanimated/CSS/easing/EasingFunctions.h>
|
|
6
6
|
|
|
7
7
|
#include <memory>
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
#include <reanimated/CSS/
|
|
1
|
+
#include <reanimated/CSS/configs/CSSKeyframesConfig.h>
|
|
2
2
|
|
|
3
3
|
namespace reanimated::css {
|
|
4
4
|
|
|
5
|
-
std::shared_ptr<AnimationStyleInterpolator>
|
|
5
|
+
std::shared_ptr<AnimationStyleInterpolator> createStyleInterpolator(
|
|
6
6
|
jsi::Runtime &rt,
|
|
7
7
|
const jsi::Object &config,
|
|
8
|
+
const std::string &componentName,
|
|
8
9
|
const std::shared_ptr<ViewStylesRepository> &viewStylesRepository) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return styleInterpolator;
|
|
10
|
+
return std::make_shared<AnimationStyleInterpolator>(
|
|
11
|
+
rt,
|
|
12
|
+
config.getProperty(rt, "keyframesStyle"),
|
|
13
|
+
componentName,
|
|
14
|
+
viewStylesRepository);
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
std::shared_ptr<KeyframeEasingFunctions> getKeyframeTimingFunctions(
|
|
@@ -40,11 +39,13 @@ std::shared_ptr<KeyframeEasingFunctions> getKeyframeTimingFunctions(
|
|
|
40
39
|
CSSKeyframesConfig parseCSSAnimationKeyframesConfig(
|
|
41
40
|
jsi::Runtime &rt,
|
|
42
41
|
const jsi::Value &config,
|
|
42
|
+
const std::string &componentName,
|
|
43
43
|
const std::shared_ptr<ViewStylesRepository> &viewStylesRepository) {
|
|
44
44
|
const auto &configObj = config.asObject(rt);
|
|
45
45
|
|
|
46
46
|
return {
|
|
47
|
-
|
|
47
|
+
createStyleInterpolator(
|
|
48
|
+
rt, configObj, componentName, viewStylesRepository),
|
|
48
49
|
getKeyframeTimingFunctions(rt, configObj)};
|
|
49
50
|
}
|
|
50
51
|
|