openlayers-style-editor 1.0.0 → 1.1.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.
|
@@ -1,19 +1,11 @@
|
|
|
1
|
-
import { Render
|
|
1
|
+
import { Render } from '../rendererUtils';
|
|
2
2
|
import { Feature } from 'ol';
|
|
3
|
-
export interface FilterRule {
|
|
4
|
-
name: string;
|
|
5
|
-
filterJson?: string;
|
|
6
|
-
isElse: boolean;
|
|
7
|
-
symbol: Render;
|
|
8
|
-
isAll?: boolean;
|
|
9
|
-
friendlyExpression?: string;
|
|
10
|
-
}
|
|
11
3
|
interface Props {
|
|
12
4
|
setVisible: (e: boolean) => void;
|
|
13
|
-
features: Feature[];
|
|
14
5
|
applyRenderer: (renderer: Render) => void;
|
|
15
6
|
layerCurrentRenderer: Render;
|
|
16
|
-
|
|
7
|
+
features: Feature[];
|
|
8
|
+
idFieldName: string | null;
|
|
17
9
|
}
|
|
18
10
|
export declare function BasedOnRules(props: Props): import("react/jsx-runtime").JSX.Element;
|
|
19
11
|
export {};
|
|
@@ -16,6 +16,7 @@ interface FilterWidgetI {
|
|
|
16
16
|
}[];
|
|
17
17
|
expressionsComponents: number[];
|
|
18
18
|
attributes: SEAttribute[];
|
|
19
|
+
idFieldName: string | null;
|
|
19
20
|
}
|
|
20
21
|
export type FilterWidgetContextType = {
|
|
21
22
|
queryWidget: FilterWidgetI;
|
|
@@ -36,11 +37,13 @@ export type FilterWidgetContextType = {
|
|
|
36
37
|
setAttributes: (value: SEAttribute[]) => void;
|
|
37
38
|
reset: () => void;
|
|
38
39
|
addAttributes: (atts: SEAttribute[]) => void;
|
|
40
|
+
idFieldName: string | null;
|
|
39
41
|
};
|
|
40
42
|
export declare const FilterWidgetContext: import('react').Context<FilterWidgetContextType | null>;
|
|
41
43
|
interface ProviderProps {
|
|
42
44
|
children: ReactNode;
|
|
43
45
|
attributes: SEAttribute[];
|
|
46
|
+
idFieldName: string | null;
|
|
44
47
|
}
|
|
45
|
-
export declare function FilterWidgetContextProvider({ children, attributes }: ProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare function FilterWidgetContextProvider({ children, attributes, idFieldName }: ProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
46
49
|
export {};
|