react-native-reanimated 4.0.3 → 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 +6 -3
- package/Common/cpp/reanimated/CSS/interpolation/groups/ArrayPropertiesInterpolator.h +2 -2
- package/Common/cpp/reanimated/CSS/interpolation/groups/RecordPropertiesInterpolator.cpp +17 -9
- 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 +4 -2
- 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 -60
- 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 +2 -2
- 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 -2
- 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 -60
- 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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#pragma once
|
|
2
2
|
|
|
3
|
-
#include <reanimated/CSS/common/TransformMatrix.h>
|
|
4
3
|
#include <reanimated/CSS/common/definitions.h>
|
|
4
|
+
#include <reanimated/CSS/common/transforms/TransformMatrix3D.h>
|
|
5
|
+
#include <reanimated/CSS/common/transforms/TransformOp.h>
|
|
5
6
|
#include <reanimated/CSS/common/values/CSSAngle.h>
|
|
6
|
-
#include <reanimated/CSS/common/values/
|
|
7
|
+
#include <reanimated/CSS/common/values/CSSLength.h>
|
|
7
8
|
#include <reanimated/CSS/common/values/CSSNumber.h>
|
|
8
9
|
|
|
9
10
|
#include <react/renderer/core/ShadowNode.h>
|
|
10
11
|
|
|
11
|
-
#include <folly/dynamic.h>
|
|
12
12
|
#include <memory>
|
|
13
13
|
#include <string>
|
|
14
14
|
#include <unordered_map>
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
#ifndef NDEBUG
|
|
19
19
|
#include <iostream>
|
|
20
|
+
#include <sstream>
|
|
20
21
|
#endif // NDEBUG
|
|
21
22
|
|
|
22
23
|
namespace reanimated::css {
|
|
@@ -24,25 +25,6 @@ namespace reanimated::css {
|
|
|
24
25
|
using namespace facebook;
|
|
25
26
|
using namespace react;
|
|
26
27
|
|
|
27
|
-
enum class TransformOperationType {
|
|
28
|
-
Perspective,
|
|
29
|
-
Rotate,
|
|
30
|
-
RotateX,
|
|
31
|
-
RotateY,
|
|
32
|
-
RotateZ,
|
|
33
|
-
Scale,
|
|
34
|
-
ScaleX,
|
|
35
|
-
ScaleY,
|
|
36
|
-
TranslateX,
|
|
37
|
-
TranslateY,
|
|
38
|
-
SkewX,
|
|
39
|
-
SkewY,
|
|
40
|
-
Matrix,
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
TransformOperationType getTransformOperationType(const std::string &property);
|
|
44
|
-
std::string getOperationNameFromType(TransformOperationType type);
|
|
45
|
-
|
|
46
28
|
// Base struct for TransformOperation
|
|
47
29
|
struct TransformOperation {
|
|
48
30
|
virtual bool operator==(const TransformOperation &other) const = 0;
|
|
@@ -51,163 +33,55 @@ struct TransformOperation {
|
|
|
51
33
|
friend std::ostream &operator<<(
|
|
52
34
|
std::ostream &os,
|
|
53
35
|
const TransformOperation &operation);
|
|
54
|
-
virtual std::string
|
|
36
|
+
virtual std::string stringifyOperationValue() const = 0;
|
|
55
37
|
#endif // NDEBUG
|
|
56
38
|
|
|
57
39
|
std::string getOperationName() const;
|
|
58
|
-
virtual
|
|
40
|
+
virtual TransformOp type() const = 0;
|
|
59
41
|
virtual bool isRelative() const;
|
|
60
42
|
|
|
43
|
+
static std::shared_ptr<TransformOperation> fromJSIValue(
|
|
44
|
+
jsi::Runtime &rt,
|
|
45
|
+
const jsi::Value &value);
|
|
61
46
|
static std::shared_ptr<TransformOperation> fromDynamic(
|
|
62
47
|
const folly::dynamic &value);
|
|
63
48
|
folly::dynamic toDynamic() const;
|
|
64
49
|
virtual folly::dynamic valueToDynamic() const = 0;
|
|
65
50
|
|
|
66
|
-
virtual bool canConvertTo(
|
|
51
|
+
virtual bool canConvertTo(TransformOp type) const;
|
|
67
52
|
virtual std::vector<std::shared_ptr<TransformOperation>> convertTo(
|
|
68
|
-
|
|
53
|
+
TransformOp type) const;
|
|
69
54
|
|
|
70
|
-
virtual
|
|
71
|
-
void assertCanConvertTo(
|
|
55
|
+
virtual TransformMatrix3D toMatrix() const = 0;
|
|
56
|
+
void assertCanConvertTo(TransformOp type) const;
|
|
72
57
|
};
|
|
73
58
|
|
|
74
59
|
using TransformOperations = std::vector<std::shared_ptr<TransformOperation>>;
|
|
75
60
|
|
|
76
|
-
|
|
61
|
+
// Template overload to inherit from in final operation structs
|
|
62
|
+
template <TransformOp TOperation, typename TValue>
|
|
77
63
|
struct TransformOperationBase : public TransformOperation {
|
|
78
64
|
const TValue value;
|
|
79
65
|
|
|
80
|
-
explicit TransformOperationBase(const TValue &value)
|
|
66
|
+
explicit TransformOperationBase(const TValue &value) : value(value) {}
|
|
81
67
|
virtual ~TransformOperationBase() = default;
|
|
82
68
|
|
|
83
|
-
|
|
69
|
+
TransformOp type() const override {
|
|
70
|
+
return TOperation;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
bool operator==(const TransformOperation &other) const override {
|
|
74
|
+
if (type() != other.type()) {
|
|
75
|
+
return false;
|
|
76
|
+
}
|
|
77
|
+
const auto &otherOperation =
|
|
78
|
+
static_cast<const TransformOperationBase<TOperation, TValue> &>(other);
|
|
79
|
+
return value == otherOperation.value;
|
|
80
|
+
}
|
|
84
81
|
|
|
85
82
|
#ifndef NDEBUG
|
|
86
|
-
std::string
|
|
83
|
+
std::string stringifyOperationValue() const override;
|
|
87
84
|
#endif // NDEBUG
|
|
88
85
|
};
|
|
89
86
|
|
|
90
|
-
/**
|
|
91
|
-
* Concrete transform operations
|
|
92
|
-
*/
|
|
93
|
-
// Perspective
|
|
94
|
-
struct PerspectiveOperation final : public TransformOperationBase<CSSDouble> {
|
|
95
|
-
using TransformOperationBase<CSSDouble>::TransformOperationBase;
|
|
96
|
-
explicit PerspectiveOperation(double value);
|
|
97
|
-
TransformOperationType type() const override;
|
|
98
|
-
folly::dynamic valueToDynamic() const override;
|
|
99
|
-
TransformMatrix toMatrix() const override;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
// Rotate
|
|
103
|
-
struct RotateOperation : public TransformOperationBase<CSSAngle> {
|
|
104
|
-
using TransformOperationBase<CSSAngle>::TransformOperationBase;
|
|
105
|
-
explicit RotateOperation(const std::string &value);
|
|
106
|
-
TransformOperationType type() const override;
|
|
107
|
-
folly::dynamic valueToDynamic() const override;
|
|
108
|
-
TransformMatrix toMatrix() const override;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
struct RotateXOperation final : public RotateOperation {
|
|
112
|
-
using RotateOperation::RotateOperation;
|
|
113
|
-
TransformOperationType type() const override;
|
|
114
|
-
TransformMatrix toMatrix() const override;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
struct RotateYOperation final : public RotateOperation {
|
|
118
|
-
using RotateOperation::RotateOperation;
|
|
119
|
-
TransformOperationType type() const override;
|
|
120
|
-
TransformMatrix toMatrix() const override;
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
struct RotateZOperation final : public RotateOperation {
|
|
124
|
-
using RotateOperation::RotateOperation;
|
|
125
|
-
TransformOperationType type() const override;
|
|
126
|
-
TransformMatrix toMatrix() const override;
|
|
127
|
-
bool canConvertTo(TransformOperationType type) const override;
|
|
128
|
-
TransformOperations convertTo(TransformOperationType type) const override;
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
// Scale
|
|
132
|
-
struct ScaleOperation : public TransformOperationBase<CSSDouble> {
|
|
133
|
-
using TransformOperationBase<CSSDouble>::TransformOperationBase;
|
|
134
|
-
explicit ScaleOperation(double value);
|
|
135
|
-
TransformOperationType type() const override;
|
|
136
|
-
folly::dynamic valueToDynamic() const override;
|
|
137
|
-
bool canConvertTo(TransformOperationType type) const override;
|
|
138
|
-
TransformOperations convertTo(TransformOperationType type) const override;
|
|
139
|
-
TransformMatrix toMatrix() const override;
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
struct ScaleXOperation final : public ScaleOperation {
|
|
143
|
-
using ScaleOperation::ScaleOperation;
|
|
144
|
-
TransformOperationType type() const override;
|
|
145
|
-
TransformMatrix toMatrix() const override;
|
|
146
|
-
};
|
|
147
|
-
|
|
148
|
-
struct ScaleYOperation final : public ScaleOperation {
|
|
149
|
-
using ScaleOperation::ScaleOperation;
|
|
150
|
-
TransformOperationType type() const override;
|
|
151
|
-
TransformMatrix toMatrix() const override;
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
// Translate
|
|
155
|
-
struct TranslateOperation : public TransformOperationBase<CSSDimension> {
|
|
156
|
-
using TransformOperationBase<CSSDimension>::TransformOperationBase;
|
|
157
|
-
explicit TranslateOperation(double value);
|
|
158
|
-
explicit TranslateOperation(const std::string &value);
|
|
159
|
-
bool isRelative() const override;
|
|
160
|
-
folly::dynamic valueToDynamic() const override;
|
|
161
|
-
virtual TransformMatrix toMatrix(double resolvedValue) const = 0;
|
|
162
|
-
TransformMatrix toMatrix() const override;
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
struct TranslateXOperation final : public TranslateOperation {
|
|
166
|
-
using TranslateOperation::TranslateOperation;
|
|
167
|
-
TransformOperationType type() const override;
|
|
168
|
-
TransformMatrix toMatrix(double resolvedValue) const override;
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
struct TranslateYOperation final : public TranslateOperation {
|
|
172
|
-
using TranslateOperation::TranslateOperation;
|
|
173
|
-
TransformOperationType type() const override;
|
|
174
|
-
TransformMatrix toMatrix(double resolvedValue) const override;
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
// Skew
|
|
178
|
-
struct SkewOperation : public TransformOperationBase<CSSAngle> {
|
|
179
|
-
using TransformOperationBase<CSSAngle>::TransformOperationBase;
|
|
180
|
-
explicit SkewOperation(const std::string &value);
|
|
181
|
-
folly::dynamic valueToDynamic() const override;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
struct SkewXOperation final : public SkewOperation {
|
|
185
|
-
using SkewOperation::SkewOperation;
|
|
186
|
-
TransformOperationType type() const override;
|
|
187
|
-
TransformMatrix toMatrix() const override;
|
|
188
|
-
};
|
|
189
|
-
|
|
190
|
-
struct SkewYOperation final : public SkewOperation {
|
|
191
|
-
using SkewOperation::SkewOperation;
|
|
192
|
-
TransformOperationType type() const override;
|
|
193
|
-
TransformMatrix toMatrix() const override;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
// Matrix
|
|
197
|
-
struct MatrixOperation final
|
|
198
|
-
: public TransformOperationBase<
|
|
199
|
-
std::variant<TransformMatrix, TransformOperations>> {
|
|
200
|
-
using TransformOperationBase<
|
|
201
|
-
std::variant<TransformMatrix, TransformOperations>>::
|
|
202
|
-
TransformOperationBase;
|
|
203
|
-
explicit MatrixOperation(const TransformMatrix &value);
|
|
204
|
-
explicit MatrixOperation(const TransformOperations &operations);
|
|
205
|
-
|
|
206
|
-
bool operator==(const TransformOperation &other) const override;
|
|
207
|
-
|
|
208
|
-
TransformOperationType type() const override;
|
|
209
|
-
folly::dynamic valueToDynamic() const override;
|
|
210
|
-
TransformMatrix toMatrix() const override;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
87
|
} // namespace reanimated::css
|
package/Common/cpp/reanimated/CSS/interpolation/transforms/TransformOperationInterpolator.cpp
CHANGED
|
@@ -30,11 +30,11 @@ MatrixOperation TransformOperationInterpolator<MatrixOperation>::interpolate(
|
|
|
30
30
|
return MatrixOperation(progress < 0.5 ? fromMatrix : toMatrix);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
return MatrixOperation(
|
|
33
|
+
return MatrixOperation(TransformMatrix3D::recompose(
|
|
34
34
|
decomposedFrom->interpolate(progress, decomposedTo.value())));
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
TransformMatrix3D
|
|
38
38
|
TransformOperationInterpolator<MatrixOperation>::matrixFromOperation(
|
|
39
39
|
const MatrixOperation &matrixOperation,
|
|
40
40
|
const TransformInterpolatorUpdateContext &context) const {
|
|
@@ -42,7 +42,7 @@ TransformOperationInterpolator<MatrixOperation>::matrixFromOperation(
|
|
|
42
42
|
const auto &operations =
|
|
43
43
|
std::get<TransformOperations>(matrixOperation.value);
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
TransformMatrix3D matrix = TransformMatrix3D::Identity();
|
|
46
46
|
|
|
47
47
|
for (int i = static_cast<int>(operations.size()) - 1; i >= 0; i--) {
|
|
48
48
|
auto operation = operations[i];
|
|
@@ -58,7 +58,7 @@ TransformOperationInterpolator<MatrixOperation>::matrixFromOperation(
|
|
|
58
58
|
return matrix;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
return std::get<
|
|
61
|
+
return std::get<TransformMatrix3D>(matrixOperation.value);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
} // namespace reanimated::css
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
#include <reanimated/CSS/common/values/CSSValue.h>
|
|
4
4
|
#include <reanimated/CSS/interpolation/transforms/TransformInterpolator.h>
|
|
5
|
-
#include <reanimated/CSS/interpolation/transforms/
|
|
5
|
+
#include <reanimated/CSS/interpolation/transforms/operations/matrix.h>
|
|
6
|
+
#include <reanimated/CSS/interpolation/transforms/operations/perspective.h>
|
|
6
7
|
|
|
7
8
|
#include <memory>
|
|
8
9
|
#include <string>
|
|
@@ -65,7 +66,7 @@ class TransformOperationInterpolator<MatrixOperation>
|
|
|
65
66
|
const TransformInterpolatorUpdateContext &context) const override;
|
|
66
67
|
|
|
67
68
|
private:
|
|
68
|
-
|
|
69
|
+
TransformMatrix3D matrixFromOperation(
|
|
69
70
|
const MatrixOperation &matrixOperation,
|
|
70
71
|
const TransformInterpolatorUpdateContext &context) const;
|
|
71
72
|
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
namespace reanimated::css {
|
|
4
4
|
|
|
5
5
|
const TransformOperations TransformsStyleInterpolator::defaultStyleValue_ = {
|
|
6
|
-
std::make_shared<MatrixOperation>(
|
|
6
|
+
std::make_shared<MatrixOperation>(TransformMatrix3D::Identity())};
|
|
7
7
|
|
|
8
8
|
TransformsStyleInterpolator::TransformsStyleInterpolator(
|
|
9
9
|
const PropertyPath &propertyPath,
|
|
@@ -98,20 +98,21 @@ folly::dynamic TransformsStyleInterpolator::interpolate(
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
void TransformsStyleInterpolator::updateKeyframes(
|
|
101
|
-
|
|
101
|
+
jsi::Runtime &rt,
|
|
102
|
+
const jsi::Value &keyframes) {
|
|
102
103
|
// Step 1: Parse keyframes
|
|
103
|
-
const auto parsedKeyframes =
|
|
104
|
+
const auto parsedKeyframes = parseJSIKeyframes(rt, keyframes);
|
|
104
105
|
|
|
105
106
|
// Step 2: Convert keyframes to TransformOperations
|
|
106
107
|
std::vector<std::pair<double, std::optional<TransformOperations>>> operations;
|
|
107
108
|
operations.reserve(parsedKeyframes.size());
|
|
108
109
|
for (const auto &[offset, value] : parsedKeyframes) {
|
|
109
|
-
operations.emplace_back(offset, parseTransformOperations(value));
|
|
110
|
+
operations.emplace_back(offset, parseTransformOperations(rt, value));
|
|
110
111
|
}
|
|
111
112
|
|
|
112
113
|
// Step 3: Prepare keyframe interpolation pairs (convert keyframe values in
|
|
113
114
|
// both keyframes to the same type)
|
|
114
|
-
// There will be one less keyframe than the number of keyframes in the
|
|
115
|
+
// There will be one less keyframe than the number of keyframes in the jsi
|
|
115
116
|
// array as we create interpolation pairs
|
|
116
117
|
const auto keyframesCount = operations.size() - 1;
|
|
117
118
|
keyframes_.clear();
|
|
@@ -148,6 +149,28 @@ void TransformsStyleInterpolator::updateKeyframesFromStyleChange(
|
|
|
148
149
|
parseTransformOperations(newStyleValue).value_or(TransformOperations{})));
|
|
149
150
|
}
|
|
150
151
|
|
|
152
|
+
std::optional<TransformOperations>
|
|
153
|
+
TransformsStyleInterpolator::parseTransformOperations(
|
|
154
|
+
jsi::Runtime &rt,
|
|
155
|
+
const jsi::Value &values) {
|
|
156
|
+
if (values.isUndefined()) {
|
|
157
|
+
return std::nullopt;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const auto transformsArray = values.asObject(rt).asArray(rt);
|
|
161
|
+
const auto transformsCount = transformsArray.size(rt);
|
|
162
|
+
|
|
163
|
+
TransformOperations transformOperations;
|
|
164
|
+
transformOperations.reserve(transformsCount);
|
|
165
|
+
|
|
166
|
+
for (size_t i = 0; i < transformsCount; ++i) {
|
|
167
|
+
const auto transform = transformsArray.getValueAtIndex(rt, i);
|
|
168
|
+
transformOperations.emplace_back(
|
|
169
|
+
TransformOperation::fromJSIValue(rt, transform));
|
|
170
|
+
}
|
|
171
|
+
return transformOperations;
|
|
172
|
+
}
|
|
173
|
+
|
|
151
174
|
std::optional<TransformOperations>
|
|
152
175
|
TransformsStyleInterpolator::parseTransformOperations(
|
|
153
176
|
const folly::dynamic &values) {
|
|
@@ -219,10 +242,9 @@ TransformsStyleInterpolator::createTransformInterpolationPair(
|
|
|
219
242
|
bool shouldInterpolateMatrices = false;
|
|
220
243
|
|
|
221
244
|
// Build index maps and check for matrix operation
|
|
222
|
-
std::unordered_map<
|
|
223
|
-
lastIndexInTo;
|
|
245
|
+
std::unordered_map<TransformOp, size_t> lastIndexInFrom, lastIndexInTo;
|
|
224
246
|
for (size_t idx = 0; idx < fromOperations.size(); ++idx) {
|
|
225
|
-
if (fromOperations[idx]->type() ==
|
|
247
|
+
if (fromOperations[idx]->type() == TransformOp::Matrix) {
|
|
226
248
|
shouldInterpolateMatrices = true;
|
|
227
249
|
break;
|
|
228
250
|
}
|
|
@@ -230,7 +252,7 @@ TransformsStyleInterpolator::createTransformInterpolationPair(
|
|
|
230
252
|
}
|
|
231
253
|
for (size_t idx = 0; idx < toOperations.size() && !shouldInterpolateMatrices;
|
|
232
254
|
++idx) {
|
|
233
|
-
if (toOperations[idx]->type() ==
|
|
255
|
+
if (toOperations[idx]->type() == TransformOp::Matrix) {
|
|
234
256
|
shouldInterpolateMatrices = true;
|
|
235
257
|
break;
|
|
236
258
|
}
|
|
@@ -342,7 +364,7 @@ TransformOperations TransformsStyleInterpolator::getFallbackValue(
|
|
|
342
364
|
|
|
343
365
|
std::shared_ptr<TransformOperation>
|
|
344
366
|
TransformsStyleInterpolator::getDefaultOperationOfType(
|
|
345
|
-
const
|
|
367
|
+
const TransformOp type) const {
|
|
346
368
|
return interpolators_->at(type)->getDefaultOperation();
|
|
347
369
|
}
|
|
348
370
|
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
#include <reanimated/CSS/interpolation/PropertyInterpolator.h>
|
|
4
4
|
#include <reanimated/CSS/interpolation/transforms/TransformInterpolator.h>
|
|
5
|
-
#include <reanimated/CSS/interpolation/transforms/
|
|
6
|
-
#include <reanimated/CSS/
|
|
5
|
+
#include <reanimated/CSS/interpolation/transforms/operations/matrix.h>
|
|
6
|
+
#include <reanimated/CSS/utils/keyframes.h>
|
|
7
7
|
|
|
8
8
|
#include <memory>
|
|
9
9
|
#include <unordered_map>
|
|
@@ -44,7 +44,7 @@ class TransformsStyleInterpolator final : public PropertyInterpolator {
|
|
|
44
44
|
const std::shared_ptr<KeyframeProgressProvider> &progressProvider)
|
|
45
45
|
const override;
|
|
46
46
|
|
|
47
|
-
void updateKeyframes(const
|
|
47
|
+
void updateKeyframes(jsi::Runtime &rt, const jsi::Value &keyframes) override;
|
|
48
48
|
void updateKeyframesFromStyleChange(
|
|
49
49
|
const folly::dynamic &oldStyleValue,
|
|
50
50
|
const folly::dynamic &newStyleValue,
|
|
@@ -57,6 +57,9 @@ class TransformsStyleInterpolator final : public PropertyInterpolator {
|
|
|
57
57
|
std::vector<std::shared_ptr<TransformKeyframe>> keyframes_;
|
|
58
58
|
std::optional<TransformOperations> reversingAdjustedStartValue_;
|
|
59
59
|
|
|
60
|
+
static std::optional<TransformOperations> parseTransformOperations(
|
|
61
|
+
jsi::Runtime &rt,
|
|
62
|
+
const jsi::Value &values);
|
|
60
63
|
static std::optional<TransformOperations> parseTransformOperations(
|
|
61
64
|
const folly::dynamic &values);
|
|
62
65
|
std::shared_ptr<TransformKeyframe> createTransformKeyframe(
|
|
@@ -74,7 +77,7 @@ class TransformsStyleInterpolator final : public PropertyInterpolator {
|
|
|
74
77
|
TransformOperations &sourceResult,
|
|
75
78
|
TransformOperations &targetResult) const;
|
|
76
79
|
std::shared_ptr<TransformOperation> getDefaultOperationOfType(
|
|
77
|
-
|
|
80
|
+
TransformOp type) const;
|
|
78
81
|
|
|
79
82
|
size_t getIndexOfCurrentKeyframe(
|
|
80
83
|
const std::shared_ptr<KeyframeProgressProvider> &progressProvider) const;
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
#include <reanimated/CSS/interpolation/transforms/operations/matrix.h>
|
|
2
|
+
|
|
3
|
+
namespace reanimated::css {
|
|
4
|
+
|
|
5
|
+
// Matrix
|
|
6
|
+
std::variant<TransformMatrix3D, TransformOperations> simplifyOperations(
|
|
7
|
+
const TransformOperations &operations) {
|
|
8
|
+
// Initialize the stack with the reversed list of operations
|
|
9
|
+
std::vector<std::shared_ptr<TransformOperation>> operationsStack(
|
|
10
|
+
operations.begin(), operations.end());
|
|
11
|
+
TransformOperations reversedOperations;
|
|
12
|
+
TransformMatrix3D simplifiedMatrix = TransformMatrix3D::Identity();
|
|
13
|
+
bool hasSimplifications = false;
|
|
14
|
+
|
|
15
|
+
while (!operationsStack.empty()) {
|
|
16
|
+
auto operation = operationsStack.back();
|
|
17
|
+
operationsStack.pop_back();
|
|
18
|
+
|
|
19
|
+
if (operation->type() == TransformOp::Matrix) {
|
|
20
|
+
const auto matrixOperation =
|
|
21
|
+
std::static_pointer_cast<MatrixOperation>(operation);
|
|
22
|
+
if (std::holds_alternative<TransformOperations>(matrixOperation->value)) {
|
|
23
|
+
// If the current operation is a matrix created from other operations,
|
|
24
|
+
// add all of these operations to the stack
|
|
25
|
+
for (auto &op : std::get<TransformOperations>(matrixOperation->value)) {
|
|
26
|
+
operationsStack.push_back(op);
|
|
27
|
+
}
|
|
28
|
+
continue;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
if (!operation->isRelative()) {
|
|
33
|
+
// If the operation is not relative, it can be simplified (converted to
|
|
34
|
+
// the matrix and multiplied)
|
|
35
|
+
const auto operationMatrix = operation->toMatrix();
|
|
36
|
+
simplifiedMatrix = hasSimplifications
|
|
37
|
+
? (simplifiedMatrix * operationMatrix)
|
|
38
|
+
: operationMatrix;
|
|
39
|
+
hasSimplifications = true;
|
|
40
|
+
} else {
|
|
41
|
+
// If the current operation is relative, we need to add the current
|
|
42
|
+
// simplified matrix to the list of operations before adding the
|
|
43
|
+
// relative operation
|
|
44
|
+
if (hasSimplifications) {
|
|
45
|
+
reversedOperations.emplace_back(
|
|
46
|
+
std::make_shared<MatrixOperation>(simplifiedMatrix));
|
|
47
|
+
simplifiedMatrix = TransformMatrix3D::Identity();
|
|
48
|
+
hasSimplifications = false;
|
|
49
|
+
}
|
|
50
|
+
reversedOperations.emplace_back(operation);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (hasSimplifications) {
|
|
55
|
+
// We can return just a single matrix if there are no operations or the
|
|
56
|
+
// only operation is a simplified matrix (when hasSimplifications is true)
|
|
57
|
+
if (reversedOperations.size() <= 1) {
|
|
58
|
+
return simplifiedMatrix;
|
|
59
|
+
}
|
|
60
|
+
// Otherwise, add the last simplified matrix to the list of operations
|
|
61
|
+
reversedOperations.emplace_back(
|
|
62
|
+
std::make_shared<MatrixOperation>(simplifiedMatrix));
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// Reverse the list of operations to maintain the order
|
|
66
|
+
std::reverse(reversedOperations.begin(), reversedOperations.end());
|
|
67
|
+
return reversedOperations;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
MatrixOperation::MatrixOperation(const TransformMatrix3D &value)
|
|
71
|
+
: TransformOperationBase<
|
|
72
|
+
TransformOp::Matrix,
|
|
73
|
+
std::variant<TransformMatrix3D, TransformOperations>>(value) {}
|
|
74
|
+
|
|
75
|
+
MatrixOperation::MatrixOperation(const TransformOperations &operations)
|
|
76
|
+
// Simplify operations to reduce the number of matrix multiplications
|
|
77
|
+
// during matrix keyframe interpolation
|
|
78
|
+
: TransformOperationBase<
|
|
79
|
+
TransformOp::Matrix,
|
|
80
|
+
std::variant<TransformMatrix3D, TransformOperations>>(
|
|
81
|
+
simplifyOperations(operations)) {}
|
|
82
|
+
|
|
83
|
+
bool MatrixOperation::operator==(const TransformOperation &other) const {
|
|
84
|
+
if (type() != other.type()) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const auto *otherOperation = dynamic_cast<const MatrixOperation *>(&other);
|
|
89
|
+
if (otherOperation == nullptr) {
|
|
90
|
+
return false;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
const auto hasOperations = std::holds_alternative<TransformOperations>(value);
|
|
94
|
+
const auto otherHasOperations =
|
|
95
|
+
std::holds_alternative<TransformOperations>(otherOperation->value);
|
|
96
|
+
|
|
97
|
+
if (hasOperations != otherHasOperations) {
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
if (!hasOperations) {
|
|
101
|
+
return std::get<TransformMatrix3D>(value) ==
|
|
102
|
+
std::get<TransformMatrix3D>(otherOperation->value);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
const auto &operations = std::get<TransformOperations>(value);
|
|
106
|
+
const auto &otherOperations =
|
|
107
|
+
std::get<TransformOperations>(otherOperation->value);
|
|
108
|
+
|
|
109
|
+
if (operations.size() != otherOperations.size()) {
|
|
110
|
+
return false;
|
|
111
|
+
}
|
|
112
|
+
for (size_t i = 0; i < operations.size(); ++i) {
|
|
113
|
+
if (*operations[i] != *otherOperations[i]) {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
folly::dynamic MatrixOperation::valueToDynamic() const {
|
|
121
|
+
if (!std::holds_alternative<TransformMatrix3D>(value)) {
|
|
122
|
+
throw std::invalid_argument(
|
|
123
|
+
"[Reanimated] Cannot convert unprocessed transform operations to the dynamic value.");
|
|
124
|
+
}
|
|
125
|
+
return std::get<TransformMatrix3D>(value).toDynamic();
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
TransformMatrix3D MatrixOperation::toMatrix() const {
|
|
129
|
+
if (!std::holds_alternative<TransformMatrix3D>(value)) {
|
|
130
|
+
throw std::invalid_argument(
|
|
131
|
+
"[Reanimated] Cannot convert unprocessed transform operations to the matrix.");
|
|
132
|
+
}
|
|
133
|
+
return std::get<TransformMatrix3D>(value);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
} // namespace reanimated::css
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include <reanimated/CSS/interpolation/transforms/TransformOperation.h>
|
|
4
|
+
|
|
5
|
+
#include <memory>
|
|
6
|
+
#include <vector>
|
|
7
|
+
|
|
8
|
+
namespace reanimated::css {
|
|
9
|
+
|
|
10
|
+
// Matrix
|
|
11
|
+
struct MatrixOperation final
|
|
12
|
+
: public TransformOperationBase<
|
|
13
|
+
TransformOp::Matrix,
|
|
14
|
+
std::variant<TransformMatrix3D, TransformOperations>> {
|
|
15
|
+
using TransformOperationBase<
|
|
16
|
+
TransformOp::Matrix,
|
|
17
|
+
std::variant<TransformMatrix3D, TransformOperations>>::
|
|
18
|
+
TransformOperationBase;
|
|
19
|
+
|
|
20
|
+
explicit MatrixOperation(const TransformMatrix3D &value);
|
|
21
|
+
explicit MatrixOperation(const TransformOperations &operations);
|
|
22
|
+
|
|
23
|
+
bool operator==(const TransformOperation &other) const override;
|
|
24
|
+
|
|
25
|
+
folly::dynamic valueToDynamic() const override;
|
|
26
|
+
TransformMatrix3D toMatrix() const override;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
} // namespace reanimated::css
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include <reanimated/CSS/interpolation/transforms/TransformOperation.h>
|
|
4
|
+
|
|
5
|
+
namespace reanimated::css {
|
|
6
|
+
|
|
7
|
+
struct PerspectiveOperation final
|
|
8
|
+
: public TransformOperationBase<TransformOp::Perspective, CSSDouble> {
|
|
9
|
+
using TransformOperationBase<TransformOp::Perspective, CSSDouble>::
|
|
10
|
+
TransformOperationBase;
|
|
11
|
+
|
|
12
|
+
explicit PerspectiveOperation(double value)
|
|
13
|
+
: TransformOperationBase<TransformOp::Perspective, CSSDouble>(
|
|
14
|
+
CSSDouble(value)) {}
|
|
15
|
+
|
|
16
|
+
folly::dynamic valueToDynamic() const override {
|
|
17
|
+
return value.value != 0 ? value.toDynamic() : folly::dynamic();
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
TransformMatrix3D toMatrix() const override {
|
|
21
|
+
return TransformMatrix3D::create<TransformOp::Perspective>(value.value);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
} // namespace reanimated::css
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#pragma once
|
|
2
|
+
|
|
3
|
+
#include <reanimated/CSS/interpolation/transforms/TransformOperation.h>
|
|
4
|
+
|
|
5
|
+
#include <memory>
|
|
6
|
+
#include <string>
|
|
7
|
+
|
|
8
|
+
namespace reanimated::css {
|
|
9
|
+
|
|
10
|
+
template <TransformOp TOperation>
|
|
11
|
+
struct RotateOperationBase
|
|
12
|
+
: public TransformOperationBase<TOperation, CSSAngle> {
|
|
13
|
+
using TransformOperationBase<TOperation, CSSAngle>::TransformOperationBase;
|
|
14
|
+
|
|
15
|
+
explicit RotateOperationBase(const std::string &value)
|
|
16
|
+
: TransformOperationBase<TOperation, CSSAngle>(CSSAngle(value)) {}
|
|
17
|
+
|
|
18
|
+
folly::dynamic valueToDynamic() const override {
|
|
19
|
+
return this->value.toDynamic();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
TransformMatrix3D toMatrix() const override {
|
|
23
|
+
return TransformMatrix3D::create<TOperation>(this->value.value);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
using RotateOperation = RotateOperationBase<TransformOp::Rotate>;
|
|
28
|
+
|
|
29
|
+
using RotateXOperation = RotateOperationBase<TransformOp::RotateX>;
|
|
30
|
+
|
|
31
|
+
using RotateYOperation = RotateOperationBase<TransformOp::RotateY>;
|
|
32
|
+
|
|
33
|
+
struct RotateZOperation final
|
|
34
|
+
: public RotateOperationBase<TransformOp::RotateZ> {
|
|
35
|
+
using RotateOperationBase<TransformOp::RotateZ>::RotateOperationBase;
|
|
36
|
+
|
|
37
|
+
bool canConvertTo(TransformOp type) const override {
|
|
38
|
+
return type == TransformOp::Rotate;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
TransformOperations convertTo(TransformOp type) const override {
|
|
42
|
+
assertCanConvertTo(type);
|
|
43
|
+
return {std::make_shared<RotateOperation>(value)};
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
} // namespace reanimated::css
|