@genesislcap/g2plot-chart 15.73.0 → 15.75.0

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.
@@ -2832,7 +2832,7 @@
2832
2832
  "type": {
2833
2833
  "text": "object"
2834
2834
  },
2835
- "default": "{\n rapidBlue: `l(270) 0:${PrimaryRapidColorHEX.purple} 1:${PrimaryRapidColorHEX.blue}`,\n rapidGreen: `l(270) 0:${RapidColorHEX.green} 1:${RapidColorHEX.lightGreen}`,\n rapidRed: `l(300) 0:${RapidColorHEX.red} 1:${RapidColorHEX.lightRed}`,\n rapidPortage: `l(270) 0:${RapidColorHEX.portage} 1:${RapidColorHEX.lightPortage}`,\n rapidAlabaster: `l(270) 0:${RapidColorHEX.white} 1:${RapidColorHEX.silver}`,\n rapidSalomie: `l(270) 0:${RapidColorHEX.salomie} 1:${RapidColorHEX.lightSalomie}`,\n rapidMelon: `l(270) 0:${RapidColorHEX.melon} 1:${RapidColorHEX.lightMelon}`,\n rapidDodgerBlue: `l(270) 0:${RapidColorHEX.dodgerBlue} 1:${RapidColorHEX.lightDodgerBlue}`,\n rapidIce: `l(170) 0:${RapidColorHEX.ice} 1:${RapidColorHEX.lightIce}`,\n rapidViolet: `l(270) 0:${RapidColorHEX.violet} 1:${RapidColorHEX.lightViolet}`,\n}",
2835
+ "default": "{\n rapidBlue: `l(270) 0:${primaryColors.purple} 1:${primaryColors.blue}`,\n rapidGreen: `l(270) 0:${gradientColors.green} 1:${gradientColors.lightGreen}`,\n rapidRed: `l(300) 0:${gradientColors.red} 1:${gradientColors.lightRed}`,\n rapidPortage: `l(270) 0:${gradientColors.portage} 1:${gradientColors.lightPortage}`,\n rapidAlabaster: `l(270) 0:${gradientColors.white} 1:${gradientColors.silver}`,\n rapidSalomie: `l(270) 0:${gradientColors.salomie} 1:${gradientColors.lightSalomie}`,\n rapidMelon: `l(270) 0:${gradientColors.melon} 1:${gradientColors.lightMelon}`,\n rapidDodgerBlue: `l(270) 0:${gradientColors.dodgerBlue} 1:${gradientColors.lightDodgerBlue}`,\n rapidIce: `l(170) 0:${gradientColors.ice} 1:${gradientColors.lightIce}`,\n rapidViolet: `l(270) 0:${gradientColors.violet} 1:${gradientColors.lightViolet}`,\n}",
2836
2836
  "description": "G2Plot Chart gradient colors",
2837
2837
  "privacy": "public"
2838
2838
  }
@@ -2871,6 +2871,46 @@
2871
2871
  }
2872
2872
  ]
2873
2873
  },
