mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2026-04-04 14:37:24 +02:00
remove getStateLable function from labels.ts
This commit is contained in:
parent
9b4add5071
commit
baeab354b6
2 changed files with 1 additions and 7 deletions
|
|
@ -18,7 +18,7 @@ function extractPathPoints(pathElement) {
|
|||
function getLabelData(textElement) {
|
||||
const id = textElement.id || "";
|
||||
if (id.startsWith("stateLabel")) {
|
||||
return Labels.getStateLabel(+id.slice(10));
|
||||
return Labels.get(+id.slice(10));
|
||||
}
|
||||
// Custom labels: check for existing data-label-id attribute
|
||||
const dataLabelId = textElement.getAttribute("data-label-id");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue