This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* initial storybook setup * fix reference of chart object * added barchart stories to test * added the mdx file * fix barchart issue * added change-matix and horizon graph * added change matrix svelte file in the demos * Added the svelte file for heatmap, horizon graph and treemap for plotly * delete the components folder in echarts * Changed for barchart svelte * Added plotly demos as svelte files in storybook * Removed extra spaces * Added echarts to the package json in demos and added barchart svelte file * Added barchart as svelte file-WIP * Added onboardings to the barchart in echart demos in svelte file * Added svelte file for echarts change matrix * Added echart horizon graph and refactored the folder structure in storybook ui and vs code * Added scatterplot echarts in svelte and storybook * Added heatmap svelte file to storybook * Add treemap echart to storybook (WIP) * Added introduction.mdx file to storybook * Added doc to storybook(WIP) * Echarts treemap in storybook (WIP) * Added vega bar chart to storybook * Added vegalite change matrix to storybook * Added vega horizonGraph to storybook * Added scatterplot vega to storybook * Refractored data in scatterplot * Refractored the code * Changed folder name * Added resize observer to echarts * added typescript support in storybook svelte by updating main.js and edited echarts demo to include typying * Added typings for plotly demo * Added typings to vega demos * Added a seperate json file for large data * Added resize to echart demos in storybook * refactor core and plotly demos * add resize observer to visAhoi * refactor echarts and vega demos * add scss in core package * adaptions for VA tool and library refactorings * review changes * flatten hierarchy of demos folder * rename files * fix hidden navMarker and horizontal stepper navigation --------- Co-authored-by: dvsilviyageo <[email protected]>
- Loading branch information
1 parent
b817ba8
commit d4631c8
Showing
72 changed files
with
45,135 additions
and
14,748 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,83 +1,91 @@ | ||
import svelte from 'rollup-plugin-svelte' | ||
import commonjs from '@rollup/plugin-commonjs' | ||
import { nodeResolve } from '@rollup/plugin-node-resolve' | ||
import typescript from '@rollup/plugin-typescript' | ||
import json from '@rollup/plugin-json' | ||
import livereload from 'rollup-plugin-livereload' | ||
import postcssImport from 'postcss-import' | ||
import postcss from 'rollup-plugin-postcss' | ||
import autoPreprocess from 'svelte-preprocess' | ||
import InlineSvg from 'rollup-plugin-inline-svg' | ||
import copy from 'rollup-plugin-copy-assets' | ||
import svelte from "rollup-plugin-svelte"; | ||
import commonjs from "@rollup/plugin-commonjs"; | ||
import { nodeResolve } from "@rollup/plugin-node-resolve"; | ||
import typescript from "@rollup/plugin-typescript"; | ||
import json from "@rollup/plugin-json"; | ||
import livereload from "rollup-plugin-livereload"; | ||
import postcssImport from "postcss-import"; | ||
import postcss from "rollup-plugin-postcss"; | ||
import InlineSvg from "rollup-plugin-inline-svg"; | ||
import copy from "rollup-plugin-copy-assets"; | ||
import preprocess from "svelte-preprocess"; | ||
|
||
const production = !process.env.ROLLUP_WATCH | ||
const production = !process.env.ROLLUP_WATCH; | ||
|
||
export default [{ | ||
input: './src/index.ts', | ||
output: [{ | ||
sourcemap: true, | ||
format: 'es', | ||
dir: './dist', | ||
name: 'core' | ||
}, { | ||
sourcemap: true, | ||
format: 'esm', | ||
file: './build/bundle.js', | ||
name: 'core' | ||
}], | ||
plugins: [ | ||
svelte({ | ||
emitCss: true, | ||
preprocess: autoPreprocess() | ||
}), | ||
// process css in .svelte files | ||
postcss({ | ||
extract: 'css/svelte-bundle.css', | ||
minimize: Boolean(!production) | ||
}), | ||
nodeResolve({ | ||
browser: true, | ||
dedupe: ['svelte'] | ||
}), | ||
commonjs(), | ||
typescript({ | ||
sourceMap: !production, | ||
inlineSources: !production | ||
}), | ||
!production && livereload('dist'), | ||
json(), | ||
InlineSvg({ | ||
include: ['src/assets/*.svg'] | ||
}), | ||
copy({ | ||
assets: [ | ||
// You can include directories | ||
'src/assets' | ||
] | ||
}) | ||
], | ||
}, | ||
{ | ||
// process css files | ||
input: './src/css/main.css', | ||
output: [{ | ||
format: 'es', | ||
dir: './dist/css' | ||
}, { | ||
format: 'es', | ||
file: './build/css/main.css' | ||
}], | ||
plugins: [ | ||
postcss({ | ||
plugins: [postcssImport({ extensions: ['.css'] })], | ||
extract: true, | ||
to: './build/css/main.css', | ||
minimize: Boolean(!production) | ||
}), | ||
nodeResolve({ | ||
browser: true, | ||
dedupe: ['svelte'], | ||
extensions: ['.css'] | ||
}) | ||
] | ||
}] | ||
export default [ | ||
{ | ||
input: "./src/index.ts", | ||
output: [ | ||
{ | ||
sourcemap: true, | ||
format: "es", | ||
dir: "./dist", | ||
name: "core", | ||
}, | ||
{ | ||
sourcemap: true, | ||
format: "esm", | ||
file: "./build/bundle.js", | ||
name: "core", | ||
}, | ||
], | ||
plugins: [ | ||
svelte({ | ||
emitCss: true, | ||
preprocess: preprocess(), | ||
}), | ||
// process css in .svelte files | ||
postcss({ | ||
extract: "css/svelte-bundle.css", | ||
minimize: Boolean(!production), | ||
}), | ||
nodeResolve({ | ||
browser: true, | ||
dedupe: ["svelte"], | ||
}), | ||
commonjs(), | ||
typescript({ | ||
sourceMap: !production, | ||
inlineSources: !production, | ||
}), | ||
!production && livereload("dist"), | ||
json(), | ||
InlineSvg({ | ||
include: ["src/assets/*.svg"], | ||
}), | ||
copy({ | ||
assets: [ | ||
// You can include directories | ||
"src/assets", | ||
], | ||
}), | ||
], | ||
}, | ||
{ | ||
// process css files | ||
input: "./src/css/main.css", | ||
output: [ | ||
{ | ||
format: "es", | ||
dir: "./dist/css", | ||
}, | ||
{ | ||
format: "es", | ||
file: "./build/css/main.css", | ||
}, | ||
], | ||
plugins: [ | ||
postcss({ | ||
plugins: [postcssImport({ extensions: [".css"] })], | ||
extract: true, | ||
to: "./build/css/main.css", | ||
minimize: Boolean(!production), | ||
}), | ||
nodeResolve({ | ||
browser: true, | ||
dedupe: ["svelte"], | ||
extensions: [".css"], | ||
}), | ||
], | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.