forked from MapComplete/MapComplete
Merge master
This commit is contained in:
commit
7ebb3d721c
411 changed files with 21814 additions and 8717 deletions
|
@ -3,6 +3,7 @@ import { ExtraFuncParams, ExtraFunctions } from "../../Logic/ExtraFunctions"
|
|||
import LayerConfig from "./LayerConfig"
|
||||
import { SpecialVisualization } from "../../UI/SpecialVisualization"
|
||||
import SpecialVisualizations from "../../UI/SpecialVisualizations"
|
||||
import { Exception } from "sass"
|
||||
|
||||
export default class DependencyCalculator {
|
||||
public static GetTagRenderingDependencies(tr: TagRenderingConfig): string[] {
|
||||
|
@ -39,6 +40,10 @@ export default class DependencyCalculator {
|
|||
|
||||
for (let i = 0; layer.presets !== undefined && i < layer.presets.length; i++) {
|
||||
const preset = layer.presets[i]
|
||||
const snapTo = preset.preciseInput?.snapToLayers
|
||||
if (snapTo && !Array.isArray(snapTo)) {
|
||||
throw new Error("snapToLayers is not an array; it is " + snapTo)
|
||||
}
|
||||
preset.preciseInput?.snapToLayers?.forEach((id) => {
|
||||
deps.push({
|
||||
neededLayer: id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue