@evergis/react 4.0.93 → 4.0.95

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.
@@ -1,4 +1,15 @@
1
1
  import { CircleLayerSpecification, FillExtrusionLayerSpecification, FillLayerSpecification, HeatmapLayerSpecification, LineLayerSpecification, SymbolLayerSpecification } from 'maplibre-gl';
2
+ export declare enum StyligClassificationTypes {
3
+ FillColor = "fill",
4
+ CircleColor = "circle",
5
+ LineColor = "line",
6
+ CircleStroke = "circle-stroke",
7
+ PolygonStroke = "polygon-stroke",
8
+ CircleRadius = "circle-radius",
9
+ CircleStrokeWidth = "circle-stroke-width",
10
+ LineWidth = "line-width",
11
+ PolygonStrokeWidth = "polygon-stroke-width"
12
+ }
2
13
  export interface ClientStyleFillSettings {
3
14
  showBottomSurface?: boolean;
4
15
  }
@@ -38,7 +49,6 @@ export interface ClientStyleModel {
38
49
  path?: string;
39
50
  size?: string;
40
51
  rotation?: ClientStyleModelRotation;
41
- axesHelper?: boolean;
42
52
  }
43
53
  export interface ClientStyle {
44
54
  settings?: ClientStyleSettings;
@@ -2,6 +2,14 @@ export declare const transparentizeColor: (originalColor: string, percent: numbe
2
2
  export declare const hexToRgba: (hexCode: string, opacity?: number) => string;
3
3
  export declare const rgbToHex: (r: number, g: number, b: number) => string;
4
4
  export declare const decimalOpacityToHex: (opacity: number) => string;
5
+ /**
6
+ * Растягивает палитру на нужное количество цветов: опорные цвета равномерно
7
+ * раскладываются по шкале, недостающие интерполируются между ними.
8
+ * @param colors - опорные цвета палитры в hex
9
+ * @param count - требуемое количество цветов
10
+ * @returns массив ровно из count цветов
11
+ */
12
+ export declare const stretchPalette: (colors: readonly string[], count: number) => string[];
5
13
  export declare const getGradientColors: (colorsCount?: number) => string[];
6
14
  /**
7
15
  * Adjusts color brightness
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.93",
2
+ "version": "4.0.95",
3
3
  "name": "@evergis/react",
4
4
  "author": "Everpoint",
5
5
  "license": "MIT",
@@ -41,14 +41,13 @@
41
41
  "@storybook/test": "^7.6.14",
42
42
  "@storybook/theming": "^7.6.14",
43
43
  "@types/html2canvas": "^1.0.0",
44
- "@types/javascript-color-gradient": "^2.4.2",
45
44
  "@types/jspdf": "^2.0.0",
46
45
  "@types/lodash": "^4.17.15",
47
- "@types/mapbox__mapbox-gl-draw": "^1.4.6",
48
- "@types/mapbox__mapbox-gl-geocoder": "^5.0.0",
46
+ "@types/mapbox__mapbox-gl-draw": "^1.4.9",
47
+ "@types/mapbox__mapbox-gl-geocoder": "^5.1.1",
49
48
  "@types/react": "^18.3.18",
50
49
  "@types/react-dom": "^18.3.5",
51
- "@types/react-map-gl": "^6.1.7",
50
+ "@types/react-map-gl": "^6.1.8",
52
51
  "@types/styled-components": "5.1.25",
53
52
  "@types/styled-system": "^5.1.23",
54
53
  "storybook": "^7.6.14"
@@ -68,10 +67,9 @@
68
67
  "find-and": "^1.3.1",
69
68
  "html2canvas": "^1.4.1",
70
69
  "i18next": "^24.2.2",
71
- "javascript-color-gradient": "^2.5.0",
72
70
  "jspdf": "^2.5.1",
73
71
  "lodash": "^4.17.23",
74
- "mapbox-gl": "^3.22.0",
72
+ "mapbox-gl": "^3.26.0",
75
73
  "mapbox-gl-draw": "^0.16.0",
76
74
  "maplibre-gl": "^5.24.0",
77
75
  "punycode": "^2.1.1",
@@ -86,6 +84,5 @@
86
84
  "swiper": "^8.3.2",
87
85
  "uuid": "^13.0.0",
88
86
  "wkt": "^0.1.1"
89
- },
90
- "gitHead": "bc1edf3f4a033b4affee260886b75a592cdfe135"
87
+ }
91
88
  }
@@ -1,2 +0,0 @@
1
- import { ClientStyle } from '../../types';
2
- export declare const parseClientStyle: (style?: ClientStyle) => string[];