@mx-cartographer/experiences 7.0.51 → 7.0.52-alpha.mega1

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.
@@ -32,11 +32,28 @@ export declare const getScale: (min: number, max: number) => d3.ScaleLinear<numb
32
32
  */
33
33
  export declare const simulate: (budgets: DetailedBudget[]) => d3.Simulation<BubbleData, undefined>;
34
34
  export declare const getSmartScale: (count: number, height: number, maxValue: number, minValue: number, width: number) => d3.ScaleLinear<number, number, never>;
35
- /**
36
- * Simulate a compact layout for smaller viewports
37
- * @param budgets Budget data
38
- * @param height Height of the container
39
- * @param width Width of the container
40
- * @returns A D3 simulation for the compact layout
41
- */
42
- export declare const simulateCompact: (budgets: DetailedBudget[], height: number, width: number) => d3.Simulation<BubbleData, undefined>;
35
+ export declare const computeScaledNodes: (nodes: BubbleData[], budgets: DetailedBudget[], isCompact: boolean | undefined, height: number, width: number) => {
36
+ radius: number;
37
+ budgetColors: import('../../common').BudgetColors;
38
+ category: import('../../common').DetailedCategory;
39
+ description: string;
40
+ percentage: number;
41
+ subBudgets: DetailedBudget[];
42
+ amount: number;
43
+ category_guid: string;
44
+ end_date?: number;
45
+ flags?: string[];
46
+ guid: string;
47
+ parent_guid?: string;
48
+ revision: number;
49
+ start_date: number;
50
+ transaction_total: number;
51
+ user_guid: string;
52
+ index?: number | undefined;
53
+ x?: number | undefined;
54
+ y?: number | undefined;
55
+ vx?: number | undefined;
56
+ vy?: number | undefined;
57
+ fx?: number | null | undefined;
58
+ fy?: number | null | undefined;
59
+ }[];
@@ -905,7 +905,9 @@ class ne {
905
905
  };
906
906
  }
907
907
  const K = {
908
- clientConfig: {},
908
+ clientConfig: {
909
+ is_mx_mobile: !1
910
+ },
909
911
  clientStyleProfile: {},
910
912
  config: {
911
913
  assets_prefix: "/assets",
@@ -33,6 +33,7 @@ interface TransactionConfig {
33
33
  }
34
34
  export interface ClientConfig {
35
35
  color_scheme?: 'light' | 'dark' | 'browser';
36
+ is_mx_mobile?: boolean;
36
37
  master?: MasterConfig;
37
38
  transactions?: TransactionConfig;
38
39
  [key: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.0.51",
3
+ "version": "7.0.52-alpha.mega1",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",