@evergis/react 4.0.101 → 4.0.103
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/components/Dashboard/componentTypes.d.ts +20 -14
- package/dist/components/Dashboard/components/Chart/FillContext.d.ts +15 -0
- package/dist/components/Dashboard/components/Chart/styled.d.ts +1 -0
- package/dist/components/Dashboard/components/StackBar/index.d.ts +2 -0
- package/dist/components/Dashboard/components/StackBar/styled.d.ts +4 -1
- package/dist/components/Dashboard/containers/EditContainer/styled.d.ts +2 -0
- package/dist/components/Dashboard/containers/FiltersContainer/styled.d.ts +2 -0
- package/dist/components/Dashboard/containers/styled.d.ts +4 -1
- package/dist/components/Dashboard/hooks/index.d.ts +1 -1
- package/dist/components/Dashboard/hooks/useResizeBox.d.ts +17 -0
- package/dist/components/Dashboard/types.d.ts +17 -2
- package/dist/components/Dashboard/utils/getWrapperSizeStyle.d.ts +7 -2
- package/dist/index.js +155 -43
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +154 -43
- package/dist/react.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/Dashboard/components/Chart/ChartFillContext.d.ts +0 -8
- package/dist/components/Dashboard/hooks/useResizeWidth.d.ts +0 -12
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.0.
|
|
2
|
+
"version": "4.0.103",
|
|
3
3
|
"name": "@evergis/react",
|
|
4
4
|
"author": "Everpoint",
|
|
5
5
|
"license": "MIT",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@evergis/api": "^5.0.36",
|
|
61
|
-
"@evergis/charts": "^4.0.
|
|
61
|
+
"@evergis/charts": "^4.0.35",
|
|
62
62
|
"@evergis/color": "^1.0.0-alpha.1",
|
|
63
63
|
"@evergis/uilib-gl": "^1.0.119",
|
|
64
64
|
"@mapbox/mapbox-gl-draw": "^1.5.1",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"uuid": "^13.0.0",
|
|
90
90
|
"wkt": "^0.1.1"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "47d0978ef2dc138873ab4d181f6be75ef337c173"
|
|
93
93
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Флаг «растянуть график на всю ширину контейнера» (`options.chartFill` контейнера Chart).
|
|
3
|
-
*
|
|
4
|
-
* Компонент `Chart` рендерится через `renderElement({ id: "chart" })` и получает только дочерний
|
|
5
|
-
* узел `{ id: "chart" }` — опции контейнера до него не доходят. `ChartContainer` оборачивает
|
|
6
|
-
* график в провайдер этого контекста, а `Chart` читает флаг через `useContext`.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ChartFillContext: import('react').Context<boolean>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Измеряет фактическую ширину DOM-элемента и обновляет её на любой ресайз (ResizeObserver).
|
|
4
|
-
*
|
|
5
|
-
* Возвращает `[ref, width]`, где `width` — число пикселей либо `undefined`, пока элемент ещё
|
|
6
|
-
* не измерен. Используется для «резинового» графика: d3-графикам нужна конкретная пиксельная
|
|
7
|
-
* ширина, а не CSS `100%`.
|
|
8
|
-
*
|
|
9
|
-
* `enabled: false` полностью отключает наблюдение — обычные (не fill) графики не измеряются
|
|
10
|
-
* и не вызывают лишних ре-рендеров.
|
|
11
|
-
*/
|
|
12
|
-
export declare const useResizeWidth: (enabled: boolean) => [RefObject<HTMLDivElement>, number | undefined];
|