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/dist/sankey.esm.js
CHANGED
|
@@ -1,3 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type Definitions for Energy Sankey Library
|
|
3
|
+
*
|
|
4
|
+
* Comprehensive TypeScript type definitions for energy visualization data structures,
|
|
5
|
+
* configuration options, service interfaces, and mathematical computation types.
|
|
6
|
+
*
|
|
7
|
+
* Key Type Categories:
|
|
8
|
+
* - Error types: Custom error classes with detailed context
|
|
9
|
+
* - Data structures: Energy data points, summaries, and flow calculations
|
|
10
|
+
* - Configuration: Visual constants, fuel definitions, and styling
|
|
11
|
+
* - Mathematical types: Graph data, positioning, and computational results
|
|
12
|
+
* - Service interfaces: D3 selections, render data, and layout structures
|
|
13
|
+
*
|
|
14
|
+
* Type Safety Features:
|
|
15
|
+
* - Immutable readonly properties for data integrity
|
|
16
|
+
* - Strict type constraints for fuel and sector names
|
|
17
|
+
* - Comprehensive interface coverage for all service operations
|
|
18
|
+
* - Generic types for flexible service composition
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
21
|
+
// Error types
|
|
22
|
+
class SankeyError extends Error {
|
|
23
|
+
constructor(message, code) {
|
|
24
|
+
super(message);
|
|
25
|
+
this.code = code;
|
|
26
|
+
this.name = 'SankeyError';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
class DataValidationError extends SankeyError {
|
|
30
|
+
constructor(message, field) {
|
|
31
|
+
super(message, 'DATA_VALIDATION');
|
|
32
|
+
this.field = field;
|
|
33
|
+
this.name = 'DataValidationError';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
1
37
|
function ascending$1(a, b) {
|
|
2
38
|
return a == null || b == null ? NaN : a < b ? -1 : a > b ? 1 : a >= b ? 0 : NaN;
|
|
3
39
|
}
|
|
@@ -4311,42 +4347,6 @@ class EventBus {
|
|
|
4311
4347
|
}
|
|
4312
4348
|
}
|
|
4313
4349
|
|
|
4314
|
-
/**
|
|
4315
|
-
* Type Definitions for Energy Sankey Library
|
|
4316
|
-
*
|
|
4317
|
-
* Comprehensive TypeScript type definitions for energy visualization data structures,
|
|
4318
|
-
* configuration options, service interfaces, and mathematical computation types.
|
|
4319
|
-
*
|
|
4320
|
-
* Key Type Categories:
|
|
4321
|
-
* - Error types: Custom error classes with detailed context
|
|
4322
|
-
* - Data structures: Energy data points, summaries, and flow calculations
|
|
4323
|
-
* - Configuration: Visual constants, fuel definitions, and styling
|
|
4324
|
-
* - Mathematical types: Graph data, positioning, and computational results
|
|
4325
|
-
* - Service interfaces: D3 selections, render data, and layout structures
|
|
4326
|
-
*
|
|
4327
|
-
* Type Safety Features:
|
|
4328
|
-
* - Immutable readonly properties for data integrity
|
|
4329
|
-
* - Strict type constraints for fuel and sector names
|
|
4330
|
-
* - Comprehensive interface coverage for all service operations
|
|
4331
|
-
* - Generic types for flexible service composition
|
|
4332
|
-
*
|
|
4333
|
-
*/
|
|
4334
|
-
// Error types
|
|
4335
|
-
class SankeyError extends Error {
|
|
4336
|
-
constructor(message, code) {
|
|
4337
|
-
super(message);
|
|
4338
|
-
this.code = code;
|
|
4339
|
-
this.name = 'SankeyError';
|
|
4340
|
-
}
|
|
4341
|
-
}
|
|
4342
|
-
class DataValidationError extends SankeyError {
|
|
4343
|
-
constructor(message, field) {
|
|
4344
|
-
super(message, 'DATA_VALIDATION');
|
|
4345
|
-
this.field = field;
|
|
4346
|
-
this.name = 'DataValidationError';
|
|
4347
|
-
}
|
|
4348
|
-
}
|
|
4349
|
-
|
|
4350
4350
|
/**
|
|
4351
4351
|
* Performance Monitoring and Debug Logging Utility
|
|
4352
4352
|
*
|
|
@@ -8367,8 +8367,8 @@ class AnimationService {
|
|
|
8367
8367
|
}
|
|
8368
8368
|
|
|
8369
8369
|
var AnimationService$1 = /*#__PURE__*/Object.freeze({
|
|
8370
|
-
|
|
8371
|
-
|
|
8370
|
+
__proto__: null,
|
|
8371
|
+
AnimationService: AnimationService
|
|
8372
8372
|
});
|
|
8373
8373
|
|
|
8374
8374
|
/**
|
|
@@ -9174,9 +9174,9 @@ class InteractionService {
|
|
|
9174
9174
|
}
|
|
9175
9175
|
|
|
9176
9176
|
var InteractionService$1 = /*#__PURE__*/Object.freeze({
|
|
9177
|
-
|
|
9178
|
-
|
|
9177
|
+
__proto__: null,
|
|
9178
|
+
InteractionService: InteractionService
|
|
9179
9179
|
});
|
|
9180
9180
|
|
|
9181
|
-
export { Sankey as default };
|
|
9181
|
+
export { DataValidationError, SankeyError, Sankey as default };
|
|
9182
9182
|
//# sourceMappingURL=sankey.esm.js.map
|