forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransforms.ts
More file actions
43 lines (34 loc) · 1.25 KB
/
transforms.ts
File metadata and controls
43 lines (34 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/* tslint:disable */
'use strict';
// This code is from @nteract/transforms-full except without the Vega transforms:
// https://github.com/nteract/nteract/blob/v0.12.2/packages/transforms-full/src/index.js .
// Vega transforms mess up our npm pkg install because they rely on the npm canvas module that needs
// to be built on each system.
import PlotlyTransform, {
PlotlyNullTransform
} from "@nteract/transform-plotly";
import GeoJSONTransform from "@nteract/transform-geojson";
import ModelDebug from "@nteract/transform-model-debug";
import DataResourceTransform from "@nteract/transform-dataresource";
// import { VegaLite1, VegaLite2, Vega2, Vega3 } from "@nteract/transform-vega";
import {
standardTransforms,
standardDisplayOrder,
registerTransform,
richestMimetype
} from "@nteract/transforms";
const additionalTransforms = [
DataResourceTransform,
ModelDebug,
PlotlyNullTransform,
PlotlyTransform,
GeoJSONTransform,
];
const { transforms, displayOrder } = additionalTransforms.reduce(
registerTransform,
{
transforms: standardTransforms,
displayOrder: standardDisplayOrder
}
);
export { displayOrder, transforms, richestMimetype, registerTransform };