forked from MapComplete/MapComplete
Refactoring: split 'Utils' into multiple files; fix some stray uppercase-method names
This commit is contained in:
parent
81be4db044
commit
3ec89826e4
97 changed files with 884 additions and 921 deletions
|
@ -3,8 +3,7 @@ import TagRenderingConfig from "../../Models/ThemeConfig/TagRenderingConfig"
|
|||
import { TagUtils } from "../../Logic/Tags/TagUtils"
|
||||
import { OsmFeature } from "../../Models/OsmFeature"
|
||||
import { Utils } from "../../Utils"
|
||||
import { labels } from "wikibase-sdk/dist/src/helpers/simplify"
|
||||
import { isInteger } from "tailwind-merge/dist/lib/validators"
|
||||
import { Lists } from "../../Utils/Lists"
|
||||
|
||||
class ChartJsColours {
|
||||
public static readonly unknownColor = "rgba(128, 128, 128, 0.2)"
|
||||
|
@ -243,7 +242,7 @@ export class ChartJsUtils {
|
|||
if (options?.period === "month") {
|
||||
trimmedDays = trimmedDays.map((d) => d.substring(0, 7))
|
||||
}
|
||||
trimmedDays = Utils.Dedup(trimmedDays)
|
||||
trimmedDays = Lists.dedup(trimmedDays)
|
||||
|
||||
for (let i = 0; i < labels.length; i++) {
|
||||
const label = labels[i]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue