@sedoo/unidoo 0.0.66 → 0.0.67
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/unidoo.common.js +20 -20
- package/dist/unidoo.common.js.map +1 -1
- package/dist/unidoo.umd.js +20 -20
- package/dist/unidoo.umd.js.map +1 -1
- package/dist/unidoo.umd.min.js +1 -1
- package/dist/unidoo.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/unidoo-heatmap/Heatmap.js +5 -5
package/package.json
CHANGED
|
@@ -92,13 +92,13 @@ export default class CalendarHeatmap {
|
|
|
92
92
|
const maxIndex = this.times.length - 1
|
|
93
93
|
let n = index + 1
|
|
94
94
|
if (countGreaterThanZero) {
|
|
95
|
-
while (n
|
|
95
|
+
while (n <= maxIndex) {
|
|
96
96
|
const curr = this.times[n]
|
|
97
97
|
if (curr.endsWith('i')) return this._decodeDate(curr)
|
|
98
98
|
n++
|
|
99
99
|
}
|
|
100
100
|
} else {
|
|
101
|
-
while (n
|
|
101
|
+
while (n <= maxIndex) {
|
|
102
102
|
const curr = this.times[n]
|
|
103
103
|
if (!curr.endsWith('n')) return this._decodeDate(curr)
|
|
104
104
|
n++
|
|
@@ -117,16 +117,16 @@ export default class CalendarHeatmap {
|
|
|
117
117
|
let index = this.times.indexOf(this._encodeDate(date, null))
|
|
118
118
|
if (index < 0) index = this.times.indexOf(this._encodeDate(date, 1))
|
|
119
119
|
if (index < 0) index = this.times.indexOf(this._encodeDate(date, 0))
|
|
120
|
-
if (index
|
|
120
|
+
if (index >= 0) {
|
|
121
121
|
let n = index - 1
|
|
122
122
|
if (countGreaterThanZero) {
|
|
123
|
-
while (n
|
|
123
|
+
while (n >= 0) {
|
|
124
124
|
const curr = this.times[n]
|
|
125
125
|
if (curr.endsWith('i')) return this._decodeDate(curr)
|
|
126
126
|
n--
|
|
127
127
|
}
|
|
128
128
|
} else {
|
|
129
|
-
while (n
|
|
129
|
+
while (n >= 0) {
|
|
130
130
|
const curr = this.times[n]
|
|
131
131
|
if (!curr.endsWith('n')) return this._decodeDate(curr)
|
|
132
132
|
n--
|