2874
+ {
2875
+ "kind": "javascript-module",
2876
+ "path": "src/settings/palette.ts",
2877
+ "declarations": [
2878
+ {
2879
+ "kind": "variable",
2880
+ "name": "primaryColors",
2881
+ "type": {
2882
+ "text": "{\n blue: '#0eafe2',\n purple: '#654df9',\n}"
2883
+ },
2884
+ "default": "{\n blue: '#0eafe2',\n purple: '#654df9',\n}"
2885
+ },
2886
+ {
2887
+ "kind": "variable",
2888
+ "name": "gradientColors",
2889
+ "type": {
2890
+ "text": "{\n green: '#44c14c',\n lightGreen: '#69cd70',\n red: '#ef4d28',\n lightRed: '#ee6588',\n dodgerBlue: '#33a9ff',\n lightDodgerBlue: '#5cbaff',\n violet: '#9b1e74',\n lightViolet: '#b528af',\n white: '#f9f9f9',\n silver: '#c1c1c1',\n salomie: '#ffdf94',\n lightSalomie: '#ccb276',\n melon: '#ffbbb2',\n lightMelon: '#cc968e',\n portage: '#8a99f5',\n lightPortage: '#adb8f8',\n ice: '#97f4eb',\n lightIce: '#6befe2',\n}"
2891
+ },
2892
+ "default": "{\n green: '#44c14c',\n lightGreen: '#69cd70',\n red: '#ef4d28',\n lightRed: '#ee6588',\n dodgerBlue: '#33a9ff',\n lightDodgerBlue: '#5cbaff',\n violet: '#9b1e74',\n lightViolet: '#b528af',\n white: '#f9f9f9',\n silver: '#c1c1c1',\n salomie: '#ffdf94',\n lightSalomie: '#ccb276',\n melon: '#ffbbb2',\n lightMelon: '#cc968e',\n portage: '#8a99f5',\n lightPortage: '#adb8f8',\n ice: '#97f4eb',\n lightIce: '#6befe2',\n}"
2893
+ }
2894
+ ],
2895
+ "exports": [
2896
+ {
2897
+ "kind": "js",
2898
+ "name": "primaryColors",
2899
+ "declaration": {
2900
+ "name": "primaryColors",
2901
+ "module": "src/settings/palette.ts"
2902
+ }
2903
+ },
2904
+ {
2905
+ "kind": "js",
2906
+ "name": "gradientColors",
2907
+ "declaration": {
2908
+ "name": "gradientColors",
2909
+ "module": "src/settings/palette.ts"
2910
+ }
2911
+ }
2912
+ ]
2913
+ },
2874
2914
  {
2875
2915
  "kind": "javascript-module",
2876
2916
  "path": "src/settings/shapes.ts",
@@ -0,0 +1,25 @@
1
+ export declare const primaryColors: {
2
+ readonly blue: "#0eafe2";
3
+ readonly purple: "#654df9";
4
+ };
5
+ export declare const gradientColors: {
6
+ readonly green: "#44c14c";
7
+ readonly lightGreen: "#69cd70";
8
+ readonly red: "#ef4d28";
9
+ readonly lightRed: "#ee6588";
10
+ readonly dodgerBlue: "#33a9ff";
11
+ readonly lightDodgerBlue: "#5cbaff";
12
+ readonly violet: "#9b1e74";
13
+ readonly lightViolet: "#b528af";
14
+ readonly white: "#f9f9f9";
15
+ readonly silver: "#c1c1c1";
16
+ readonly salomie: "#ffdf94";
17
+ readonly lightSalomie: "#ccb276";
18
+ readonly melon: "#ffbbb2";
19
+ readonly lightMelon: "#cc968e";
20
+ readonly portage: "#8a99f5";
21
+ readonly lightPortage: "#adb8f8";
22
+ readonly ice: "#97f4eb";
23
+ readonly lightIce: "#6befe2";
24
+ };
25
+ //# sourceMappingURL=palette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../../src/settings/palette.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;CAmBjB,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import { Area } from '@antv/g2plot';
2
- import { PrimaryRapidColorHEX } from '@genesislcap/foundation-zero';
2
+ import { primaryColors } from '../settings/palette';
3
3
  export const AreaChart = (container, config) => {
4
4
  const configuration = config;
5
5
  configuration.areaStyle || (configuration.areaStyle = {
6
- fill: `l(270) 0:rgba(0, 0, 0, 0) 0.5:${PrimaryRapidColorHEX.purple} 1:${PrimaryRapidColorHEX.blue}`,
6
+ fill: `l(270) 0:rgba(0, 0, 0, 0) 0.5:${primaryColors.purple} 1:${primaryColors.blue}`,
7
7
  lineWidth: 5,
8
8
  });
9
9
  return new Area(container, configuration);
@@ -1,6 +1,6 @@
1
1
  import { Mix } from '@antv/g2plot';
2
- import { PrimaryRapidColorHEX } from '@genesislcap/foundation-zero';
3
2
  import { chartsGradients } from '../settings';
3
+ import { primaryColors } from '../settings/palette';
4
4
  export const MixChart = (container, config) => {
5
5
  const configuration = config;
6
6
  let index = 0;
@@ -8,7 +8,7 @@ export const MixChart = (container, config) => {
8
8
  var _a, _b, _c, _d;
9
9
  if (plot.type == 'area') {
10
10
  (_a = plot.options).areaStyle || (_a.areaStyle = {
11
- fill: `l(270) 0:rgba(0, 0, 0, 0) 0.5:${PrimaryRapidColorHEX.purple} 1:${PrimaryRapidColorHEX.blue}`,
11
+ fill: `l(270) 0:rgba(0, 0, 0, 0) 0.5:${primaryColors.purple} 1:${primaryColors.blue}`,
12
12
  lineWidth: 5,
13
13
  });
14
14
  }
@@ -1,17 +1,17 @@
1
- import { RapidColorHEX, PrimaryRapidColorHEX } from '@genesislcap/foundation-zero';
1
+ import { gradientColors, primaryColors } from './palette';
2
2
  /**
3
3
  * G2Plot Chart gradient colors
4
4
  * @public
5
5
  */
6
6
  export const chartsGradients = {
7
- rapidBlue: `l(270) 0:${PrimaryRapidColorHEX.purple} 1:${PrimaryRapidColorHEX.blue}`,
8
- rapidGreen: `l(270) 0:${RapidColorHEX.green} 1:${RapidColorHEX.lightGreen}`,
9
- rapidRed: `l(300) 0:${RapidColorHEX.red} 1:${RapidColorHEX.lightRed}`,
10
- rapidPortage: `l(270) 0:${RapidColorHEX.portage} 1:${RapidColorHEX.lightPortage}`,
11
- rapidAlabaster: `l(270) 0:${RapidColorHEX.white} 1:${RapidColorHEX.silver}`,
12
- rapidSalomie: `l(270) 0:${RapidColorHEX.salomie} 1:${RapidColorHEX.lightSalomie}`,
13
- rapidMelon: `l(270) 0:${RapidColorHEX.melon} 1:${RapidColorHEX.lightMelon}`,
14
- rapidDodgerBlue: `l(270) 0:${RapidColorHEX.dodgerBlue} 1:${RapidColorHEX.lightDodgerBlue}`,
15
- rapidIce: `l(170) 0:${RapidColorHEX.ice} 1:${RapidColorHEX.lightIce}`,
16
- rapidViolet: `l(270) 0:${RapidColorHEX.violet} 1:${RapidColorHEX.lightViolet}`,
7
+ rapidBlue: `l(270) 0:${primaryColors.purple} 1:${primaryColors.blue}`,
8
+ rapidGreen: `l(270) 0:${gradientColors.green} 1:${gradientColors.lightGreen}`,
9
+ rapidRed: `l(300) 0:${gradientColors.red} 1:${gradientColors.lightRed}`,
10
+ rapidPortage: `l(270) 0:${gradientColors.portage} 1:${gradientColors.lightPortage}`,
11
+ rapidAlabaster: `l(270) 0:${gradientColors.white} 1:${gradientColors.silver}`,
12
+ rapidSalomie: `l(270) 0:${gradientColors.salomie} 1:${gradientColors.lightSalomie}`,
13
+ rapidMelon: `l(270) 0:${gradientColors.melon} 1:${gradientColors.lightMelon}`,
14
+ rapidDodgerBlue: `l(270) 0:${gradientColors.dodgerBlue} 1:${gradientColors.lightDodgerBlue}`,
15
+ rapidIce: `l(170) 0:${gradientColors.ice} 1:${gradientColors.lightIce}`,
16
+ rapidViolet: `l(270) 0:${gradientColors.violet} 1:${gradientColors.lightViolet}`,
17
17
  };
@@ -0,0 +1,24 @@
1
+ export const primaryColors = {
2
+ blue: '#0eafe2',
3
+ purple: '#654df9',
4
+ };
5
+ export const gradientColors = {
6
+ green: '#44c14c',
7
+ lightGreen: '#69cd70',
8
+ red: '#ef4d28',
9
+ lightRed: '#ee6588',
10
+ dodgerBlue: '#33a9ff',
11
+ lightDodgerBlue: '#5cbaff',
12
+ violet: '#9b1e74',
13
+ lightViolet: '#b528af',
14
+ white: '#f9f9f9',
15
+ silver: '#c1c1c1',
16
+ salomie: '#ffdf94',
17
+ lightSalomie: '#ccb276',
18
+ melon: '#ffbbb2',
19
+ lightMelon: '#cc968e',
20
+ portage: '#8a99f5',
21
+ lightPortage: '#adb8f8',
22
+ ice: '#97f4eb',
23
+ lightIce: '#6befe2',
24
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/g2plot-chart",
3
3
  "description": "Genesis G2plot Chart",
4
- "version": "15.73.0",
4
+ "version": "15.75.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -51,20 +51,19 @@
51
51
  }
52
52
  },
53
53
  "devDependencies": {
54
- "@genesislcap/foundation-testing": "15.73.0",
55
- "@genesislcap/genx": "15.73.0",
56
- "@genesislcap/ts-builder": "15.73.0",
57
- "@genesislcap/uvu-playwright-builder": "15.73.0",
58
- "@genesislcap/vite-builder": "15.73.0",
59
- "@genesislcap/webpack-builder": "15.73.0"
54
+ "@genesislcap/foundation-testing": "15.75.0",
55
+ "@genesislcap/genx": "15.75.0",
56
+ "@genesislcap/ts-builder": "15.75.0",
57
+ "@genesislcap/uvu-playwright-builder": "15.75.0",
58
+ "@genesislcap/vite-builder": "15.75.0",
59
+ "@genesislcap/webpack-builder": "15.75.0"
60
60
  },
61
61
  "dependencies": {
62
62
  "@antv/g2plot": "^2.4.32",
63
- "@genesislcap/foundation-comms": "15.73.0",
64
- "@genesislcap/foundation-logger": "15.73.0",
65
- "@genesislcap/foundation-ui": "15.73.0",
66
- "@genesislcap/foundation-utils": "15.73.0",
67
- "@genesislcap/foundation-zero": "15.73.0",
63
+ "@genesislcap/foundation-comms": "15.75.0",
64
+ "@genesislcap/foundation-logger": "15.75.0",
65
+ "@genesislcap/foundation-ui": "15.75.0",
66
+ "@genesislcap/foundation-utils": "15.75.0",
68
67
  "@microsoft/fast-element": "1.14.0",
69
68
  "@microsoft/fast-foundation": "2.50.0"
70
69
  },