energy-visualization-sankey 1.0.12 → 1.0.13
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/sankey.esm.js +41 -41
- package/dist/sankey.esm.js.map +1 -1
- package/dist/sankey.umd.js +8720 -8716
- package/dist/sankey.umd.js.map +1 -1
- package/dist/types/core/Sankey.d.ts +294 -0
- package/dist/types/core/Sankey.d.ts.map +1 -0
- package/dist/types/core/events/EventBus.d.ts +195 -0
- package/dist/types/core/events/EventBus.d.ts.map +1 -0
- package/dist/types/core/types/events.d.ts +42 -0
- package/dist/types/core/types/events.d.ts.map +1 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/services/AnimationService.d.ts +229 -0
- package/dist/types/services/AnimationService.d.ts.map +1 -0
- package/dist/types/services/ConfigurationService.d.ts +182 -0
- package/dist/types/services/ConfigurationService.d.ts.map +1 -0
- package/dist/types/services/InteractionService.d.ts +377 -0
- package/dist/types/services/InteractionService.d.ts.map +1 -0
- package/dist/types/services/RenderingService.d.ts +160 -0
- package/dist/types/services/RenderingService.d.ts.map +1 -0
- package/dist/types/services/calculation/GraphService.d.ts +111 -0
- package/dist/types/services/calculation/GraphService.d.ts.map +1 -0
- package/dist/types/services/calculation/SummaryService.d.ts +149 -0
- package/dist/types/services/calculation/SummaryService.d.ts.map +1 -0
- package/dist/types/services/data/DataService.d.ts +167 -0
- package/dist/types/services/data/DataService.d.ts.map +1 -0
- package/dist/types/services/data/DataValidationService.d.ts +48 -0
- package/dist/types/services/data/DataValidationService.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +194 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/types/utils/Logger.d.ts +88 -0
- package/dist/types/utils/Logger.d.ts.map +1 -0
- package/package.json +4 -3
- package/rollup.config.js +11 -2
- package/src/index.ts +3 -3
- package/tsconfig.json +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "energy-visualization-sankey",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "A modern TypeScript library for creating interactive Sankey diagrams that visualize energy flows from sources to consumption sectors.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sankey",
|
|
@@ -30,11 +30,11 @@
|
|
|
30
30
|
"import": "./dist/sankey.esm.js",
|
|
31
31
|
"require": "./dist/sankey.umd.js"
|
|
32
32
|
},
|
|
33
|
-
"./styles": "./dist/
|
|
33
|
+
"./styles": "./dist/sankey.css"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"dev": "rollup -c -w",
|
|
37
|
-
"build": "rollup -c",
|
|
37
|
+
"build": "rollup -c && tsc-alias -p tsconfig.json",
|
|
38
38
|
"build:dev": "rollup -c",
|
|
39
39
|
"type-check": "tsc --noEmit",
|
|
40
40
|
"clean": "rm -rf dist",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"rollup": "^4.6.1",
|
|
74
74
|
"rollup-plugin-postcss": "^4.0.2",
|
|
75
75
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
76
|
+
"tsc-alias": "^1.8.16",
|
|
76
77
|
"tslib": "^2.6.0",
|
|
77
78
|
"typescript": "^5.3.0"
|
|
78
79
|
}
|
package/rollup.config.js
CHANGED
|
@@ -27,7 +27,7 @@ const cssConfig = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
const baseConfig = {
|
|
30
|
-
input: 'src/
|
|
30
|
+
input: 'src/index.ts',
|
|
31
31
|
// Embed D3 in the bundle for standalone distribution
|
|
32
32
|
external: [],
|
|
33
33
|
plugins: [
|
|
@@ -41,7 +41,16 @@ const baseConfig = {
|
|
|
41
41
|
clean: true,
|
|
42
42
|
abortOnError: false,
|
|
43
43
|
rollupCommonJSResolveHack: false,
|
|
44
|
-
typescript: ts
|
|
44
|
+
typescript: ts,
|
|
45
|
+
tsconfigOverride: {
|
|
46
|
+
compilerOptions: {
|
|
47
|
+
declaration: true,
|
|
48
|
+
declarationMap: true,
|
|
49
|
+
declarationDir: './dist/types',
|
|
50
|
+
baseUrl: '.',
|
|
51
|
+
paths: {}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
45
54
|
})
|
|
46
55
|
]
|
|
47
56
|
};
|
package/src/index.ts
CHANGED
|
@@ -23,13 +23,13 @@ export type {
|
|
|
23
23
|
YearTotals,
|
|
24
24
|
BoxMaxes,
|
|
25
25
|
BoxTops
|
|
26
|
-
} from '
|
|
26
|
+
} from './types/index';
|
|
27
27
|
|
|
28
28
|
// Export error handling types
|
|
29
29
|
export {
|
|
30
30
|
SankeyError,
|
|
31
31
|
DataValidationError
|
|
32
|
-
} from '
|
|
32
|
+
} from './types/index';
|
|
33
33
|
|
|
34
34
|
// Export the main visualization class
|
|
35
|
-
export {default as default} from '
|
|
35
|
+
export {default as default} from './core/Sankey';
|