@mx-cartographer/experiences 3.16.1-alpha.bb2 → 3.16.1-alpha.bb3
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/budgets/components/BubbleChart.d.ts +1 -3
- package/dist/budgets/components/bubblechart/Bubble.d.ts +2 -3
- package/dist/budgets/components/bubblechart/Mercury.d.ts +1 -4
- package/dist/budgets/utils/BubblesSVG.d.ts +4 -6
- package/dist/index.es.js +1145 -1138
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { SimulationNodeDatum } from 'd3-force';
|
|
3
3
|
import { DetailedBudget } from '../../common';
|
|
4
|
-
export interface BubbleData extends SimulationNodeDatum {
|
|
5
|
-
budget: DetailedBudget;
|
|
6
|
-
budget_guid: string;
|
|
4
|
+
export interface BubbleData extends DetailedBudget, SimulationNodeDatum {
|
|
7
5
|
radius: number;
|
|
8
6
|
}
|
|
9
7
|
interface BubbleChartProps {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { BubbleData } from '../BubbleChart';
|
|
3
1
|
import { DetailedBudget } from '../../../common';
|
|
2
|
+
import { BubbleData } from '../BubbleChart';
|
|
4
3
|
interface BubbleProps {
|
|
5
4
|
bubble: BubbleData;
|
|
6
5
|
isDraggable: boolean;
|
|
7
6
|
onClick?: (budget: DetailedBudget) => void;
|
|
8
7
|
}
|
|
9
|
-
export declare
|
|
8
|
+
export declare function Bubble({ bubble, isDraggable, onClick }: BubbleProps): import("react/jsx-runtime").JSX.Element | undefined;
|
|
10
9
|
export {};
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
1
|
import { BubbleData } from '../BubbleChart';
|
|
3
|
-
import { DetailedBudget } from '../../../common';
|
|
4
2
|
interface MercuryProps {
|
|
5
3
|
bubble: BubbleData;
|
|
6
|
-
budget: DetailedBudget;
|
|
7
4
|
}
|
|
8
|
-
export declare
|
|
5
|
+
export declare function Mercury({ bubble }: MercuryProps): import("react/jsx-runtime").JSX.Element;
|
|
9
6
|
export {};
|
|
@@ -10,10 +10,9 @@ export type SimulationType = Simulation<BubbleData, undefined>;
|
|
|
10
10
|
export declare const drag: (simulation: SimulationType) => d3.DragBehavior<Element, unknown, unknown>;
|
|
11
11
|
/**
|
|
12
12
|
* Provide d values for the arc between the start and end radius based on time
|
|
13
|
-
* @param
|
|
14
|
-
* @param data Bubble data
|
|
13
|
+
* @param bubble Bubble data
|
|
15
14
|
*/
|
|
16
|
-
export declare const arcTween: (
|
|
15
|
+
export declare const arcTween: (bubble: BubbleData) => (t: number) => string;
|
|
17
16
|
/**
|
|
18
17
|
* Enable drag
|
|
19
18
|
* @param simulation D3 Simulation
|
|
@@ -29,7 +28,6 @@ export declare const resize: (simulation: SimulationType, height: number, width:
|
|
|
29
28
|
export declare const getScale: (min: number, max: number) => d3.ScaleLinear<number, number, never>;
|
|
30
29
|
/**
|
|
31
30
|
* Simulates the chart
|
|
32
|
-
* @param
|
|
33
|
-
* @param isDraggable
|
|
31
|
+
* @param budgets Budget data
|
|
34
32
|
*/
|
|
35
|
-
export declare const simulate: (
|
|
33
|
+
export declare const simulate: (budgets: DetailedBudget[]) => d3.Simulation<BubbleData, undefined>;
|