@opengeoweb/webmap 4.4.0 → 4.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/index.esm.js CHANGED
@@ -3411,7 +3411,24 @@ var WMJSDimension = /*#__PURE__*/function () {
3411
3411
  key: "getDimInterval",
3412
3412
  value: function getDimInterval() {
3413
3413
  this.initialize();
3414
- return this.dimTimeInterval;
3414
+ if (!this.dimTimeInterval) return undefined;
3415
+ var _this$dimTimeInterval = this.dimTimeInterval,
3416
+ year = _this$dimTimeInterval.year,
3417
+ month = _this$dimTimeInterval.month,
3418
+ day = _this$dimTimeInterval.day,
3419
+ hour = _this$dimTimeInterval.hour,
3420
+ minute = _this$dimTimeInterval.minute,
3421
+ second = _this$dimTimeInterval.second,
3422
+ isRegularInterval = _this$dimTimeInterval.isRegularInterval;
3423
+ return {
3424
+ year: year,
3425
+ month: month,
3426
+ day: day,
3427
+ hour: hour,
3428
+ minute: minute,
3429
+ second: second,
3430
+ isRegularInterval: isRegularInterval
3431
+ };
3415
3432
  }
3416
3433
  /**
3417
3434
  * Shorthand functionf or getValueForIndex
package/index.umd.js CHANGED
@@ -3440,7 +3440,24 @@
3440
3440
 
3441
3441
  WMJSDimension.prototype.getDimInterval = function () {
3442
3442
  this.initialize();
3443
- return this.dimTimeInterval;
3443
+ if (!this.dimTimeInterval) return undefined;
3444
+ var _a = this.dimTimeInterval,
3445
+ year = _a.year,
3446
+ month = _a.month,
3447
+ day = _a.day,
3448
+ hour = _a.hour,
3449
+ minute = _a.minute,
3450
+ second = _a.second,
3451
+ isRegularInterval = _a.isRegularInterval;
3452
+ return {
3453
+ year: year,
3454
+ month: month,
3455
+ day: day,
3456
+ hour: hour,
3457
+ minute: minute,
3458
+ second: second,
3459
+ isRegularInterval: isRegularInterval
3460
+ };
3444
3461
  };
3445
3462
  /**
3446
3463
  * Shorthand functionf or getValueForIndex
@@ -1,4 +1,4 @@
1
- import { DateInterval } from './WMTime';
1
+ import { TimeInterval } from './types';
2
2
  interface WMJSDimensionConfig {
3
3
  name?: string;
4
4
  units?: string;
@@ -67,7 +67,7 @@ export default class WMJSDimension {
67
67
  * Hint about the timestep size / time resolution of this dimension.
68
68
  * @returns The dimTimeInterval
69
69
  */
70
- getDimInterval(): DateInterval;
70
+ getDimInterval(): TimeInterval | undefined;
71
71
  /**
72
72
  * Shorthand functionf or getValueForIndex
73
73
  */
@@ -12,6 +12,15 @@ export declare type LinkedInfoContent = {
12
12
  export declare type LinkedInfo = {
13
13
  linkedInfo: LinkedInfoContent;
14
14
  };
15
+ export declare type TimeInterval = {
16
+ year: number;
17
+ month: number;
18
+ day: number;
19
+ hour: number;
20
+ minute: number;
21
+ second: number;
22
+ isRegularInterval: boolean;
23
+ };
15
24
  export declare type Dimension = {
16
25
  name?: string;
17
26
  units?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/webmap",
3
- "version": "4.4.0",
3
+ "version": "4.5.0",
4
4
  "description": "GeoWeb webmap library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {