@graphysdk/react-renderer 1.9.0-beta.1793293011268 → 1.9.0-beta.1793617099519
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/dist/editable.cjs +1 -1
- package/dist/editable.d.ts +904 -9
- package/dist/editable.mjs +845 -842
- package/dist/{history-chords-BM-aCZWN.js → history-chords-Cm1yytRz.js} +1427 -1415
- package/dist/history-chords-Dyj-GHKj.cjs +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +487 -6
- package/dist/index.mjs +411 -395
- package/package.json +4 -4
- package/dist/history-chords-CyWnvnaA.cjs +0 -2
package/dist/editable.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { EditTarget } from '@graphysdk/viz-engine';
|
|
|
12
12
|
import { FormattedAxis } from '@graphysdk/viz-engine';
|
|
13
13
|
import { FormattedHeadline } from '@graphysdk/viz-engine';
|
|
14
14
|
import { FormattedLegend } from '@graphysdk/viz-engine';
|
|
15
|
+
import { FormattingLocale } from '@graphysdk/viz-engine';
|
|
15
16
|
import { GraphLayout } from '@graphysdk/viz-engine';
|
|
16
17
|
import { GraphyBadgeVariant } from '@graphysdk/viz-engine';
|
|
17
18
|
import { HeadlineMeasurer } from '@graphysdk/viz-engine';
|
|
@@ -647,6 +648,8 @@ declare type DotNotation<T> = T extends object ? {
|
|
|
647
648
|
* painting inside the plot `<svg>`, which have to show a target being reached for or an endpoint being
|
|
648
649
|
* moved. A chart rendered without this wrapper has no editor state at all, and reads it at rest.
|
|
649
650
|
*
|
|
651
|
+
* Its texts follow `formattingLocale`, or the `locale` an `IntlProvider` above it sets, and take that provider's overrides and `dir`.
|
|
652
|
+
*
|
|
650
653
|
* @example
|
|
651
654
|
* ```tsx
|
|
652
655
|
* <GraphProvider spec={input} data={data}>
|
|
@@ -694,6 +697,897 @@ export declare interface EditMenus {
|
|
|
694
697
|
graph?: TargetEditMenu<'graph'> | null;
|
|
695
698
|
}
|
|
696
699
|
|
|
700
|
+
declare const EDITOR_EN_GB: {
|
|
701
|
+
readonly common: {
|
|
702
|
+
readonly save: "Save";
|
|
703
|
+
readonly cancel: "Cancel";
|
|
704
|
+
readonly confirm: "Confirm";
|
|
705
|
+
readonly delete: "Delete";
|
|
706
|
+
readonly confirmDelete: (params: {
|
|
707
|
+
item: string;
|
|
708
|
+
}) => string;
|
|
709
|
+
readonly abbreviations: {
|
|
710
|
+
readonly thousands: "k";
|
|
711
|
+
readonly millions: "m";
|
|
712
|
+
readonly billions: "b";
|
|
713
|
+
};
|
|
714
|
+
};
|
|
715
|
+
readonly editor: {
|
|
716
|
+
readonly title: "Graphy Editor";
|
|
717
|
+
readonly description: "Edit your content here";
|
|
718
|
+
readonly graphTypes: {
|
|
719
|
+
readonly column: "Column";
|
|
720
|
+
readonly columnStacked: "Stacked column";
|
|
721
|
+
readonly columnStackedFill: "100% stacked column";
|
|
722
|
+
readonly bar: "Bar";
|
|
723
|
+
readonly barStacked: "Stacked bar";
|
|
724
|
+
readonly barStackedFill: "100% stacked bar";
|
|
725
|
+
readonly line: "Line";
|
|
726
|
+
readonly area: "Area";
|
|
727
|
+
readonly areaStacked: "Stacked area";
|
|
728
|
+
readonly pie: "Pie";
|
|
729
|
+
readonly donut: "Donut";
|
|
730
|
+
readonly radialBar: "Radial bar";
|
|
731
|
+
readonly rose: "Rose";
|
|
732
|
+
readonly roseStacked: "Stacked rose";
|
|
733
|
+
readonly radar: "Radar";
|
|
734
|
+
readonly radarFilled: "Filled radar";
|
|
735
|
+
readonly scatter: "Scatter";
|
|
736
|
+
readonly bubble: "Bubble";
|
|
737
|
+
readonly funnel: "Funnel";
|
|
738
|
+
readonly combo: "Combo";
|
|
739
|
+
readonly heatmap: "Heatmap";
|
|
740
|
+
readonly waterfall: "Waterfall";
|
|
741
|
+
readonly mekko: "Mekko";
|
|
742
|
+
readonly table: "Table";
|
|
743
|
+
};
|
|
744
|
+
readonly sizePanel: {
|
|
745
|
+
readonly toolbarButton: "Size";
|
|
746
|
+
readonly presetsSection: {
|
|
747
|
+
readonly title: "Presets";
|
|
748
|
+
};
|
|
749
|
+
readonly customSizeSection: {
|
|
750
|
+
readonly title: "Custom size";
|
|
751
|
+
};
|
|
752
|
+
readonly presets: {
|
|
753
|
+
readonly googleSlides: "Google Slides / PowerPoint";
|
|
754
|
+
readonly webEmail: "Web / email";
|
|
755
|
+
readonly linkedIn: "LinkedIn post";
|
|
756
|
+
readonly instagram: "Instagram post";
|
|
757
|
+
readonly tiktok: "TikTok / Instagram story";
|
|
758
|
+
readonly twitter: "X (Twitter)";
|
|
759
|
+
readonly mobile: "Mobile";
|
|
760
|
+
};
|
|
761
|
+
readonly inputs: {
|
|
762
|
+
readonly unitLabel: "px";
|
|
763
|
+
};
|
|
764
|
+
readonly validation: {
|
|
765
|
+
readonly maxSizeError: (params: {
|
|
766
|
+
max: number;
|
|
767
|
+
}) => string;
|
|
768
|
+
readonly minSizeError: (params: {
|
|
769
|
+
min: number;
|
|
770
|
+
}) => string;
|
|
771
|
+
};
|
|
772
|
+
};
|
|
773
|
+
readonly graphPanel: {
|
|
774
|
+
readonly toolbarButton: "Graph";
|
|
775
|
+
readonly graphTypeSection: {
|
|
776
|
+
readonly title: "Graph type";
|
|
777
|
+
};
|
|
778
|
+
readonly mappingSection: {
|
|
779
|
+
readonly title: "Data";
|
|
780
|
+
readonly x: "X-axis";
|
|
781
|
+
readonly y: "Value";
|
|
782
|
+
readonly color: "Colour";
|
|
783
|
+
readonly size: "Size";
|
|
784
|
+
readonly label: "Label";
|
|
785
|
+
readonly none: "None";
|
|
786
|
+
};
|
|
787
|
+
readonly comboSection: {
|
|
788
|
+
readonly title: "Combo chart appearance";
|
|
789
|
+
readonly types: {
|
|
790
|
+
readonly groupedBars: "Grouped bars";
|
|
791
|
+
readonly stackedBars: "Stacked bars";
|
|
792
|
+
readonly lines: "Lines only";
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
readonly polarSection: {
|
|
796
|
+
readonly title: "Polar";
|
|
797
|
+
readonly innerRadius: "Inner radius";
|
|
798
|
+
readonly startAngle: "Start angle";
|
|
799
|
+
};
|
|
800
|
+
readonly barSection: {
|
|
801
|
+
readonly title: "Bars";
|
|
802
|
+
readonly thickness: "Bar thickness";
|
|
803
|
+
readonly widths: {
|
|
804
|
+
readonly narrow: "Narrow";
|
|
805
|
+
readonly regular: "Regular";
|
|
806
|
+
readonly wide: "Wide";
|
|
807
|
+
};
|
|
808
|
+
readonly rounding: "Rounding";
|
|
809
|
+
readonly roundingOptions: {
|
|
810
|
+
readonly none: "None";
|
|
811
|
+
readonly xs: "XS";
|
|
812
|
+
readonly sm: "S";
|
|
813
|
+
readonly md: "M";
|
|
814
|
+
readonly lg: "L";
|
|
815
|
+
readonly xl: "XL";
|
|
816
|
+
readonly full: "Full";
|
|
817
|
+
};
|
|
818
|
+
};
|
|
819
|
+
readonly graphOptionsSection: {
|
|
820
|
+
readonly title: "Graph options";
|
|
821
|
+
};
|
|
822
|
+
readonly gridSection: {
|
|
823
|
+
readonly title: "Grid";
|
|
824
|
+
readonly horizontalGridLines: "Horizontal lines";
|
|
825
|
+
readonly verticalGridLines: "Vertical lines";
|
|
826
|
+
readonly rings: "Rings";
|
|
827
|
+
readonly spokes: "Spokes";
|
|
828
|
+
readonly gridStyle: "Grid style";
|
|
829
|
+
readonly gridThickness: "Grid thickness";
|
|
830
|
+
readonly lineStyles: {
|
|
831
|
+
readonly solid: "Solid";
|
|
832
|
+
readonly dashed: "Dashed";
|
|
833
|
+
readonly dotted: "Dotted";
|
|
834
|
+
};
|
|
835
|
+
readonly lineWidths: {
|
|
836
|
+
readonly thin: "Thin";
|
|
837
|
+
readonly medium: "Medium";
|
|
838
|
+
readonly thick: "Thick";
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
readonly graphOptions: {
|
|
842
|
+
readonly sortBars: "Sort high → low";
|
|
843
|
+
readonly showPoints: "Show points";
|
|
844
|
+
readonly lineFill: "Fill under line";
|
|
845
|
+
readonly smoothLines: "Smooth lines";
|
|
846
|
+
readonly curves: {
|
|
847
|
+
readonly smooth: "Smooth";
|
|
848
|
+
readonly linear: "Straight";
|
|
849
|
+
};
|
|
850
|
+
readonly stackTotals: "Stack totals";
|
|
851
|
+
readonly dataLabels: "Data labels";
|
|
852
|
+
readonly showPercentages: "Show percentages";
|
|
853
|
+
readonly categoryLabels: "Category labels";
|
|
854
|
+
};
|
|
855
|
+
readonly legendSection: {
|
|
856
|
+
readonly title: "Legend";
|
|
857
|
+
readonly auto: "Auto";
|
|
858
|
+
readonly top: "Top";
|
|
859
|
+
readonly bottom: "Bottom";
|
|
860
|
+
readonly left: "Left";
|
|
861
|
+
readonly right: "Right";
|
|
862
|
+
readonly none: "None";
|
|
863
|
+
readonly alignLabel: "Alignment";
|
|
864
|
+
readonly align: {
|
|
865
|
+
readonly auto: "Auto";
|
|
866
|
+
readonly center: "Center";
|
|
867
|
+
};
|
|
868
|
+
readonly displayLabel: "Style";
|
|
869
|
+
readonly display: {
|
|
870
|
+
readonly auto: "Auto";
|
|
871
|
+
readonly pill: "Pills";
|
|
872
|
+
readonly direct: "Direct";
|
|
873
|
+
};
|
|
874
|
+
};
|
|
875
|
+
readonly numberFormatSection: {
|
|
876
|
+
readonly title: "Number format";
|
|
877
|
+
};
|
|
878
|
+
readonly numberFormat: {
|
|
879
|
+
readonly abbreviationLabel: "Abbreviation";
|
|
880
|
+
readonly valueLabel: "Value";
|
|
881
|
+
readonly decimalPlacesLabel: "Decimal places";
|
|
882
|
+
readonly options: {
|
|
883
|
+
readonly auto: "Auto";
|
|
884
|
+
readonly custom: "Custom";
|
|
885
|
+
readonly none: "None";
|
|
886
|
+
};
|
|
887
|
+
};
|
|
888
|
+
readonly headlineNumberSize: {
|
|
889
|
+
readonly sizeLabel: "Size";
|
|
890
|
+
readonly valueLabel: "Value";
|
|
891
|
+
readonly sizes: {
|
|
892
|
+
readonly small: "S";
|
|
893
|
+
readonly medium: "M";
|
|
894
|
+
readonly large: "L";
|
|
895
|
+
};
|
|
896
|
+
};
|
|
897
|
+
readonly lineThickness: {
|
|
898
|
+
readonly label: "Line thickness";
|
|
899
|
+
};
|
|
900
|
+
readonly pointSize: {
|
|
901
|
+
readonly label: "Point size";
|
|
902
|
+
readonly options: {
|
|
903
|
+
readonly auto: "Auto";
|
|
904
|
+
readonly custom: "Custom";
|
|
905
|
+
};
|
|
906
|
+
readonly sizes: {
|
|
907
|
+
readonly small: "Small";
|
|
908
|
+
readonly medium: "Medium";
|
|
909
|
+
readonly large: "Large";
|
|
910
|
+
};
|
|
911
|
+
};
|
|
912
|
+
readonly headlineNumberSection: {
|
|
913
|
+
readonly title: "Headline number";
|
|
914
|
+
readonly toggle: "Visible";
|
|
915
|
+
readonly metricLabel: "Metric";
|
|
916
|
+
readonly compareWithLabel: "Compare with";
|
|
917
|
+
readonly metrics: {
|
|
918
|
+
readonly total: "Total";
|
|
919
|
+
readonly average: "Avg.";
|
|
920
|
+
readonly current: "Last";
|
|
921
|
+
readonly conversion: "Conversion";
|
|
922
|
+
readonly left: "Left";
|
|
923
|
+
};
|
|
924
|
+
readonly comparison: {
|
|
925
|
+
readonly first: "First";
|
|
926
|
+
readonly previous: "Previous";
|
|
927
|
+
};
|
|
928
|
+
readonly position: {
|
|
929
|
+
readonly above: "Above";
|
|
930
|
+
readonly center: "Center";
|
|
931
|
+
};
|
|
932
|
+
};
|
|
933
|
+
readonly treatEmptyValues: {
|
|
934
|
+
readonly leaveGap: {
|
|
935
|
+
readonly label: "Leave gap in chart";
|
|
936
|
+
readonly description: "Leaves a visible break in the line where data is missing";
|
|
937
|
+
};
|
|
938
|
+
readonly fillZero: {
|
|
939
|
+
readonly label: "Fill with zero";
|
|
940
|
+
readonly description: "Displays missing data points as zero";
|
|
941
|
+
};
|
|
942
|
+
readonly connectGaps: {
|
|
943
|
+
readonly label: "Connect across gaps";
|
|
944
|
+
readonly description: "Joins the line between available points, skipping the gap";
|
|
945
|
+
};
|
|
946
|
+
};
|
|
947
|
+
};
|
|
948
|
+
readonly axesPanel: {
|
|
949
|
+
readonly toolbarButton: "Axes";
|
|
950
|
+
readonly mainAxisSection: {
|
|
951
|
+
readonly yAxis: "Y-axis";
|
|
952
|
+
readonly xAxis: "X-axis";
|
|
953
|
+
};
|
|
954
|
+
readonly crossAxisSection: {
|
|
955
|
+
readonly xAxis: "X-axis";
|
|
956
|
+
readonly yAxis: "Y-axis";
|
|
957
|
+
};
|
|
958
|
+
readonly controls: {
|
|
959
|
+
readonly title: "Title";
|
|
960
|
+
readonly titlePlaceholder: "Add title";
|
|
961
|
+
readonly visible: "Visible";
|
|
962
|
+
readonly ticks: "Ticks";
|
|
963
|
+
readonly labels: "Labels";
|
|
964
|
+
readonly position: "Position";
|
|
965
|
+
readonly scale: "Scale";
|
|
966
|
+
readonly startFrom: "Start from";
|
|
967
|
+
readonly endAt: "End at";
|
|
968
|
+
readonly value: "Value";
|
|
969
|
+
readonly numberOfAxes: "Number of axes";
|
|
970
|
+
readonly reverse: "Reverse";
|
|
971
|
+
};
|
|
972
|
+
readonly labelMode: {
|
|
973
|
+
readonly auto: "Auto";
|
|
974
|
+
readonly edges: "Edges";
|
|
975
|
+
};
|
|
976
|
+
readonly scale: {
|
|
977
|
+
readonly auto: "Auto";
|
|
978
|
+
readonly log: "Log";
|
|
979
|
+
};
|
|
980
|
+
readonly startFrom: {
|
|
981
|
+
readonly auto: "Auto";
|
|
982
|
+
readonly zero: "Zero";
|
|
983
|
+
readonly custom: "Custom";
|
|
984
|
+
};
|
|
985
|
+
readonly endAt: {
|
|
986
|
+
readonly auto: "Auto";
|
|
987
|
+
readonly custom: "Custom";
|
|
988
|
+
};
|
|
989
|
+
readonly axisCount: {
|
|
990
|
+
readonly single: "Single";
|
|
991
|
+
readonly double: "Double";
|
|
992
|
+
};
|
|
993
|
+
readonly position: {
|
|
994
|
+
readonly left: "Left";
|
|
995
|
+
readonly right: "Right";
|
|
996
|
+
readonly top: "Top";
|
|
997
|
+
readonly bottom: "Bottom";
|
|
998
|
+
};
|
|
999
|
+
readonly yesNo: {
|
|
1000
|
+
readonly yes: "Yes";
|
|
1001
|
+
readonly no: "No";
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
readonly colorPanel: {
|
|
1005
|
+
readonly toolbarButton: "Color";
|
|
1006
|
+
readonly themeSection: {
|
|
1007
|
+
readonly title: "Theme";
|
|
1008
|
+
};
|
|
1009
|
+
readonly appearanceSection: {
|
|
1010
|
+
readonly title: "Appearance";
|
|
1011
|
+
readonly highlightStyle: "Highlight";
|
|
1012
|
+
};
|
|
1013
|
+
readonly backgroundSection: {
|
|
1014
|
+
readonly title: "Background";
|
|
1015
|
+
readonly black: "Black";
|
|
1016
|
+
readonly white: "White";
|
|
1017
|
+
readonly gray: "Grey";
|
|
1018
|
+
readonly tint: "Tint";
|
|
1019
|
+
readonly custom: "Custom";
|
|
1020
|
+
readonly none: "None";
|
|
1021
|
+
};
|
|
1022
|
+
readonly borderSection: {
|
|
1023
|
+
readonly title: "Border";
|
|
1024
|
+
readonly borderColor: "Border color";
|
|
1025
|
+
readonly thickness: "Thickness";
|
|
1026
|
+
readonly cornerRadius: "Corner radius";
|
|
1027
|
+
};
|
|
1028
|
+
readonly borderType: {
|
|
1029
|
+
readonly solid: "Solid";
|
|
1030
|
+
readonly gradient: "Gradient";
|
|
1031
|
+
readonly gray: "Grey";
|
|
1032
|
+
readonly preset: "Preset";
|
|
1033
|
+
readonly custom: "Custom";
|
|
1034
|
+
readonly none: "None";
|
|
1035
|
+
};
|
|
1036
|
+
readonly presetGradients: {
|
|
1037
|
+
readonly lilac: "Lilac";
|
|
1038
|
+
readonly neonPink: "Neon Pink";
|
|
1039
|
+
readonly blackberry: "Blackberry";
|
|
1040
|
+
readonly sun: "Sun";
|
|
1041
|
+
readonly iceland: "Iceland";
|
|
1042
|
+
readonly sunset: "Sunset";
|
|
1043
|
+
readonly ultraviolet: "Ultraviolet";
|
|
1044
|
+
readonly purple: "Purple";
|
|
1045
|
+
readonly iceCream: "Ice Cream";
|
|
1046
|
+
readonly mint: "Mint";
|
|
1047
|
+
readonly cool: "Cool";
|
|
1048
|
+
readonly fresh: "Fresh";
|
|
1049
|
+
};
|
|
1050
|
+
};
|
|
1051
|
+
readonly designPanel: {
|
|
1052
|
+
readonly toolbarButton: "Design";
|
|
1053
|
+
readonly defaultExpanded: "Palette";
|
|
1054
|
+
};
|
|
1055
|
+
readonly annotatePanel: {
|
|
1056
|
+
readonly toolbarButton: "Annotate";
|
|
1057
|
+
readonly callOutSection: {
|
|
1058
|
+
readonly title: "Callouts";
|
|
1059
|
+
readonly text: "Text";
|
|
1060
|
+
readonly arrow: "Arrow";
|
|
1061
|
+
readonly box: "Box";
|
|
1062
|
+
readonly difference: "Difference";
|
|
1063
|
+
};
|
|
1064
|
+
readonly highlightSection: {
|
|
1065
|
+
readonly title: "Highlight";
|
|
1066
|
+
readonly button: "Highlight";
|
|
1067
|
+
readonly colorLabel: "Highlight color";
|
|
1068
|
+
};
|
|
1069
|
+
};
|
|
1070
|
+
readonly annotationsPanel: {
|
|
1071
|
+
readonly toolbarButton: "Annotate";
|
|
1072
|
+
readonly freeformSection: {
|
|
1073
|
+
readonly title: "Freeform";
|
|
1074
|
+
readonly text: "Text";
|
|
1075
|
+
readonly arrow: "Arrow";
|
|
1076
|
+
readonly box: "Box";
|
|
1077
|
+
readonly difference: "Difference";
|
|
1078
|
+
};
|
|
1079
|
+
readonly goalSection: {
|
|
1080
|
+
readonly title: "Goal";
|
|
1081
|
+
readonly labelControl: "Label";
|
|
1082
|
+
readonly labelPlaceholder: "Goal";
|
|
1083
|
+
readonly labelAriaLabel: "Custom goal label";
|
|
1084
|
+
readonly valueControl: "Goal value";
|
|
1085
|
+
readonly valueAriaLabel: "Goal value";
|
|
1086
|
+
readonly byDate: "By date";
|
|
1087
|
+
readonly xAxisValue: "X-axis value";
|
|
1088
|
+
readonly optional: "(optional)";
|
|
1089
|
+
};
|
|
1090
|
+
readonly trendsAndAveragesSection: {
|
|
1091
|
+
readonly title: "Trends and Averages";
|
|
1092
|
+
readonly trend: "Trend";
|
|
1093
|
+
readonly average: "Average";
|
|
1094
|
+
};
|
|
1095
|
+
readonly trendType: {
|
|
1096
|
+
readonly label: "Trend type";
|
|
1097
|
+
readonly placeholder: "Trend type";
|
|
1098
|
+
readonly options: {
|
|
1099
|
+
readonly linear: "Linear";
|
|
1100
|
+
readonly exponential: "Exponential";
|
|
1101
|
+
readonly quadratic: "Quadratic";
|
|
1102
|
+
readonly polynomial: "Polynomial";
|
|
1103
|
+
readonly logarithmic: "Logarithmic";
|
|
1104
|
+
readonly power: "Power";
|
|
1105
|
+
readonly loess: "Loess";
|
|
1106
|
+
};
|
|
1107
|
+
};
|
|
1108
|
+
readonly averageLineSeries: {
|
|
1109
|
+
readonly label: "Average line series";
|
|
1110
|
+
readonly placeholder: "Select series";
|
|
1111
|
+
readonly ariaLabel: "Series dropdown for average line";
|
|
1112
|
+
};
|
|
1113
|
+
readonly highlightSection: {
|
|
1114
|
+
readonly title: "Highlight";
|
|
1115
|
+
readonly button: "Highlight";
|
|
1116
|
+
readonly fadeColorLabel: "Fade color";
|
|
1117
|
+
};
|
|
1118
|
+
readonly titleAndSubtitleSection: {
|
|
1119
|
+
readonly title: "Title & Subtitle";
|
|
1120
|
+
readonly toggleTitle: "Title";
|
|
1121
|
+
readonly subtitle: "Subtitle";
|
|
1122
|
+
};
|
|
1123
|
+
readonly captionAndSourceSection: {
|
|
1124
|
+
readonly title: "Caption & Source";
|
|
1125
|
+
readonly caption: "Caption";
|
|
1126
|
+
readonly source: "Source";
|
|
1127
|
+
readonly url: "URL";
|
|
1128
|
+
readonly name: "Name";
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1131
|
+
readonly elementsPanel: {
|
|
1132
|
+
readonly contentVisible: "Visible";
|
|
1133
|
+
readonly contentValue: "Value";
|
|
1134
|
+
readonly toolbarButton: "Elements";
|
|
1135
|
+
readonly headerSection: {
|
|
1136
|
+
readonly title: "Header";
|
|
1137
|
+
readonly toggleTitle: "Title";
|
|
1138
|
+
readonly subtitle: "Subtitle";
|
|
1139
|
+
};
|
|
1140
|
+
readonly footerSection: {
|
|
1141
|
+
readonly title: "Footer";
|
|
1142
|
+
readonly caption: "Caption";
|
|
1143
|
+
readonly source: "Source";
|
|
1144
|
+
readonly url: "URL";
|
|
1145
|
+
readonly name: "Name";
|
|
1146
|
+
};
|
|
1147
|
+
readonly textSizeSection: {
|
|
1148
|
+
readonly title: "Text size";
|
|
1149
|
+
readonly scaleFormat: (params: {
|
|
1150
|
+
value: string;
|
|
1151
|
+
}) => string;
|
|
1152
|
+
};
|
|
1153
|
+
readonly fontSection: {
|
|
1154
|
+
readonly title: "Font";
|
|
1155
|
+
};
|
|
1156
|
+
readonly sourceSection: {
|
|
1157
|
+
readonly title: "Source";
|
|
1158
|
+
readonly url: "URL";
|
|
1159
|
+
readonly name: "Name";
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
readonly powerUpPanel: {
|
|
1163
|
+
readonly toolbarButton: "Power-ups";
|
|
1164
|
+
readonly goalSection: {
|
|
1165
|
+
readonly title: "Goal";
|
|
1166
|
+
readonly toggle: "Goal";
|
|
1167
|
+
readonly labelControl: "Label";
|
|
1168
|
+
readonly labelPlaceholder: "Goal";
|
|
1169
|
+
readonly labelAriaLabel: "Custom goal label";
|
|
1170
|
+
readonly valueControl: "Goal value";
|
|
1171
|
+
readonly byDate: "By date";
|
|
1172
|
+
readonly xAxisValue: "X-axis value";
|
|
1173
|
+
readonly optional: " (optional)";
|
|
1174
|
+
readonly xAxisReferenceAriaLabel: "X-axis reference value";
|
|
1175
|
+
readonly anyXAxisValue: "Any x-axis value";
|
|
1176
|
+
readonly selectValuePlaceholder: "Select value";
|
|
1177
|
+
};
|
|
1178
|
+
readonly trendSection: {
|
|
1179
|
+
readonly title: "Trend";
|
|
1180
|
+
readonly toggle: "Trend";
|
|
1181
|
+
};
|
|
1182
|
+
readonly averageSection: {
|
|
1183
|
+
readonly title: "Average";
|
|
1184
|
+
readonly toggle: "Average";
|
|
1185
|
+
readonly seriesLabel: "Average line series";
|
|
1186
|
+
readonly seriesPlaceholder: "Select series";
|
|
1187
|
+
readonly seriesAriaLabel: "Series dropdown for average line";
|
|
1188
|
+
};
|
|
1189
|
+
readonly trendType: {
|
|
1190
|
+
readonly label: "Trend type";
|
|
1191
|
+
readonly placeholder: "Trend type";
|
|
1192
|
+
readonly options: {
|
|
1193
|
+
readonly linear: "Linear";
|
|
1194
|
+
readonly exponential: "Exponential";
|
|
1195
|
+
readonly quadratic: "Quadratic";
|
|
1196
|
+
readonly polynomial: "Polynomial";
|
|
1197
|
+
readonly logarithmic: "Logarithmic";
|
|
1198
|
+
readonly power: "Power";
|
|
1199
|
+
readonly loess: "Loess";
|
|
1200
|
+
};
|
|
1201
|
+
};
|
|
1202
|
+
readonly valueInput: {
|
|
1203
|
+
readonly percentagePlaceholder: "Percentage";
|
|
1204
|
+
readonly numberPlaceholder: "Number";
|
|
1205
|
+
readonly percentageSymbol: "%";
|
|
1206
|
+
};
|
|
1207
|
+
};
|
|
1208
|
+
readonly highlighting: {
|
|
1209
|
+
readonly modeHelper: {
|
|
1210
|
+
readonly title: "Highlight mode";
|
|
1211
|
+
readonly hover: "Hover";
|
|
1212
|
+
readonly toHighlight: "to highlight";
|
|
1213
|
+
readonly anyElement: "any element";
|
|
1214
|
+
readonly escToExit: "to exit";
|
|
1215
|
+
readonly esc: "ESC";
|
|
1216
|
+
};
|
|
1217
|
+
readonly emptyState: "No highlight options available";
|
|
1218
|
+
readonly deleteAriaLabel: "Delete highlight";
|
|
1219
|
+
readonly highlightStyle: {
|
|
1220
|
+
readonly tint: "Tint";
|
|
1221
|
+
readonly gray: "Grey";
|
|
1222
|
+
};
|
|
1223
|
+
};
|
|
1224
|
+
readonly fineTunePanel: {
|
|
1225
|
+
readonly toolbarButton: "Fine tune";
|
|
1226
|
+
readonly detailSection: {
|
|
1227
|
+
readonly title: "Detail";
|
|
1228
|
+
readonly missingValues: "Missing values";
|
|
1229
|
+
};
|
|
1230
|
+
readonly lineStyleSection: {
|
|
1231
|
+
readonly title: "Line style";
|
|
1232
|
+
readonly lineCurve: "Line curve";
|
|
1233
|
+
readonly sharp: "Sharp";
|
|
1234
|
+
readonly smooth: "Smooth";
|
|
1235
|
+
};
|
|
1236
|
+
};
|
|
1237
|
+
readonly customThemeEditor: {
|
|
1238
|
+
readonly patternDropdownAriaLabel: "Pattern dropdown for series";
|
|
1239
|
+
readonly patterns: {
|
|
1240
|
+
readonly solid: "Solid";
|
|
1241
|
+
readonly pattern: "Pattern";
|
|
1242
|
+
readonly dotted: "Dotted";
|
|
1243
|
+
readonly dashed: "Dashed";
|
|
1244
|
+
readonly hatched: "Hatched";
|
|
1245
|
+
};
|
|
1246
|
+
readonly heatmapColorLabel: "Color";
|
|
1247
|
+
};
|
|
1248
|
+
readonly overlayMenu: {
|
|
1249
|
+
readonly observation: "Observation";
|
|
1250
|
+
readonly group: "Group";
|
|
1251
|
+
readonly band: "Band";
|
|
1252
|
+
readonly axis: "Axis";
|
|
1253
|
+
readonly legend: "Legend";
|
|
1254
|
+
readonly gridLines: "Grid lines";
|
|
1255
|
+
readonly chart: "Chart";
|
|
1256
|
+
readonly selection: "Selection";
|
|
1257
|
+
readonly thisBar: "This bar";
|
|
1258
|
+
readonly thisPoint: "This point";
|
|
1259
|
+
readonly thisBubble: "This bubble";
|
|
1260
|
+
readonly thisSlice: "This slice";
|
|
1261
|
+
readonly allOf: (params: {
|
|
1262
|
+
name: string;
|
|
1263
|
+
}) => string;
|
|
1264
|
+
readonly all: "All";
|
|
1265
|
+
readonly titledValue: (params: {
|
|
1266
|
+
title: string;
|
|
1267
|
+
value: string;
|
|
1268
|
+
}) => string;
|
|
1269
|
+
readonly groupAtBand: (params: {
|
|
1270
|
+
group: string;
|
|
1271
|
+
band: string;
|
|
1272
|
+
}) => string;
|
|
1273
|
+
readonly hide: "Hide";
|
|
1274
|
+
readonly show: "Show";
|
|
1275
|
+
readonly legendPlaces: {
|
|
1276
|
+
readonly topStart: "Top left";
|
|
1277
|
+
readonly topCenter: "Top center";
|
|
1278
|
+
readonly topEnd: "Top right";
|
|
1279
|
+
readonly left: "Left";
|
|
1280
|
+
readonly right: "Right";
|
|
1281
|
+
readonly bottomStart: "Bottom left";
|
|
1282
|
+
readonly bottomCenter: "Bottom center";
|
|
1283
|
+
readonly bottomEnd: "Bottom right";
|
|
1284
|
+
};
|
|
1285
|
+
readonly fillColor: "Fill color";
|
|
1286
|
+
readonly lineColor: "Line color";
|
|
1287
|
+
readonly palette: "Palette";
|
|
1288
|
+
readonly themePalette: "Theme";
|
|
1289
|
+
readonly chartType: "Type";
|
|
1290
|
+
readonly customChartType: "Custom";
|
|
1291
|
+
readonly arrange: "Arrange";
|
|
1292
|
+
readonly arrangements: {
|
|
1293
|
+
readonly grouped: "Grouped";
|
|
1294
|
+
readonly stacked: "Stacked";
|
|
1295
|
+
readonly filled: "100%";
|
|
1296
|
+
readonly lines: "Lines only";
|
|
1297
|
+
};
|
|
1298
|
+
};
|
|
1299
|
+
readonly accessibility: {
|
|
1300
|
+
readonly toggleSection: (params: {
|
|
1301
|
+
title: string;
|
|
1302
|
+
}) => string;
|
|
1303
|
+
};
|
|
1304
|
+
readonly graphyDefaults: {
|
|
1305
|
+
readonly themeOptions: {
|
|
1306
|
+
readonly light: "Light";
|
|
1307
|
+
readonly dark: "Dark";
|
|
1308
|
+
};
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
readonly graph: {
|
|
1312
|
+
readonly titleEditor: {
|
|
1313
|
+
readonly titlePlaceholder: "Untitled";
|
|
1314
|
+
readonly subtitlePlaceholder: "Add a subtitle";
|
|
1315
|
+
};
|
|
1316
|
+
readonly toolbar: {
|
|
1317
|
+
readonly formatting: {
|
|
1318
|
+
readonly bold: "Bold";
|
|
1319
|
+
readonly italic: "Italic";
|
|
1320
|
+
readonly underline: "Underline";
|
|
1321
|
+
readonly link: "Link";
|
|
1322
|
+
};
|
|
1323
|
+
readonly link: {
|
|
1324
|
+
readonly ariaLabel: "Create link";
|
|
1325
|
+
readonly placeholder: "Type or paste a link...";
|
|
1326
|
+
readonly submit: "Submit";
|
|
1327
|
+
readonly urlLabel: "Link URL";
|
|
1328
|
+
readonly apply: "Apply link";
|
|
1329
|
+
};
|
|
1330
|
+
readonly font: {
|
|
1331
|
+
readonly label: "Font";
|
|
1332
|
+
readonly ariaLabel: "Font family";
|
|
1333
|
+
};
|
|
1334
|
+
readonly heading: {
|
|
1335
|
+
readonly label: "Heading level";
|
|
1336
|
+
readonly ariaLabel: "Text style";
|
|
1337
|
+
readonly text: "Text";
|
|
1338
|
+
readonly caption: "Caption";
|
|
1339
|
+
readonly heading1: "Heading 1";
|
|
1340
|
+
readonly heading2: "Heading 2";
|
|
1341
|
+
readonly heading3: "Heading 3";
|
|
1342
|
+
};
|
|
1343
|
+
readonly textAlign: {
|
|
1344
|
+
readonly left: "Align left";
|
|
1345
|
+
readonly center: "Align center";
|
|
1346
|
+
readonly right: "Align right";
|
|
1347
|
+
};
|
|
1348
|
+
readonly color: {
|
|
1349
|
+
readonly label: "Text color";
|
|
1350
|
+
};
|
|
1351
|
+
};
|
|
1352
|
+
readonly colorDropdown: {
|
|
1353
|
+
readonly colors: "Colors";
|
|
1354
|
+
readonly chartColors: "Chart colors";
|
|
1355
|
+
readonly custom: "Custom";
|
|
1356
|
+
readonly opacity: "Opacity";
|
|
1357
|
+
readonly transparent: "Transparent";
|
|
1358
|
+
readonly pickCustom: "Pick custom color";
|
|
1359
|
+
readonly pickColor: "Pick color";
|
|
1360
|
+
};
|
|
1361
|
+
readonly annotations: {
|
|
1362
|
+
readonly differenceArrowToolbar: {
|
|
1363
|
+
readonly label: "Difference arrow options";
|
|
1364
|
+
readonly labelKind: {
|
|
1365
|
+
readonly ariaLabel: "Label";
|
|
1366
|
+
readonly absoluteDifference: "Absolute change";
|
|
1367
|
+
readonly relativeDifference: "Percentage change";
|
|
1368
|
+
readonly proportion: "Proportion";
|
|
1369
|
+
readonly suspectValue: "This value divides by a baseline of zero.";
|
|
1370
|
+
readonly incomparableEnds: "The two ends measure different quantities, so a difference between them has no meaning.";
|
|
1371
|
+
};
|
|
1372
|
+
readonly color: "Arrow colour";
|
|
1373
|
+
readonly size: {
|
|
1374
|
+
readonly ariaLabel: "Size";
|
|
1375
|
+
readonly small: "Small";
|
|
1376
|
+
readonly medium: "Medium";
|
|
1377
|
+
readonly large: "Large";
|
|
1378
|
+
};
|
|
1379
|
+
readonly swap: "Swap direction";
|
|
1380
|
+
readonly remove: "Remove arrow";
|
|
1381
|
+
};
|
|
1382
|
+
readonly shapeToolbar: {
|
|
1383
|
+
readonly label: "Shape options";
|
|
1384
|
+
readonly color: "Shape colour";
|
|
1385
|
+
readonly border: {
|
|
1386
|
+
readonly ariaLabel: "Border";
|
|
1387
|
+
readonly none: "None";
|
|
1388
|
+
readonly thin: "Thin (2px)";
|
|
1389
|
+
readonly medium: "Medium (8px)";
|
|
1390
|
+
readonly thick: "Thick (16px)";
|
|
1391
|
+
};
|
|
1392
|
+
readonly remove: "Remove shape";
|
|
1393
|
+
readonly resize: {
|
|
1394
|
+
readonly 'top-left': "Resize from the top left";
|
|
1395
|
+
readonly 'top-right': "Resize from the top right";
|
|
1396
|
+
readonly 'bottom-right': "Resize from the bottom right";
|
|
1397
|
+
readonly 'bottom-left': "Resize from the bottom left";
|
|
1398
|
+
};
|
|
1399
|
+
};
|
|
1400
|
+
readonly arrowToolbar: {
|
|
1401
|
+
readonly label: "Arrow options";
|
|
1402
|
+
readonly color: "Arrow colour";
|
|
1403
|
+
readonly thickness: {
|
|
1404
|
+
readonly ariaLabel: "Thickness";
|
|
1405
|
+
readonly thin: "Thin";
|
|
1406
|
+
readonly medium: "Medium";
|
|
1407
|
+
readonly thick: "Thick";
|
|
1408
|
+
};
|
|
1409
|
+
readonly startArrowhead: "Start of the arrow";
|
|
1410
|
+
readonly endArrowhead: "End of the arrow";
|
|
1411
|
+
readonly arrowhead: {
|
|
1412
|
+
readonly lineArrow: "Line arrow";
|
|
1413
|
+
readonly none: "None";
|
|
1414
|
+
};
|
|
1415
|
+
readonly lineStyle: {
|
|
1416
|
+
readonly ariaLabel: "Line style";
|
|
1417
|
+
readonly solid: "Solid";
|
|
1418
|
+
readonly dashed: "Dashed";
|
|
1419
|
+
readonly dotted: "Dotted";
|
|
1420
|
+
};
|
|
1421
|
+
readonly sticker: "Sticker effect";
|
|
1422
|
+
readonly remove: "Remove arrow";
|
|
1423
|
+
readonly moveEndpoint: {
|
|
1424
|
+
readonly start: "Move the start of the arrow";
|
|
1425
|
+
readonly end: "Move the end of the arrow";
|
|
1426
|
+
};
|
|
1427
|
+
};
|
|
1428
|
+
readonly textToolbar: {
|
|
1429
|
+
readonly label: "Text options";
|
|
1430
|
+
readonly background: "Background colour";
|
|
1431
|
+
readonly color: "Text colour";
|
|
1432
|
+
readonly font: {
|
|
1433
|
+
readonly ariaLabel: "Font";
|
|
1434
|
+
readonly modern: "Modern";
|
|
1435
|
+
readonly fresh: "Fresh";
|
|
1436
|
+
readonly timeless: "Timeless";
|
|
1437
|
+
readonly technical: "Technical";
|
|
1438
|
+
readonly fineliner: "Fineliner";
|
|
1439
|
+
};
|
|
1440
|
+
readonly fontSize: {
|
|
1441
|
+
readonly ariaLabel: "Font size";
|
|
1442
|
+
readonly small: "Small";
|
|
1443
|
+
readonly medium: "Medium";
|
|
1444
|
+
readonly large: "Large";
|
|
1445
|
+
readonly extraLarge: "Extra Large";
|
|
1446
|
+
readonly huge: "Huge";
|
|
1447
|
+
};
|
|
1448
|
+
readonly align: {
|
|
1449
|
+
readonly left: "Align left";
|
|
1450
|
+
readonly center: "Align centre";
|
|
1451
|
+
readonly right: "Align right";
|
|
1452
|
+
};
|
|
1453
|
+
readonly remove: "Remove text";
|
|
1454
|
+
readonly resize: {
|
|
1455
|
+
readonly left: "Resize from the left";
|
|
1456
|
+
readonly right: "Resize from the right";
|
|
1457
|
+
};
|
|
1458
|
+
};
|
|
1459
|
+
readonly text: {
|
|
1460
|
+
readonly editLabel: "Edit text";
|
|
1461
|
+
readonly placeholder: "Type something";
|
|
1462
|
+
};
|
|
1463
|
+
readonly baseMenu: {
|
|
1464
|
+
readonly pinNumber: "Pin number";
|
|
1465
|
+
readonly unpinNumber: "Unpin number";
|
|
1466
|
+
readonly annotate: "Annotate";
|
|
1467
|
+
readonly removeAnnotation: "Remove annotation";
|
|
1468
|
+
readonly highlight: "Highlight";
|
|
1469
|
+
readonly highlightWithLabel: (params: {
|
|
1470
|
+
label: string;
|
|
1471
|
+
}) => string;
|
|
1472
|
+
readonly removeHighlight: "Remove highlight";
|
|
1473
|
+
readonly differenceArrow: "Difference arrow";
|
|
1474
|
+
readonly addSticker: "Add sticker";
|
|
1475
|
+
readonly removeSticker: "Remove sticker";
|
|
1476
|
+
};
|
|
1477
|
+
readonly textMenu: {
|
|
1478
|
+
readonly title: "Annotate";
|
|
1479
|
+
readonly placeholder: "Add a comment";
|
|
1480
|
+
readonly addButton: "Add";
|
|
1481
|
+
};
|
|
1482
|
+
readonly highlights: {
|
|
1483
|
+
readonly menuTitle: "Highlight";
|
|
1484
|
+
readonly labels: {
|
|
1485
|
+
readonly bar: "bar";
|
|
1486
|
+
readonly barGroup: "group";
|
|
1487
|
+
readonly barStack: "stack";
|
|
1488
|
+
readonly barSeries: "series";
|
|
1489
|
+
readonly line: "line";
|
|
1490
|
+
readonly linePoint: "point";
|
|
1491
|
+
readonly lineSeries: "series";
|
|
1492
|
+
readonly scatterPoint: "point";
|
|
1493
|
+
readonly scatterSeries: "series";
|
|
1494
|
+
readonly pieSlice: "slice";
|
|
1495
|
+
readonly pointOrBar: "point / bar";
|
|
1496
|
+
readonly lineOrSeries: "line / series";
|
|
1497
|
+
};
|
|
1498
|
+
};
|
|
1499
|
+
readonly stickerMenu: {
|
|
1500
|
+
readonly title: "Add sticker";
|
|
1501
|
+
};
|
|
1502
|
+
readonly delete: "Delete";
|
|
1503
|
+
readonly arrow: {
|
|
1504
|
+
readonly thickness: {
|
|
1505
|
+
readonly label: "Thickness";
|
|
1506
|
+
readonly thin: "Thin";
|
|
1507
|
+
readonly medium: "Medium";
|
|
1508
|
+
readonly thick: "Thick";
|
|
1509
|
+
};
|
|
1510
|
+
readonly arrowhead: {
|
|
1511
|
+
readonly startPoint: "Start point";
|
|
1512
|
+
readonly endPoint: "End point";
|
|
1513
|
+
readonly lineArrow: "Line arrow";
|
|
1514
|
+
readonly none: "None";
|
|
1515
|
+
};
|
|
1516
|
+
readonly lineStyle: {
|
|
1517
|
+
readonly label: "Line style";
|
|
1518
|
+
readonly solid: "Solid";
|
|
1519
|
+
readonly dotted: "Dotted";
|
|
1520
|
+
};
|
|
1521
|
+
readonly stickerEffect: "Sticker effect";
|
|
1522
|
+
readonly toolbarAriaLabel: "Free-form arrow toolbar";
|
|
1523
|
+
readonly editorAriaLabel: "Arrow editor";
|
|
1524
|
+
};
|
|
1525
|
+
readonly differenceArrow: {
|
|
1526
|
+
readonly type: {
|
|
1527
|
+
readonly proportion: "Proportion";
|
|
1528
|
+
readonly difference: ({ absoluteDifference }: {
|
|
1529
|
+
absoluteDifference: string;
|
|
1530
|
+
}) => string;
|
|
1531
|
+
readonly increase: ({ absoluteDifference }: {
|
|
1532
|
+
absoluteDifference: string;
|
|
1533
|
+
}) => string;
|
|
1534
|
+
readonly decrease: ({ absoluteDifference }: {
|
|
1535
|
+
absoluteDifference: string;
|
|
1536
|
+
}) => string;
|
|
1537
|
+
readonly percentageChange: ({ percentageChange }: {
|
|
1538
|
+
percentageChange: string;
|
|
1539
|
+
}) => string;
|
|
1540
|
+
readonly percentIncrease: ({ percentageChange }: {
|
|
1541
|
+
percentageChange: string;
|
|
1542
|
+
}) => string;
|
|
1543
|
+
readonly percentDecrease: ({ percentageChange }: {
|
|
1544
|
+
percentageChange: string;
|
|
1545
|
+
}) => string;
|
|
1546
|
+
};
|
|
1547
|
+
readonly size: {
|
|
1548
|
+
readonly label: "Size";
|
|
1549
|
+
readonly small: "Small";
|
|
1550
|
+
readonly medium: "Medium";
|
|
1551
|
+
readonly large: "Large";
|
|
1552
|
+
};
|
|
1553
|
+
readonly flipArrow: "Flip arrow";
|
|
1554
|
+
readonly color: "Color";
|
|
1555
|
+
readonly toolbarAriaLabel: "Difference arrow toolbar";
|
|
1556
|
+
readonly editorAriaLabel: "Difference arrow editor";
|
|
1557
|
+
};
|
|
1558
|
+
readonly shape: {
|
|
1559
|
+
readonly color: "Color";
|
|
1560
|
+
readonly border: {
|
|
1561
|
+
readonly label: "Border";
|
|
1562
|
+
readonly none: "None";
|
|
1563
|
+
readonly thin: ({ value }: {
|
|
1564
|
+
value: string;
|
|
1565
|
+
}) => string;
|
|
1566
|
+
readonly medium: ({ value }: {
|
|
1567
|
+
value: string;
|
|
1568
|
+
}) => string;
|
|
1569
|
+
readonly thick: ({ value }: {
|
|
1570
|
+
value: string;
|
|
1571
|
+
}) => string;
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
};
|
|
1575
|
+
};
|
|
1576
|
+
};
|
|
1577
|
+
|
|
1578
|
+
/**
|
|
1579
|
+
* Provides editor translations. `EditableGraphRenderer` and `EditorPanel.Root` include this provider.
|
|
1580
|
+
* Add it to set a locale, override translations, or translate custom editing UI.
|
|
1581
|
+
*
|
|
1582
|
+
* Includes both editor and chart dictionaries so callers cannot omit required translations.
|
|
1583
|
+
*/
|
|
1584
|
+
export declare const EditorIntlProvider: ({ children, ...rest }: EditorIntlProviderProps) => JSX.Element;
|
|
1585
|
+
|
|
1586
|
+
/** `IntlProvider`'s props, with `i18nOverrides` keyed by the editor's phrases as well as the chart's. */
|
|
1587
|
+
declare interface EditorIntlProviderProps extends Omit<IntlProviderProps, 'dictionaries' | 'i18nOverrides'> {
|
|
1588
|
+
i18nOverrides?: RuntimeOverrides<EditorPhrases>;
|
|
1589
|
+
}
|
|
1590
|
+
|
|
697
1591
|
/**
|
|
698
1592
|
* Compose a chart editing panel from these parts, with any mix of built-in and custom sections.
|
|
699
1593
|
*/
|
|
@@ -705,6 +1599,12 @@ export declare const EditorPanel: {
|
|
|
705
1599
|
};
|
|
706
1600
|
};
|
|
707
1601
|
|
|
1602
|
+
/**
|
|
1603
|
+
* The graph's phrases plus the editor's own. A paint site is typed against `GraphPhrases` alone, so
|
|
1604
|
+
* naming an editor phrase there will not compile.
|
|
1605
|
+
*/
|
|
1606
|
+
declare type EditorPhrases = GraphPhrases & typeof EDITOR_EN_GB;
|
|
1607
|
+
|
|
708
1608
|
/** Props the renderer passes to the editor layer filling the `EditorSurface` slot. */
|
|
709
1609
|
declare interface EditorSurfaceSlotProps {
|
|
710
1610
|
/** The frame's content box — the element the layer measures, listens on and aligns its chrome to. */
|
|
@@ -927,6 +1827,8 @@ declare interface GraphHandle {
|
|
|
927
1827
|
subscribe: (onGraphChange: () => void) => () => void;
|
|
928
1828
|
/** The graph's scene as of now, or `null` before its first successful compile. */
|
|
929
1829
|
getScene: () => Scene | null;
|
|
1830
|
+
/** The tag the graph formats values in, safe to hand to `Intl`. Unset, it formats in the scene's `parsingLocale`. */
|
|
1831
|
+
formattingLocale?: FormattingLocale;
|
|
930
1832
|
/**
|
|
931
1833
|
* Reverse the most recent command. Returns whether the chart took the step, so a caller driving
|
|
932
1834
|
* this from a keystroke can leave the key to the app when the chart has nothing to undo or the
|
|
@@ -1125,16 +2027,9 @@ declare type I18nLocale = keyof typeof dictionaries;
|
|
|
1125
2027
|
|
|
1126
2028
|
declare type I18nRuntimeOverrides = RuntimeOverrides<GraphPhrases>;
|
|
1127
2029
|
|
|
1128
|
-
/**
|
|
1129
|
-
* Provides editor translations. `EditableGraphRenderer` and `EditorPanel.Root` include this provider.
|
|
1130
|
-
* Add it to set a locale, override translations, or translate custom editing UI.
|
|
1131
|
-
*
|
|
1132
|
-
* Includes both editor and chart dictionaries so callers cannot omit required translations.
|
|
1133
|
-
*/
|
|
1134
|
-
export declare const IntlProvider: ({ children, ...rest }: Omit<IntlProviderProps, "dictionaries">) => JSX.Element;
|
|
1135
|
-
|
|
1136
2030
|
declare interface IntlProviderProps {
|
|
1137
|
-
|
|
2031
|
+
/** Any BCP-47 tag, which reads the dictionary {@link normalizeLocale} picks for it. */
|
|
2032
|
+
locale?: FormattingLocale;
|
|
1138
2033
|
children: ReactNode;
|
|
1139
2034
|
i18nOverrides?: I18nRuntimeOverrides;
|
|
1140
2035
|
/** The phrase sets this tree translates against, most specific first. Defaults to the chart's own. */
|