@vitessce/all 3.4.14 → 3.5.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.
- package/dist/{deflate-e067243e.js → deflate-48ab44f6.js} +1 -1
- package/dist/{higlass-c8e1f55e.js → higlass-32619fd7.js} +1 -1
- package/dist/{index-2a3ac5b2.js → index-2d447f13.js} +2 -2
- package/dist/{index-5123f7f4.js → index-509a394d.js} +24974 -12573
- package/dist/index.js +1 -1
- package/dist/{jpeg-3ab1634d.js → jpeg-924502fe.js} +1 -1
- package/dist/{lerc-cf7b320e.js → lerc-1339f69d.js} +1 -1
- package/dist/{lzw-e9c46047.js → lzw-098e43e6.js} +1 -1
- package/dist/{packbits-92bb11bc.js → packbits-eecc1015.js} +1 -1
- package/dist/{raw-cf03ea65.js → raw-9c07a573.js} +1 -1
- package/dist/{troika-three-text.esm-6964fb1f.js → troika-three-text.esm-aadb7de3.js} +1 -1
- package/dist/{webimage-439190b4.js → webimage-ebd59020.js} +1 -1
- package/dist-tsc/Vitessce.d.ts.map +1 -1
- package/dist-tsc/Vitessce.js +6 -4
- package/dist-tsc/base-plugins.d.ts +2 -1
- package/dist-tsc/base-plugins.d.ts.map +1 -1
- package/dist-tsc/base-plugins.js +9 -2
- package/package.json +26 -25
- package/src/Vitessce.tsx +6 -3
- package/src/base-plugins.ts +15 -0
package/dist/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { b4, b2, b0, b3, b1, a$, b5 } from "./index-
|
1
|
+
import { b4, b2, b0, b3, b1, a$, b5 } from "./index-509a394d.js";
|
2
2
|
import { useComplexCoordination, useComplexCoordinationSecondary, useCoordination, useCoordinationScopes, useCoordinationScopesBy, useGridItemSize, useMultiCoordinationScopesNonNull, useMultiCoordinationScopesSecondaryNonNull } from "@vitessce/vit-s";
|
3
3
|
import "react";
|
4
4
|
import "react-dom";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-68f84e2a.js";
|
2
|
-
import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-
|
2
|
+
import { g as getDefaultExportFromCjs, aP as BaseDecoder, aQ as LercParameters, aR as LercAddCompression } from "./index-509a394d.js";
|
3
3
|
import "react";
|
4
4
|
import "@vitessce/vit-s";
|
5
5
|
import "react-dom";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { aB as UniformsUtils, aV as MeshDepthMaterial, aW as RGBADepthPacking, aX as MeshDistanceMaterial, aY as ShaderChunk, T as Texture, Z as LinearFilter, aw as InstancedBufferGeometry, au as Sphere, at as Box3, aH as BackSide, a4 as DoubleSide, aZ as InstancedBufferAttribute, V as Vector2, aD as Vector4, h as Color, aJ as Matrix3, a7 as Mesh, ao as FrontSide, a_ as PlaneGeometry, f as BufferGeometry, ax as Float32BufferAttribute, y as MeshBasicMaterial, k as Matrix4, b as Vector3 } from "./index-
|
1
|
+
import { aB as UniformsUtils, aV as MeshDepthMaterial, aW as RGBADepthPacking, aX as MeshDistanceMaterial, aY as ShaderChunk, T as Texture, Z as LinearFilter, aw as InstancedBufferGeometry, au as Sphere, at as Box3, aH as BackSide, a4 as DoubleSide, aZ as InstancedBufferAttribute, V as Vector2, aD as Vector4, h as Color, aJ as Matrix3, a7 as Mesh, ao as FrontSide, a_ as PlaneGeometry, f as BufferGeometry, ax as Float32BufferAttribute, y as MeshBasicMaterial, k as Matrix4, b as Vector3 } from "./index-509a394d.js";
|
2
2
|
import "react";
|
3
3
|
import "@vitessce/vit-s";
|
4
4
|
import "react-dom";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Vitessce.d.ts","sourceRoot":"","sources":["../src/Vitessce.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Vitessce.d.ts","sourceRoot":"","sources":["../src/Vitessce.tsx"],"names":[],"mappings":"AAiBA,wBAAgB,QAAQ,CAAC,KAAK,EAAE,GAAG,2CAmElC"}
|
package/dist-tsc/Vitessce.js
CHANGED
@@ -3,9 +3,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useMemo } from 'react';
|
4
4
|
import { VitS, logConfig, } from '@vitessce/vit-s';
|
5
5
|
import { upgradeAndParse, } from '@vitessce/schemas';
|
6
|
-
import { baseViewTypes, baseFileTypes, baseJointFileTypes, baseCoordinationTypes, } from './base-plugins.js';
|
6
|
+
import { baseViewTypes, baseFileTypes, baseJointFileTypes, baseCoordinationTypes, baseAsyncFunctions, } from './base-plugins.js';
|
7
7
|
export function Vitessce(props) {
|
8
|
-
const { config, onConfigUpgrade, pluginViewTypes: pluginViewTypesProp, pluginFileTypes: pluginFileTypesProp, pluginCoordinationTypes: pluginCoordinationTypesProp, pluginJointFileTypes: pluginJointFileTypesProp, pluginAsyncFunctions, } = props;
|
8
|
+
const { config, onConfigUpgrade, pluginViewTypes: pluginViewTypesProp, pluginFileTypes: pluginFileTypesProp, pluginCoordinationTypes: pluginCoordinationTypesProp, pluginJointFileTypes: pluginJointFileTypesProp, pluginAsyncFunctions: pluginAsyncFunctionsProp, } = props;
|
9
9
|
// If config.uid exists, then use it for hook dependencies to detect changes
|
10
10
|
// (controlled component case). If not, then use the config object itself
|
11
11
|
// and assume the un-controlled component case.
|
@@ -41,6 +41,8 @@ export function Vitessce(props) {
|
|
41
41
|
const mergedPluginCoordinationTypes = useMemo(() => ([
|
42
42
|
...baseCoordinationTypes, ...(pluginCoordinationTypesProp || []),
|
43
43
|
]), [pluginCoordinationTypesProp]);
|
44
|
-
|
45
|
-
|
44
|
+
const mergedPluginAsyncFunctions = useMemo(() => ([
|
45
|
+
...baseAsyncFunctions, ...(pluginAsyncFunctionsProp || []),
|
46
|
+
]), [pluginAsyncFunctionsProp]);
|
47
|
+
return (_jsx(VitS, { ...props, config: configOrWarning, viewTypes: mergedPluginViewTypes, fileTypes: mergedPluginFileTypes, jointFileTypes: mergedPluginJointFileTypes, coordinationTypes: mergedPluginCoordinationTypes, asyncFunctions: mergedPluginAsyncFunctions, warning: (success ? null : configOrWarning) }));
|
46
48
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { PluginFileType, PluginJointFileType, PluginViewType, PluginCoordinationType } from '@vitessce/plugins';
|
1
|
+
import { PluginFileType, PluginJointFileType, PluginViewType, PluginCoordinationType, PluginAsyncFunction } from '@vitessce/plugins';
|
2
2
|
import type { DataLoader, DataSource } from '@vitessce/plugins';
|
3
3
|
import { z } from '@vitessce/schemas';
|
4
4
|
export declare const baseViewTypes: PluginViewType[];
|
@@ -1054,4 +1054,5 @@ export declare const baseCoordinationTypes: (PluginCoordinationType<z.ZodNullabl
|
|
1054
1054
|
}>;
|
1055
1055
|
})[];
|
1056
1056
|
}>>> | PluginCoordinationType<z.ZodNullable<z.ZodUnion<[z.ZodNumber, z.ZodString]>>> | PluginCoordinationType<z.ZodNullable<z.ZodArray<z.ZodNumber, "many">>> | PluginCoordinationType<z.ZodNullable<z.ZodEnum<["BlackIsZero", "RGB"]>>> | PluginCoordinationType<z.ZodNullable<z.ZodEnum<["2D", "3D"]>>> | PluginCoordinationType<z.ZodEnum<["maximumIntensityProjection", "additive"]>> | PluginCoordinationType<z.ZodEnum<["vertical", "horizontal"]>> | PluginCoordinationType<z.ZodEnum<["cellSetSelection", "sampleSetSelection", "contourColor"]>>)[];
|
1057
|
+
export declare const baseAsyncFunctions: PluginAsyncFunction[];
|
1057
1058
|
//# sourceMappingURL=base-plugins.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base-plugins.d.ts","sourceRoot":"","sources":["../src/base-plugins.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"base-plugins.d.ts","sourceRoot":"","sources":["../src/base-plugins.ts"],"names":[],"mappings":"AAWA,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EACV,UAAU,EACV,UAAU,EACX,M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AAC;cAAsC,CAAC;eAC1C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4hBA+brC,CAAC;AAEF,eAAO,MAAM,kBAAkB,uBAG9B,CAAC"}
|
package/dist-tsc/base-plugins.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { FileType, DataType, ViewType, CoordinationType, COMPONENT_COORDINATION_TYPES, ALT_ZARR_STORE_TYPES, } from '@vitessce/constants-internal';
|
2
|
-
import { PluginFileType, PluginJointFileType, PluginViewType, PluginCoordinationType, } from '@vitessce/plugins';
|
1
|
+
import { FileType, DataType, ViewType, CoordinationType, AsyncFunctionType, COMPONENT_COORDINATION_TYPES, ALT_ZARR_STORE_TYPES, } from '@vitessce/constants-internal';
|
2
|
+
import { PluginFileType, PluginJointFileType, PluginViewType, PluginCoordinationType, PluginAsyncFunction, } from '@vitessce/plugins';
|
3
3
|
import { z, obsEmbeddingCsvSchema, obsSetsCsvSchema, obsSpotsCsvSchema, obsPointsCsvSchema, obsLocationsCsvSchema, obsLabelsCsvSchema, featureLabelsCsvSchema, sampleSetsCsvSchema, obsSetsAnndataSchema, obsEmbeddingAnndataSchema, obsSpotsAnndataSchema, obsPointsAnndataSchema, obsLocationsAnndataSchema, obsLabelsAnndataSchema, obsFeatureMatrixAnndataSchema, obsFeatureColumnsAnndataSchema, obsSegmentationsAnndataSchema, featureLabelsAnndataSchema, sampleEdgesAnndataSchema, rasterJsonSchema, anndataZarrSchema, anndataH5adSchema, spatialdataZarrSchema, anndataCellsZarrSchema, anndataCellSetsZarrSchema, anndataExpressionMatrixZarrSchema, cellsJsonSchema, imageOmeZarrSchema, imageOmeTiffSchema, imageSpatialdataSchema, obsSegmentationsOmeTiffSchema, obsSegmentationsOmeZarrSchema, obsSegmentationsSpatialdataSchema, obsFeatureMatrixSpatialdataSchema, obsSpotsSpatialdataSchema, obsSetsSpatialdataSchema, obsSetPath, rgbArray, obsSetsSchema, imageLayerObj, cellsLayerObj, neighborhoodsLayerObj, moleculesLayerObj, meshGlbSchema, } from '@vitessce/schemas';
|
4
4
|
// Register view type plugins
|
5
5
|
import { DescriptionSubscriber } from '@vitessce/description';
|
@@ -38,8 +38,10 @@ ZarrDataSource, MatrixZarrAsObsFeatureMatrixLoader, GenomicProfilesZarrLoader, }
|
|
38
38
|
import { OmeTiffAsObsSegmentationsLoader, OmeTiffLoader, OmeTiffSource, } from '@vitessce/ome-tiff';
|
39
39
|
import { GlbSource, GlbLoader, } from '@vitessce/glb';
|
40
40
|
// Joint file types
|
41
|
+
import { BiomarkerSelectSubscriber, autocompleteFeature, transformFeature, } from '@vitessce/biomarker-select';
|
41
42
|
import { expandAnndataZarr, expandSpatialdataZarr, } from './joint-file-types.js';
|
42
43
|
import { expandAnndataCellSetsZarr, expandAnndataCellsZarr, expandAnndataExpressionMatrixZarr, expandCellSetsJson, expandCellsJson, expandClustersJson, expandExpressionMatrixZarr, expandGenesJson, expandMoleculesJson, expandRasterJson, expandRasterOmeZarr, } from './joint-file-types-legacy.js';
|
44
|
+
// Biomarker select UI and default async functions.
|
43
45
|
// Helper function to use COMPONENT_COORDINATION_TYPES.
|
44
46
|
function makeViewType(name, component) {
|
45
47
|
return new PluginViewType(name, component, COMPONENT_COORDINATION_TYPES[name]);
|
@@ -79,6 +81,7 @@ export const baseViewTypes = [
|
|
79
81
|
makeViewType('higlass', HiGlassSubscriber),
|
80
82
|
makeViewType(ViewType.GENOMIC_PROFILES, GenomicProfilesSubscriber),
|
81
83
|
makeViewType(ViewType.DOT_PLOT, DotPlotSubscriber),
|
84
|
+
makeViewType(ViewType.BIOMARKER_SELECT, BiomarkerSelectSubscriber),
|
82
85
|
];
|
83
86
|
export const baseFileTypes = [
|
84
87
|
// All CSV file types
|
@@ -292,3 +295,7 @@ export const baseCoordinationTypes = [
|
|
292
295
|
new PluginCoordinationType(CoordinationType.CONTOUR_COLOR_ENCODING, 'cellSetSelection', z.enum(['cellSetSelection', 'sampleSetSelection', 'contourColor'])),
|
293
296
|
new PluginCoordinationType(CoordinationType.CONTOUR_COLOR, null, rgbArray.nullable()),
|
294
297
|
];
|
298
|
+
export const baseAsyncFunctions = [
|
299
|
+
new PluginAsyncFunction(AsyncFunctionType.AUTOCOMPLETE_FEATURE, autocompleteFeature),
|
300
|
+
new PluginAsyncFunction(AsyncFunctionType.TRANSFORM_FEATURE, transformFeature),
|
301
|
+
];
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@vitessce/all",
|
3
|
-
"version": "3.
|
4
|
-
"author": "
|
3
|
+
"version": "3.5.0",
|
4
|
+
"author": "HIDIVE Lab at HMS",
|
5
5
|
"homepage": "http://vitessce.io",
|
6
6
|
"repository": {
|
7
7
|
"type": "git",
|
@@ -18,29 +18,30 @@
|
|
18
18
|
"dependencies": {
|
19
19
|
"@material-ui/core": "~4.12.3",
|
20
20
|
"zod": "^3.21.4",
|
21
|
-
"@vitessce/constants-internal": "3.
|
22
|
-
"@vitessce/csv": "3.
|
23
|
-
"@vitessce/description": "3.
|
24
|
-
"@vitessce/feature-list": "3.
|
25
|
-
"@vitessce/genomic-profiles": "3.
|
26
|
-
"@vitessce/heatmap": "3.
|
27
|
-
"@vitessce/glb": "3.
|
28
|
-
"@vitessce/json": "3.
|
29
|
-
"@vitessce/layer-controller": "3.
|
30
|
-
"@vitessce/layer-controller-beta": "3.
|
31
|
-
"@vitessce/obs-sets-manager": "3.
|
32
|
-
"@vitessce/ome-tiff": "3.
|
33
|
-
"@vitessce/plugins": "3.
|
34
|
-
"@vitessce/scatterplot-embedding": "3.
|
35
|
-
"@vitessce/scatterplot-gating": "3.
|
36
|
-
"@vitessce/schemas": "3.
|
37
|
-
"@vitessce/spatial": "3.
|
38
|
-
"@vitessce/spatial-beta": "3.
|
39
|
-
"@vitessce/statistical-plots": "3.
|
40
|
-
"@vitessce/status": "3.
|
41
|
-
"@vitessce/vit-s": "3.
|
42
|
-
"@vitessce/zarr": "3.
|
43
|
-
"@vitessce/spatial-three": "3.
|
21
|
+
"@vitessce/constants-internal": "3.5.0",
|
22
|
+
"@vitessce/csv": "3.5.0",
|
23
|
+
"@vitessce/description": "3.5.0",
|
24
|
+
"@vitessce/feature-list": "3.5.0",
|
25
|
+
"@vitessce/genomic-profiles": "3.5.0",
|
26
|
+
"@vitessce/heatmap": "3.5.0",
|
27
|
+
"@vitessce/glb": "3.5.0",
|
28
|
+
"@vitessce/json": "3.5.0",
|
29
|
+
"@vitessce/layer-controller": "3.5.0",
|
30
|
+
"@vitessce/layer-controller-beta": "3.5.0",
|
31
|
+
"@vitessce/obs-sets-manager": "3.5.0",
|
32
|
+
"@vitessce/ome-tiff": "3.5.0",
|
33
|
+
"@vitessce/plugins": "3.5.0",
|
34
|
+
"@vitessce/scatterplot-embedding": "3.5.0",
|
35
|
+
"@vitessce/scatterplot-gating": "3.5.0",
|
36
|
+
"@vitessce/schemas": "3.5.0",
|
37
|
+
"@vitessce/spatial": "3.5.0",
|
38
|
+
"@vitessce/spatial-beta": "3.5.0",
|
39
|
+
"@vitessce/statistical-plots": "3.5.0",
|
40
|
+
"@vitessce/status": "3.5.0",
|
41
|
+
"@vitessce/vit-s": "3.5.0",
|
42
|
+
"@vitessce/zarr": "3.5.0",
|
43
|
+
"@vitessce/spatial-three": "3.5.0",
|
44
|
+
"@vitessce/biomarker-select": "3.5.0"
|
44
45
|
},
|
45
46
|
"devDependencies": {
|
46
47
|
"@types/react": "^18.0.28",
|
package/src/Vitessce.tsx
CHANGED
@@ -12,6 +12,7 @@ import {
|
|
12
12
|
baseFileTypes,
|
13
13
|
baseJointFileTypes,
|
14
14
|
baseCoordinationTypes,
|
15
|
+
baseAsyncFunctions,
|
15
16
|
} from './base-plugins.js';
|
16
17
|
|
17
18
|
export function Vitessce(props: any) {
|
@@ -22,7 +23,7 @@ export function Vitessce(props: any) {
|
|
22
23
|
pluginFileTypes: pluginFileTypesProp,
|
23
24
|
pluginCoordinationTypes: pluginCoordinationTypesProp,
|
24
25
|
pluginJointFileTypes: pluginJointFileTypesProp,
|
25
|
-
pluginAsyncFunctions,
|
26
|
+
pluginAsyncFunctions: pluginAsyncFunctionsProp,
|
26
27
|
} = props;
|
27
28
|
|
28
29
|
// If config.uid exists, then use it for hook dependencies to detect changes
|
@@ -65,7 +66,9 @@ export function Vitessce(props: any) {
|
|
65
66
|
...baseCoordinationTypes, ...(pluginCoordinationTypesProp || []),
|
66
67
|
]), [pluginCoordinationTypesProp]);
|
67
68
|
|
68
|
-
|
69
|
+
const mergedPluginAsyncFunctions = useMemo(() => ([
|
70
|
+
...baseAsyncFunctions, ...(pluginAsyncFunctionsProp || []),
|
71
|
+
]), [pluginAsyncFunctionsProp]);
|
69
72
|
|
70
73
|
return (
|
71
74
|
<VitS
|
@@ -75,7 +78,7 @@ export function Vitessce(props: any) {
|
|
75
78
|
fileTypes={mergedPluginFileTypes}
|
76
79
|
jointFileTypes={mergedPluginJointFileTypes}
|
77
80
|
coordinationTypes={mergedPluginCoordinationTypes}
|
78
|
-
asyncFunctions={
|
81
|
+
asyncFunctions={mergedPluginAsyncFunctions}
|
79
82
|
warning={(success ? null : configOrWarning)}
|
80
83
|
/>
|
81
84
|
);
|
package/src/base-plugins.ts
CHANGED
@@ -5,6 +5,7 @@ import {
|
|
5
5
|
DataType,
|
6
6
|
ViewType,
|
7
7
|
CoordinationType,
|
8
|
+
AsyncFunctionType,
|
8
9
|
COMPONENT_COORDINATION_TYPES,
|
9
10
|
ALT_ZARR_STORE_TYPES,
|
10
11
|
} from '@vitessce/constants-internal';
|
@@ -13,6 +14,7 @@ import {
|
|
13
14
|
PluginJointFileType,
|
14
15
|
PluginViewType,
|
15
16
|
PluginCoordinationType,
|
17
|
+
PluginAsyncFunction,
|
16
18
|
} from '@vitessce/plugins';
|
17
19
|
import type {
|
18
20
|
DataLoader,
|
@@ -161,6 +163,11 @@ import {
|
|
161
163
|
} from '@vitessce/glb';
|
162
164
|
|
163
165
|
// Joint file types
|
166
|
+
import {
|
167
|
+
BiomarkerSelectSubscriber,
|
168
|
+
autocompleteFeature,
|
169
|
+
transformFeature,
|
170
|
+
} from '@vitessce/biomarker-select';
|
164
171
|
import {
|
165
172
|
expandAnndataZarr,
|
166
173
|
expandSpatialdataZarr,
|
@@ -179,6 +186,8 @@ import {
|
|
179
186
|
expandRasterOmeZarr,
|
180
187
|
} from './joint-file-types-legacy.js';
|
181
188
|
|
189
|
+
// Biomarker select UI and default async functions.
|
190
|
+
|
182
191
|
// Helper function to use COMPONENT_COORDINATION_TYPES.
|
183
192
|
function makeViewType(name: string, component: any) {
|
184
193
|
return new PluginViewType(name, component as ComponentType, COMPONENT_COORDINATION_TYPES[name]);
|
@@ -220,6 +229,7 @@ export const baseViewTypes = [
|
|
220
229
|
makeViewType('higlass', HiGlassSubscriber),
|
221
230
|
makeViewType(ViewType.GENOMIC_PROFILES, GenomicProfilesSubscriber),
|
222
231
|
makeViewType(ViewType.DOT_PLOT, DotPlotSubscriber),
|
232
|
+
makeViewType(ViewType.BIOMARKER_SELECT, BiomarkerSelectSubscriber),
|
223
233
|
];
|
224
234
|
|
225
235
|
export const baseFileTypes = [
|
@@ -517,3 +527,8 @@ export const baseCoordinationTypes = [
|
|
517
527
|
new PluginCoordinationType(CoordinationType.CONTOUR_COLOR_ENCODING, 'cellSetSelection', z.enum(['cellSetSelection', 'sampleSetSelection', 'contourColor'])),
|
518
528
|
new PluginCoordinationType(CoordinationType.CONTOUR_COLOR, null, rgbArray.nullable()),
|
519
529
|
];
|
530
|
+
|
531
|
+
export const baseAsyncFunctions = [
|
532
|
+
new PluginAsyncFunction(AsyncFunctionType.AUTOCOMPLETE_FEATURE, autocompleteFeature),
|
533
|
+
new PluginAsyncFunction(AsyncFunctionType.TRANSFORM_FEATURE, transformFeature),
|
534
|
+
];
|