@coinbase/cds-mobile-visualization 3.4.0-beta.21 → 3.4.0-beta.22
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/CHANGELOG.md +8 -0
- package/dts/chart/Path.d.ts.map +1 -1
- package/dts/chart/PeriodSelector.d.ts +18 -6
- package/dts/chart/PeriodSelector.d.ts.map +1 -1
- package/dts/chart/area/AreaChart.d.ts +28 -4
- package/dts/chart/area/AreaChart.d.ts.map +1 -1
- package/dts/chart/area/DottedArea.d.ts.map +1 -1
- package/dts/chart/line/Line.d.ts.map +1 -1
- package/dts/chart/line/LineChart.d.ts +3 -0
- package/dts/chart/line/LineChart.d.ts.map +1 -1
- package/dts/chart/scrubber/DefaultScrubberBeacon.d.ts.map +1 -1
- package/dts/chart/utils/bar.d.ts +2 -2
- package/dts/chart/utils/bar.d.ts.map +1 -1
- package/dts/chart/utils/transition.d.ts +7 -4
- package/dts/chart/utils/transition.d.ts.map +1 -1
- package/esm/chart/Path.js +8 -7
- package/esm/chart/__stories__/ChartTransitions.stories.js +6 -10
- package/esm/chart/area/AreaChart.js +8 -5
- package/esm/chart/area/DottedArea.js +12 -11
- package/esm/chart/line/Line.js +4 -2
- package/esm/chart/line/LineChart.js +4 -3
- package/esm/chart/utils/bar.js +1 -0
- package/esm/chart/utils/transition.js +28 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,14 @@ All notable changes to this project will be documented in this file.
|
|
|
8
8
|
|
|
9
9
|
<!-- template-start -->
|
|
10
10
|
|
|
11
|
+
## 3.4.0-beta.22 (3/4/2026 PST)
|
|
12
|
+
|
|
13
|
+
#### 🚀 Updates
|
|
14
|
+
|
|
15
|
+
- Improve PeriodSelector types. [[#464](https://github.com/coinbase/cds/pull/464)]
|
|
16
|
+
- Skip null path transitions. [[#464](https://github.com/coinbase/cds/pull/464)]
|
|
17
|
+
- Fix path transition on incompatible paths. [[#464](https://github.com/coinbase/cds/pull/464)]
|
|
18
|
+
|
|
11
19
|
## 3.4.0-beta.21 (3/2/2026 PST)
|
|
12
20
|
|
|
13
21
|
#### 🚀 Updates
|
package/dts/chart/Path.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Path.d.ts","sourceRoot":"","sources":["../../src/chart/Path.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EACL,KAAK,YAAY,EAGjB,KAAK,SAAS,IAAI,aAAa,EAGhC,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAIL,KAAK,UAAU,EAEhB,MAAM,oBAAoB,CAAC;AAI5B;;GAEG;AACH,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,aAAa,GACnC,IAAI,CACF,aAAa,EACX,WAAW,GACX,WAAW,GACX,UAAU,GACV,QAAQ,GACR,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,WAAW,GACX,YAAY,GACZ,aAAa,GACb,aAAa,GACb,OAAO,GACP,WAAW,CACd,GAAG;IACF;;;;;;;;;;;;;;;;OAgBG;IACH,WAAW,CAAC,EAAE;QACZ;;;WAGG;QACH,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;QAC1B;;;WAGG;QACH,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,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IACF;;;;;;;;;;;;;;;;OAgBG;IACH,WAAW,CAAC,EAAE;QACZ;;;WAGG;QACH,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;QAC1B;;;WAGG;QACH,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,CAAC;KAC5B,CAAC;IACF;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,CAAC,CAAC,EAAE,YAAY,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IACrC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;CACjB,CAAC;AAqEJ,eAAO,MAAM,IAAI,iDA2Kf,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { View } from 'react-native';
|
|
2
|
+
import { View, type ViewStyle } from 'react-native';
|
|
3
3
|
import { type SegmentedTabsProps, type TabsActiveIndicatorProps } from '@coinbase/cds-mobile/tabs';
|
|
4
4
|
import { type TextBaseProps } from '@coinbase/cds-mobile/typography';
|
|
5
5
|
export declare const PeriodSelectorActiveIndicator: ({
|
|
@@ -62,17 +62,29 @@ export declare const LiveTabLabel: React.MemoExoticComponent<
|
|
|
62
62
|
} & React.RefAttributes<View>
|
|
63
63
|
>
|
|
64
64
|
>;
|
|
65
|
-
export type PeriodSelectorProps =
|
|
66
|
-
Pick<SegmentedTabsProps, 'styles'>;
|
|
65
|
+
export type PeriodSelectorProps = SegmentedTabsProps;
|
|
67
66
|
/**
|
|
68
67
|
* PeriodSelector is a specialized version of SegmentedTabs optimized for chart period selection.
|
|
69
68
|
* It provides transparent background, primary wash active state, and full-width layout by default.
|
|
70
69
|
*/
|
|
71
70
|
export declare const PeriodSelector: React.MemoExoticComponent<
|
|
72
71
|
React.ForwardRefExoticComponent<
|
|
73
|
-
|
|
74
|
-
Pick<
|
|
75
|
-
|
|
72
|
+
Partial<
|
|
73
|
+
Pick<
|
|
74
|
+
import('@coinbase/cds-mobile/tabs').TabsProps<string>,
|
|
75
|
+
'TabComponent' | 'TabsActiveIndicatorComponent'
|
|
76
|
+
>
|
|
77
|
+
> &
|
|
78
|
+
Omit<
|
|
79
|
+
import('@coinbase/cds-mobile/tabs').TabsProps<string>,
|
|
80
|
+
'styles' | 'TabComponent' | 'TabsActiveIndicatorComponent'
|
|
81
|
+
> & {
|
|
82
|
+
styles?: {
|
|
83
|
+
root?: import('react-native').StyleProp<ViewStyle>;
|
|
84
|
+
tab?: import('react-native').StyleProp<ViewStyle>;
|
|
85
|
+
activeIndicator?: import('react-native').StyleProp<ViewStyle>;
|
|
86
|
+
};
|
|
87
|
+
} & React.RefAttributes<any>
|
|
76
88
|
>
|
|
77
89
|
>;
|
|
78
90
|
//# sourceMappingURL=PeriodSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PeriodSelector.d.ts","sourceRoot":"","sources":["../../src/chart/PeriodSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAc,IAAI,
|
|
1
|
+
{"version":3,"file":"PeriodSelector.d.ts","sourceRoot":"","sources":["../../src/chart/PeriodSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AACzD,OAAO,EAAc,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AAGhE,OAAO,EAEL,KAAK,kBAAkB,EAEvB,KAAK,wBAAwB,EAC9B,MAAM,2BAA2B,CAAC;AAGnC,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAG3E,eAAO,MAAM,6BAA6B,GAAI,wDAK3C,wBAAwB,wDAmD1B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG;IAClD;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,GAAG,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAStD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;IAxBvB;;;OAGG;YACK,MAAM;IACd;;OAEG;cACO,OAAO;IACjB;;OAEG;YACK,GAAG;+BAyCZ,CAAC;AASF,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC;AAErD;;;GAGG;AACH,eAAO,MAAM,cAAc;;YApIwD,CAAC;WACjC,CAAC;uBACoB,CAAC;;8BA4JxE,CAAC"}
|
|
@@ -8,10 +8,22 @@ export type AreaSeries = Series &
|
|
|
8
8
|
Partial<
|
|
9
9
|
Pick<
|
|
10
10
|
AreaProps,
|
|
11
|
-
|
|
11
|
+
| 'AreaComponent'
|
|
12
|
+
| 'curve'
|
|
13
|
+
| 'fillOpacity'
|
|
14
|
+
| 'type'
|
|
15
|
+
| 'fill'
|
|
16
|
+
| 'connectNulls'
|
|
17
|
+
| 'transition'
|
|
18
|
+
| 'transitions'
|
|
12
19
|
>
|
|
13
20
|
> &
|
|
14
|
-
Partial<
|
|
21
|
+
Partial<
|
|
22
|
+
Pick<
|
|
23
|
+
LineProps,
|
|
24
|
+
'LineComponent' | 'strokeWidth' | 'stroke' | 'opacity' | 'transition' | 'transitions'
|
|
25
|
+
>
|
|
26
|
+
> & {
|
|
15
27
|
/**
|
|
16
28
|
* The type of line to render for this series.
|
|
17
29
|
* Overrides the chart-level lineType if provided.
|
|
@@ -22,7 +34,13 @@ export type AreaSeries = Series &
|
|
|
22
34
|
export type AreaChartBaseProps = Omit<CartesianChartBaseProps, 'xAxis' | 'yAxis' | 'series'> &
|
|
23
35
|
Pick<
|
|
24
36
|
AreaProps,
|
|
25
|
-
|
|
37
|
+
| 'AreaComponent'
|
|
38
|
+
| 'curve'
|
|
39
|
+
| 'fillOpacity'
|
|
40
|
+
| 'type'
|
|
41
|
+
| 'connectNulls'
|
|
42
|
+
| 'transition'
|
|
43
|
+
| 'transitions'
|
|
26
44
|
> &
|
|
27
45
|
Pick<LineProps, 'LineComponent' | 'strokeWidth'> & {
|
|
28
46
|
/**
|
|
@@ -77,7 +95,13 @@ export declare const AreaChart: import('react').MemoExoticComponent<
|
|
|
77
95
|
Omit<CartesianChartBaseProps, 'series' | 'xAxis' | 'yAxis'> &
|
|
78
96
|
Pick<
|
|
79
97
|
AreaProps,
|
|
80
|
-
|
|
98
|
+
| 'type'
|
|
99
|
+
| 'transitions'
|
|
100
|
+
| 'transition'
|
|
101
|
+
| 'curve'
|
|
102
|
+
| 'connectNulls'
|
|
103
|
+
| 'fillOpacity'
|
|
104
|
+
| 'AreaComponent'
|
|
81
105
|
> &
|
|
82
106
|
Pick<LineProps, 'strokeWidth' | 'LineComponent'> & {
|
|
83
107
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AreaChart.d.ts","sourceRoot":"","sources":["../../../src/chart/area/AreaChart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAS,KAAK,UAAU,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EACL,KAAK,eAAe,EAIpB,KAAK,MAAM,EACZ,MAAM,UAAU,CAAC;AAElB,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG,MAAM,GAC7B,OAAO,CACL,IAAI,CACF,SAAS,
|
|
1
|
+
{"version":3,"file":"AreaChart.d.ts","sourceR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IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"DottedArea.d.ts","sourceRoot":"","sources":["../../../src/chart/area/DottedArea.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAK/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAC;AAEjD,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,SAAS,EACP,aAAa,GACb,UAAU,GACV,QAAQ,GACR,eAAe,GACf,aAAa,GACb,WAAW,GACX,YAAY,GACZ,UAAU,GACV,UAAU,GACV,YAAY,CACf,GACC,kBAAkB,GAAG;IACnB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEJ;;;;GAIG;AACH,eAAO,MAAM,UAAU,uDAgFtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Line.d.ts","sourceRoot":"","sources":["../../../src/chart/line/Line.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,4BAA4B,CAAC;AAEtE,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzC,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@@ -22,6 +22,7 @@ export type LineSeries = Series &
|
|
|
22
22
|
| 'points'
|
|
23
23
|
| 'connectNulls'
|
|
24
24
|
| 'transition'
|
|
25
|
+
| 'transitions'
|
|
25
26
|
>
|
|
26
27
|
>;
|
|
27
28
|
export type LineChartBaseProps = Omit<CartesianChartBaseProps, 'xAxis' | 'yAxis' | 'series'> &
|
|
@@ -38,6 +39,7 @@ export type LineChartBaseProps = Omit<CartesianChartBaseProps, 'xAxis' | 'yAxis'
|
|
|
38
39
|
| 'strokeOpacity'
|
|
39
40
|
| 'connectNulls'
|
|
40
41
|
| 'transition'
|
|
42
|
+
| 'transitions'
|
|
41
43
|
| 'opacity'
|
|
42
44
|
> & {
|
|
43
45
|
/**
|
|
@@ -76,6 +78,7 @@ export declare const LineChart: import('react').MemoExoticComponent<
|
|
|
76
78
|
| 'type'
|
|
77
79
|
| 'opacity'
|
|
78
80
|
| 'strokeWidth'
|
|
81
|
+
| 'transitions'
|
|
79
82
|
| 'transition'
|
|
80
83
|
| 'curve'
|
|
81
84
|
| 'connectNulls'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../src/chart/line/LineChart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,eAAe,EAAoC,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAE/F,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG,MAAM,GAC7B,OAAO,CACL,IAAI,CACF,SAAS,EACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,cAAc,GACd,MAAM,GACN,eAAe,GACf,eAAe,GACf,QAAQ,GACR,aAAa,GACb,eAAe,GACf,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,
|
|
1
|
+
{"version":3,"file":"LineChart.d.ts","sourceRoot":"","sources":["../../../src/chart/line/LineChart.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEzC,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,eAAe,EAAoC,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAE/F,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,QAAQ,CAAC;AAE9C,MAAM,MAAM,UAAU,GAAG,MAAM,GAC7B,OAAO,CACL,IAAI,CACF,SAAS,EACP,OAAO,GACP,UAAU,GACV,UAAU,GACV,cAAc,GACd,MAAM,GACN,eAAe,GACf,eAAe,GACf,QAAQ,GACR,aAAa,GACb,eAAe,GACf,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,aAAa,CAChB,CACF,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,uBAAuB,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC,GAC1F,IAAI,CACF,SAAS,EACP,UAAU,GACV,UAAU,GACV,MAAM,GACN,eAAe,GACf,eAAe,GACf,OAAO,GACP,QAAQ,GACR,aAAa,GACb,eAAe,GACf,cAAc,GACd,YAAY,GACZ,aAAa,GACb,SAAS,CACZ,GAAG;IACF;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC;IAC9C;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU,CAAC;CAC/C,CAAC;AAEJ,MAAM,MAAM,cAAc,GAAG,kBAAkB,GAC7C,IAAI,CAAC,mBAAmB,EAAE,OAAO,GAAG,OAAO,GAAG,QAAQ,CAAC,CAAC;AAE1D,eAAO,MAAM,SAAS;IA9BlB;;;OAGG;aACM,KAAK,CAAC,UAAU,CAAC;IAC1B;;OAEG;gBACS,OAAO;IACnB;;OAEG;gBACS,OAAO;IACnB;;;;OAIG;YACK,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU;IAC7C;;;;OAIG;YACK,OAAO,CAAC,eAAe,CAAC,GAAG,UAAU;mGAgIhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultScrubberBeacon.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/DefaultScrubberBeacon.tsx"],"names":[],"mappings":"AAkBA,OAAO,
|
|
1
|
+
{"version":3,"file":"DefaultScrubberBeacon.d.ts","sourceRoot":"","sources":["../../../src/chart/scrubber/DefaultScrubberBeacon.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAIL,KAAK,UAAU,EAChB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAkBzE,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,GAAG;IAC7D;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;aA2CxB,CAAC;cAEyB,CAAC;aAO/B,CAAC;wBAGW,CAAC;;;IAnEjB;;;OAGG;aACM,MAAM;IACf;;;OAGG;kBACW,MAAM;sDAiMrB,CAAC"}
|
package/dts/chart/utils/bar.d.ts
CHANGED
|
@@ -23,9 +23,9 @@ export type BarTransition = Transition & {
|
|
|
23
23
|
* @returns A standard Transition with computed delay
|
|
24
24
|
*/
|
|
25
25
|
export declare const withStaggerDelayTransition: (
|
|
26
|
-
transition: BarTransition,
|
|
26
|
+
transition: BarTransition | null,
|
|
27
27
|
normalizedX: number,
|
|
28
|
-
) => Transition;
|
|
28
|
+
) => Transition | null;
|
|
29
29
|
/**
|
|
30
30
|
* Default bar enter transition. Uses the default spring with a stagger delay
|
|
31
31
|
* so bars spring into place from left to right.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bar.d.ts","sourceRoot":"","sources":["../../../src/chart/utils/bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAElE;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG;IACvC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACrC,YAAY,aAAa,
|
|
1
|
+
{"version":3,"file":"bar.d.ts","sourceRoot":"","sources":["../../../src/chart/utils/bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAElE;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG;IACvC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,GACrC,YAAY,aAAa,GAAG,IAAI,EAChC,aAAa,MAAM,KAClB,UAAU,GAAG,IAQf,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,yBAAyB,EAAE,aAGvC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,CAM9E"}
|
|
@@ -67,7 +67,7 @@ export declare const getTransition: (
|
|
|
67
67
|
value: Transition | null | undefined,
|
|
68
68
|
animate: boolean,
|
|
69
69
|
defaultValue: Transition,
|
|
70
|
-
) => Transition;
|
|
70
|
+
) => Transition | null;
|
|
71
71
|
/**
|
|
72
72
|
* @worklet
|
|
73
73
|
*/
|
|
@@ -107,7 +107,10 @@ export declare const useInterpolator: <T>(
|
|
|
107
107
|
* // Timing animation
|
|
108
108
|
* progress.value = buildTransition(1, { type: 'timing', duration: 500 });
|
|
109
109
|
*/
|
|
110
|
-
export declare const buildTransition: (
|
|
110
|
+
export declare const buildTransition: (
|
|
111
|
+
targetValue: number,
|
|
112
|
+
transition: Transition | null,
|
|
113
|
+
) => number;
|
|
111
114
|
/**
|
|
112
115
|
* Hook for path animation state and transitions.
|
|
113
116
|
*
|
|
@@ -161,12 +164,12 @@ export declare const usePathTransition: ({
|
|
|
161
164
|
* Only used when `initialPath` is provided.
|
|
162
165
|
* If not provided, falls back to `update`.
|
|
163
166
|
*/
|
|
164
|
-
enter?: Transition;
|
|
167
|
+
enter?: Transition | null;
|
|
165
168
|
/**
|
|
166
169
|
* Transition for subsequent data update animations.
|
|
167
170
|
* @default defaultTransition
|
|
168
171
|
*/
|
|
169
|
-
update?: Transition;
|
|
172
|
+
update?: Transition | null;
|
|
170
173
|
};
|
|
171
174
|
/**
|
|
172
175
|
* Transition for updates.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transition.d.ts","sourceRoot":"","sources":["../../../src/chart/utils/transition.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAKhB,KAAK,gBAAgB,EAErB,KAAK,gBAAgB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAA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;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,KAAG,WAAW,CAAC,MAAM,CAkFrB,CAAC"}
|
package/esm/chart/Path.js
CHANGED
|
@@ -92,18 +92,19 @@ export const Path = /*#__PURE__*/memo(props => {
|
|
|
92
92
|
const isReady = !!context.getXScale();
|
|
93
93
|
const enterTransition = useMemo(() => getTransition(transitions == null ? void 0 : transitions.enter, animate, defaultPathEnterTransition), [animate, transitions == null ? void 0 : transitions.enter]);
|
|
94
94
|
const updateTransition = useMemo(() => getTransition((transitions == null ? void 0 : transitions.update) !== undefined ? transitions.update : transition, animate, defaultTransition), [animate, transitions == null ? void 0 : transitions.update, transition]);
|
|
95
|
+
const shouldAnimateClip = animate && enterTransition !== null;
|
|
95
96
|
|
|
96
97
|
// The clip offset provides extra padding to prevent path from being cut off
|
|
97
98
|
// Area charts typically use offset=0 for exact clipping, while lines use offset=2 for breathing room
|
|
98
99
|
const totalOffset = clipOffset * 2; // Applied on both sides
|
|
99
100
|
|
|
100
101
|
// Animation progress for clip path reveal
|
|
101
|
-
const clipProgress = useSharedValue(
|
|
102
|
+
const clipProgress = useSharedValue(shouldAnimateClip ? 0 : 1);
|
|
102
103
|
useEffect(() => {
|
|
103
|
-
if (
|
|
104
|
+
if (shouldAnimateClip && isReady) {
|
|
104
105
|
clipProgress.value = buildTransition(1, enterTransition);
|
|
105
106
|
}
|
|
106
|
-
}, [
|
|
107
|
+
}, [shouldAnimateClip, isReady, clipProgress, enterTransition]);
|
|
107
108
|
|
|
108
109
|
// Create initial and target clip paths for animation
|
|
109
110
|
const {
|
|
@@ -139,7 +140,7 @@ export const Path = /*#__PURE__*/memo(props => {
|
|
|
139
140
|
}, [rect, clipOffset, totalOffset]);
|
|
140
141
|
|
|
141
142
|
// Use usePathInterpolation for animated clip path
|
|
142
|
-
const animatedClipPath = usePathInterpolation(clipProgress, [0, 1],
|
|
143
|
+
const animatedClipPath = usePathInterpolation(clipProgress, [0, 1], shouldAnimateClip && initialClipPath && targetClipPath ? [initialClipPath, targetClipPath] : targetClipPath ? [targetClipPath, targetClipPath] : [Skia.Path.Make(), Skia.Path.Make()]);
|
|
143
144
|
|
|
144
145
|
// Resolve the final clip path:
|
|
145
146
|
// 1. If clipPath prop was explicitly provided, use it (even if null = no clipping)
|
|
@@ -152,13 +153,13 @@ export const Path = /*#__PURE__*/memo(props => {
|
|
|
152
153
|
}
|
|
153
154
|
|
|
154
155
|
// If not animating or paths are null, return target clip path
|
|
155
|
-
if (!
|
|
156
|
+
if (!shouldAnimateClip || !targetClipPath) {
|
|
156
157
|
return targetClipPath;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
// Return undefined here since we'll use animatedClipPath directly
|
|
160
161
|
return undefined;
|
|
161
|
-
}, [clipPathProp,
|
|
162
|
+
}, [clipPathProp, shouldAnimateClip, targetClipPath]);
|
|
162
163
|
|
|
163
164
|
// Convert SVG path string to SkPath for static rendering
|
|
164
165
|
const staticPath = useDerivedValue(() => {
|
|
@@ -206,7 +207,7 @@ export const Path = /*#__PURE__*/memo(props => {
|
|
|
206
207
|
});
|
|
207
208
|
|
|
208
209
|
// Determine which clip path to use
|
|
209
|
-
const finalClipPath =
|
|
210
|
+
const finalClipPath = shouldAnimateClip && resolvedClipPath === undefined ? animatedClipPath : resolvedClipPath;
|
|
210
211
|
|
|
211
212
|
// If finalClipPath is null, render without clipping
|
|
212
213
|
if (finalClipPath === null) {
|
|
@@ -5,7 +5,7 @@ import { IconButton } from '@coinbase/cds-mobile/buttons/IconButton';
|
|
|
5
5
|
import { ExampleScreen } from '@coinbase/cds-mobile/examples/ExampleScreen';
|
|
6
6
|
import { Box, HStack, VStack } from '@coinbase/cds-mobile/layout';
|
|
7
7
|
import { Text } from '@coinbase/cds-mobile/typography';
|
|
8
|
-
import {
|
|
8
|
+
import { AreaChart } from '../area/AreaChart';
|
|
9
9
|
import { BarChart } from '../bar/BarChart';
|
|
10
10
|
import { CartesianChart } from '../CartesianChart';
|
|
11
11
|
import { Line } from '../line/Line';
|
|
@@ -143,8 +143,9 @@ const TransitionAreaChart = /*#__PURE__*/memo(_ref2 => {
|
|
|
143
143
|
idlePulse,
|
|
144
144
|
scrubberRef
|
|
145
145
|
} = _ref2;
|
|
146
|
-
return /*#__PURE__*/
|
|
146
|
+
return /*#__PURE__*/_jsx(AreaChart, {
|
|
147
147
|
enableScrubbing: true,
|
|
148
|
+
showLines: true,
|
|
148
149
|
height: 200,
|
|
149
150
|
inset: {
|
|
150
151
|
top: 16,
|
|
@@ -156,18 +157,13 @@ const TransitionAreaChart = /*#__PURE__*/memo(_ref2 => {
|
|
|
156
157
|
id: 'values',
|
|
157
158
|
data
|
|
158
159
|
}],
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
transitions: transitions
|
|
162
|
-
}), /*#__PURE__*/_jsx(Line, {
|
|
163
|
-
seriesId: "values",
|
|
164
|
-
transitions: transitions
|
|
165
|
-
}), /*#__PURE__*/_jsx(Scrubber, {
|
|
160
|
+
transitions: transitions,
|
|
161
|
+
children: /*#__PURE__*/_jsx(Scrubber, {
|
|
166
162
|
ref: scrubberRef,
|
|
167
163
|
hideOverlay: true,
|
|
168
164
|
idlePulse: idlePulse,
|
|
169
165
|
transitions: transitions
|
|
170
|
-
})
|
|
166
|
+
})
|
|
171
167
|
});
|
|
172
168
|
});
|
|
173
169
|
const MultiLineChart = /*#__PURE__*/memo(_ref3 => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const _excluded = ["series", "stacked", "AreaComponent", "curve", "fillOpacity", "type", "connectNulls", "transition", "LineComponent", "strokeWidth", "showXAxis", "showYAxis", "showLines", "lineType", "xAxis", "yAxis", "inset", "children"],
|
|
1
|
+
const _excluded = ["series", "stacked", "AreaComponent", "curve", "fillOpacity", "type", "connectNulls", "transition", "transitions", "LineComponent", "strokeWidth", "showXAxis", "showYAxis", "showLines", "lineType", "xAxis", "yAxis", "inset", "children"],
|
|
2
2
|
_excluded2 = ["scaleType", "data", "categoryPadding", "domain", "domainLimit", "range"],
|
|
3
3
|
_excluded3 = ["scaleType", "data", "categoryPadding", "domain", "domainLimit", "range", "id"],
|
|
4
4
|
_excluded4 = ["id", "data", "label", "color", "yAxisId", "opacity", "LineComponent", "stackId"],
|
|
5
|
-
_excluded5 = ["id", "data", "label", "color", "yAxisId", "fill", "fillOpacity", "stackId", "type"
|
|
5
|
+
_excluded5 = ["id", "data", "label", "color", "yAxisId", "fill", "fillOpacity", "stackId", "type"];
|
|
6
6
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
7
7
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
8
8
|
import { forwardRef, memo, useMemo } from 'react';
|
|
@@ -22,6 +22,7 @@ export const AreaChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =
|
|
|
22
22
|
type,
|
|
23
23
|
connectNulls,
|
|
24
24
|
transition,
|
|
25
|
+
transitions,
|
|
25
26
|
LineComponent,
|
|
26
27
|
strokeWidth,
|
|
27
28
|
showXAxis,
|
|
@@ -128,13 +129,14 @@ export const AreaChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =
|
|
|
128
129
|
fillOpacity: fillOpacity,
|
|
129
130
|
seriesId: id,
|
|
130
131
|
transition: transition,
|
|
132
|
+
transitions: transitions,
|
|
131
133
|
type: type
|
|
132
134
|
}, areaPropsFromSeries), id);
|
|
133
135
|
}), showLines && (series == null ? void 0 : series.map(_ref5 => {
|
|
134
136
|
let {
|
|
135
|
-
id
|
|
137
|
+
id
|
|
138
|
+
|
|
136
139
|
// Area type (don't pass to Line)
|
|
137
|
-
lineType: seriesLineType
|
|
138
140
|
} = _ref5,
|
|
139
141
|
otherPropsFromSeries = _objectWithoutPropertiesLoose(_ref5, _excluded5);
|
|
140
142
|
return /*#__PURE__*/_jsx(Line, _extends({
|
|
@@ -144,7 +146,8 @@ export const AreaChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =
|
|
|
144
146
|
seriesId: id,
|
|
145
147
|
strokeWidth: strokeWidth,
|
|
146
148
|
transition: transition,
|
|
147
|
-
|
|
149
|
+
transitions: transitions,
|
|
150
|
+
type: lineType
|
|
148
151
|
}, otherPropsFromSeries), id);
|
|
149
152
|
})), children]
|
|
150
153
|
}));
|
|
@@ -3,13 +3,13 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
3
3
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import { memo, useMemo } from 'react';
|
|
5
5
|
import { useTheme } from '@coinbase/cds-mobile/hooks/useTheme';
|
|
6
|
-
import { Group
|
|
6
|
+
import { Group } from '@shopify/react-native-skia';
|
|
7
7
|
import { useCartesianChartContext } from '../ChartProvider';
|
|
8
8
|
import { Gradient } from '../gradient';
|
|
9
9
|
import { Path } from '../Path';
|
|
10
10
|
import { createGradient, getBaseline } from '../utils';
|
|
11
11
|
import { getDottedAreaPath } from '../utils/path';
|
|
12
|
-
import { usePathTransition } from '../utils/transition';
|
|
12
|
+
import { defaultTransition, usePathTransition } from '../utils/transition';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
/**
|
|
15
15
|
* A customizable dotted area gradient component.
|
|
@@ -38,8 +38,12 @@ export const DottedArea = /*#__PURE__*/memo(_ref => {
|
|
|
38
38
|
animate,
|
|
39
39
|
getYAxis
|
|
40
40
|
} = useCartesianChartContext();
|
|
41
|
+
const shouldAnimate = animateProp != null ? animateProp : animate;
|
|
41
42
|
const yAxisConfig = getYAxis(yAxisId);
|
|
42
43
|
const fill = useMemo(() => fillProp != null ? fillProp : theme.color.fgPrimary, [fillProp, theme.color.fgPrimary]);
|
|
44
|
+
const updateTransition = useMemo(() => {
|
|
45
|
+
return (transitions == null ? void 0 : transitions.update) !== undefined ? transitions.update : transition !== undefined ? transition : defaultTransition;
|
|
46
|
+
}, [transitions == null ? void 0 : transitions.update, transition]);
|
|
43
47
|
const dottedPath = useMemo(() => {
|
|
44
48
|
if (!drawingArea) return '';
|
|
45
49
|
return getDottedAreaPath({
|
|
@@ -49,27 +53,24 @@ export const DottedArea = /*#__PURE__*/memo(_ref => {
|
|
|
49
53
|
height: drawingArea.height
|
|
50
54
|
}, patternSize, dotSize);
|
|
51
55
|
}, [drawingArea, patternSize, dotSize]);
|
|
52
|
-
const
|
|
56
|
+
const clipPath = usePathTransition({
|
|
53
57
|
currentPath: d,
|
|
54
58
|
transitions: {
|
|
55
|
-
update:
|
|
59
|
+
update: shouldAnimate ? updateTransition : null
|
|
56
60
|
}
|
|
57
61
|
});
|
|
58
|
-
const staticClipPath = useMemo(() => {
|
|
59
|
-
var _Skia$Path$MakeFromSV;
|
|
60
|
-
if (!d) return;
|
|
61
|
-
return (_Skia$Path$MakeFromSV = Skia.Path.MakeFromSVGString(d)) != null ? _Skia$Path$MakeFromSV : undefined;
|
|
62
|
-
}, [d]);
|
|
63
62
|
const gradient = useMemo(() => {
|
|
64
63
|
if (gradientProp) return gradientProp;
|
|
65
64
|
if (!yAxisConfig) return;
|
|
66
65
|
const baselineValue = getBaseline(yAxisConfig.domain, baseline);
|
|
67
66
|
return createGradient(yAxisConfig.domain, baselineValue, fill, peakOpacity, baselineOpacity);
|
|
68
67
|
}, [gradientProp, yAxisConfig, fill, baseline, peakOpacity, baselineOpacity]);
|
|
68
|
+
|
|
69
|
+
// Update transition is used for clip path, we skip update animation on Path itself
|
|
69
70
|
return /*#__PURE__*/_jsx(Group, {
|
|
70
|
-
clip:
|
|
71
|
+
clip: clipPath,
|
|
71
72
|
children: /*#__PURE__*/_jsx(Path, _extends({
|
|
72
|
-
animate:
|
|
73
|
+
animate: shouldAnimate,
|
|
73
74
|
d: dottedPath,
|
|
74
75
|
fill: fill,
|
|
75
76
|
transition: transition,
|
package/esm/chart/line/Line.js
CHANGED
|
@@ -150,7 +150,8 @@ export const Line = /*#__PURE__*/memo(_ref => {
|
|
|
150
150
|
// If points is true, render with defaults
|
|
151
151
|
if (points === true) {
|
|
152
152
|
return /*#__PURE__*/_jsx(Point, _extends({
|
|
153
|
-
transition: transition
|
|
153
|
+
transition: transition,
|
|
154
|
+
transitions: transitions
|
|
154
155
|
}, defaults), seriesId + "-" + xValue);
|
|
155
156
|
}
|
|
156
157
|
|
|
@@ -159,7 +160,8 @@ export const Line = /*#__PURE__*/memo(_ref => {
|
|
|
159
160
|
if (!result) return;
|
|
160
161
|
const pointConfig = result === true ? {} : result;
|
|
161
162
|
return /*#__PURE__*/_jsx(Point, _extends({
|
|
162
|
-
transition: transition
|
|
163
|
+
transition: transition,
|
|
164
|
+
transitions: transitions
|
|
163
165
|
}, defaults, pointConfig), seriesId + "-" + xValue);
|
|
164
166
|
})
|
|
165
167
|
})]
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const _excluded = ["series", "showArea", "areaType", "type", "LineComponent", "AreaComponent", "curve", "points", "strokeWidth", "strokeOpacity", "connectNulls", "transition", "opacity", "showXAxis", "showYAxis", "xAxis", "yAxis", "inset", "children"],
|
|
1
|
+
const _excluded = ["series", "showArea", "areaType", "type", "LineComponent", "AreaComponent", "curve", "points", "strokeWidth", "strokeOpacity", "connectNulls", "transition", "transitions", "opacity", "showXAxis", "showYAxis", "xAxis", "yAxis", "inset", "children"],
|
|
2
2
|
_excluded2 = ["scaleType", "data", "categoryPadding", "domain", "domainLimit", "range"],
|
|
3
3
|
_excluded3 = ["scaleType", "data", "categoryPadding", "domain", "domainLimit", "range", "id"],
|
|
4
4
|
_excluded4 = ["id", "data", "label", "color", "yAxisId"];
|
|
@@ -25,6 +25,7 @@ export const LineChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =
|
|
|
25
25
|
strokeOpacity,
|
|
26
26
|
connectNulls,
|
|
27
27
|
transition,
|
|
28
|
+
transitions,
|
|
28
29
|
opacity,
|
|
29
30
|
showXAxis,
|
|
30
31
|
showYAxis,
|
|
@@ -97,7 +98,6 @@ export const LineChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =
|
|
|
97
98
|
children: [showXAxis && /*#__PURE__*/_jsx(XAxis, _extends({}, xAxisVisualProps)), showYAxis && /*#__PURE__*/_jsx(YAxis, _extends({
|
|
98
99
|
axisId: yAxisId
|
|
99
100
|
}, yAxisVisualProps)), series == null ? void 0 : series.map(_ref4 => {
|
|
100
|
-
var _linePropsFromSeries$;
|
|
101
101
|
let {
|
|
102
102
|
id
|
|
103
103
|
} = _ref4,
|
|
@@ -114,7 +114,8 @@ export const LineChart = /*#__PURE__*/memo(/*#__PURE__*/forwardRef((_ref, ref) =
|
|
|
114
114
|
showArea: showArea,
|
|
115
115
|
strokeOpacity: strokeOpacity,
|
|
116
116
|
strokeWidth: strokeWidth,
|
|
117
|
-
transition:
|
|
117
|
+
transition: transition,
|
|
118
|
+
transitions: transitions,
|
|
118
119
|
type: type
|
|
119
120
|
}, linePropsFromSeries), id);
|
|
120
121
|
}), children]
|
package/esm/chart/utils/bar.js
CHANGED
|
@@ -56,13 +56,18 @@ export const defaultAccessoryEnterTransition = {
|
|
|
56
56
|
delay: accessoryFadeTransitionDelay
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
+
// Avoid exact endpoint samples, which can intermittently produce non-interpolatable
|
|
60
|
+
// path pairs for SkPath.interpolate on complex morphs.
|
|
61
|
+
// See https://github.com/wcandillon/can-it-be-done-in-react-native/blob/db8d6ee7024e37e8f8d2cb237c0b953b5fc766fe/season5/src/Headspace/Play.tsx
|
|
62
|
+
const pathInterpolationEpsilon = 1e-3;
|
|
63
|
+
|
|
59
64
|
/**
|
|
60
65
|
* Resolves a transition value based on the animation state and a default.
|
|
61
66
|
* @note Passing in null will disable an animation.
|
|
62
67
|
* @note Passing in undefined will use the provided default.
|
|
63
68
|
*/
|
|
64
69
|
export const getTransition = (value, animate, defaultValue) => {
|
|
65
|
-
if (!animate || value === null) return
|
|
70
|
+
if (!animate || value === null) return null;
|
|
66
71
|
return value != null ? value : defaultValue;
|
|
67
72
|
};
|
|
68
73
|
|
|
@@ -106,6 +111,7 @@ export const useInterpolator = (factory, value, interpolator, input, output, opt
|
|
|
106
111
|
export const buildTransition = (targetValue, transition) => {
|
|
107
112
|
'worklet';
|
|
108
113
|
|
|
114
|
+
if (transition === null) return targetValue;
|
|
109
115
|
const delayMs = transition.delay;
|
|
110
116
|
let animation;
|
|
111
117
|
switch (transition.type) {
|
|
@@ -160,14 +166,14 @@ export const buildTransition = (targetValue, transition) => {
|
|
|
160
166
|
* });
|
|
161
167
|
*/
|
|
162
168
|
export const usePathTransition = _ref => {
|
|
163
|
-
var
|
|
169
|
+
var _Skia$Path$MakeFromSV;
|
|
164
170
|
let {
|
|
165
171
|
currentPath,
|
|
166
172
|
initialPath,
|
|
167
173
|
transitions,
|
|
168
174
|
transition = defaultTransition
|
|
169
175
|
} = _ref;
|
|
170
|
-
const updateTransition = (
|
|
176
|
+
const updateTransition = (transitions == null ? void 0 : transitions.update) !== undefined ? transitions.update : transition;
|
|
171
177
|
const enterTransition = transitions == null ? void 0 : transitions.enter;
|
|
172
178
|
const targetPathRef = useRef(initialPath != null ? initialPath : currentPath);
|
|
173
179
|
const isFirstAnimation = useRef(!!initialPath);
|
|
@@ -180,24 +186,36 @@ export const usePathTransition = _ref => {
|
|
|
180
186
|
const result = useSharedValue(initialSkiaPath);
|
|
181
187
|
useEffect(() => {
|
|
182
188
|
if (targetPathRef.current !== currentPath) {
|
|
183
|
-
var _Skia$Path$
|
|
189
|
+
var _Skia$Path$MakeFromSV3, _Skia$Path$MakeFromSV4, _Skia$Path$MakeFromSV5;
|
|
184
190
|
let fromPath = targetPathRef.current;
|
|
185
191
|
if (interpolatorRef.current) {
|
|
186
192
|
const p = Math.min(Math.max(progress.value, 0), 1);
|
|
187
193
|
fromPath = interpolatorRef.current(p);
|
|
188
194
|
}
|
|
189
195
|
targetPathRef.current = currentPath;
|
|
190
|
-
const pathInterpolator = interpolatePath(fromPath, currentPath);
|
|
191
|
-
interpolatorRef.current = pathInterpolator;
|
|
192
|
-
normalizedStartShared.value = (_Skia$Path$MakeFromSV2 = Skia.Path.MakeFromSVGString(pathInterpolator(0))) != null ? _Skia$Path$MakeFromSV2 : Skia.Path.Make();
|
|
193
|
-
normalizedEndShared.value = (_Skia$Path$MakeFromSV3 = Skia.Path.MakeFromSVGString(pathInterpolator(1))) != null ? _Skia$Path$MakeFromSV3 : Skia.Path.Make();
|
|
194
|
-
fallbackPathShared.value = (_Skia$Path$MakeFromSV4 = Skia.Path.MakeFromSVGString(currentPath)) != null ? _Skia$Path$MakeFromSV4 : Skia.Path.Make();
|
|
195
196
|
const activeTransition = isFirstAnimation.current && enterTransition !== undefined ? enterTransition : updateTransition;
|
|
196
197
|
isFirstAnimation.current = false;
|
|
198
|
+
if (activeTransition === null) {
|
|
199
|
+
var _Skia$Path$MakeFromSV2;
|
|
200
|
+
const targetPath = (_Skia$Path$MakeFromSV2 = Skia.Path.MakeFromSVGString(currentPath)) != null ? _Skia$Path$MakeFromSV2 : Skia.Path.Make();
|
|
201
|
+
interpolatorRef.current = null;
|
|
202
|
+
normalizedStartShared.value = targetPath;
|
|
203
|
+
normalizedEndShared.value = targetPath;
|
|
204
|
+
fallbackPathShared.value = targetPath;
|
|
205
|
+
progress.value = 1;
|
|
206
|
+
result.value = targetPath;
|
|
207
|
+
notifyChange(result);
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
const pathInterpolator = interpolatePath(fromPath, currentPath);
|
|
211
|
+
interpolatorRef.current = pathInterpolator;
|
|
212
|
+
normalizedStartShared.value = (_Skia$Path$MakeFromSV3 = Skia.Path.MakeFromSVGString(pathInterpolator(pathInterpolationEpsilon))) != null ? _Skia$Path$MakeFromSV3 : Skia.Path.Make();
|
|
213
|
+
normalizedEndShared.value = (_Skia$Path$MakeFromSV4 = Skia.Path.MakeFromSVGString(pathInterpolator(1 - pathInterpolationEpsilon))) != null ? _Skia$Path$MakeFromSV4 : Skia.Path.Make();
|
|
214
|
+
fallbackPathShared.value = (_Skia$Path$MakeFromSV5 = Skia.Path.MakeFromSVGString(currentPath)) != null ? _Skia$Path$MakeFromSV5 : Skia.Path.Make();
|
|
197
215
|
progress.value = 0;
|
|
198
216
|
progress.value = buildTransition(1, activeTransition);
|
|
199
217
|
}
|
|
200
|
-
}, [currentPath, updateTransition, enterTransition, progress, normalizedStartShared, normalizedEndShared, fallbackPathShared]);
|
|
218
|
+
}, [currentPath, updateTransition, enterTransition, progress, normalizedStartShared, normalizedEndShared, fallbackPathShared, result]);
|
|
201
219
|
useAnimatedReaction(() => ({
|
|
202
220
|
p: progress.value,
|
|
203
221
|
to: fallbackPathShared.value
|