mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-23 06:37:29 +08:00
PinCategory case insensitive
This commit is contained in:
4
dist/ueblueprint.js
vendored
4
dist/ueblueprint.js
vendored
@@ -2225,7 +2225,7 @@ class PinEntity extends IEntity {
|
|||||||
/** @return {CSSResult} */
|
/** @return {CSSResult} */
|
||||||
pinColor() {
|
pinColor() {
|
||||||
return Configuration.pinColor[this.getType()]
|
return Configuration.pinColor[this.getType()]
|
||||||
?? Configuration.pinColor[this.PinType$PinCategory]
|
?? Configuration.pinColor[this.PinType$PinCategory.toLowerCase()]
|
||||||
?? Configuration.pinColor["default"]
|
?? Configuration.pinColor["default"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6936,7 +6936,7 @@ class PinTemplate extends ITemplate {
|
|||||||
case "Set": return SVGIcon.set
|
case "Set": return SVGIcon.set
|
||||||
case "Map": return SVGIcon.map
|
case "Map": return SVGIcon.map
|
||||||
}
|
}
|
||||||
if (this.element.entity.PinType$PinCategory === "delegate") {
|
if (this.element.entity.PinType$PinCategory.toLocaleLowerCase() === "delegate") {
|
||||||
return SVGIcon.delegate
|
return SVGIcon.delegate
|
||||||
}
|
}
|
||||||
return SVGIcon.genericPin
|
return SVGIcon.genericPin
|
||||||
|
|||||||
6
dist/ueblueprint.min.js
vendored
6
dist/ueblueprint.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -311,7 +311,7 @@ export default class PinEntity extends IEntity {
|
|||||||
/** @return {CSSResult} */
|
/** @return {CSSResult} */
|
||||||
pinColor() {
|
pinColor() {
|
||||||
return Configuration.pinColor[this.getType()]
|
return Configuration.pinColor[this.getType()]
|
||||||
?? Configuration.pinColor[this.PinType$PinCategory]
|
?? Configuration.pinColor[this.PinType$PinCategory.toLowerCase()]
|
||||||
?? Configuration.pinColor["default"]
|
?? Configuration.pinColor["default"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export default class PinTemplate extends ITemplate {
|
|||||||
case "Set": return SVGIcon.set
|
case "Set": return SVGIcon.set
|
||||||
case "Map": return SVGIcon.map
|
case "Map": return SVGIcon.map
|
||||||
}
|
}
|
||||||
if (this.element.entity.PinType$PinCategory === "delegate") {
|
if (this.element.entity.PinType$PinCategory.toLocaleLowerCase() === "delegate") {
|
||||||
return SVGIcon.delegate
|
return SVGIcon.delegate
|
||||||
}
|
}
|
||||||
return SVGIcon.genericPin
|
return SVGIcon.genericPin
|
||||||
|
|||||||
Reference in New Issue
Block a user