mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:41:34 +08:00
Constant Material nodes added
This commit is contained in:
@@ -16,7 +16,7 @@ export default class RealPinTemplate extends INumericPinTemplate {
|
||||
return html`
|
||||
<div class="ueb-pin-input-wrapper ueb-pin-input">
|
||||
<ueb-input .singleLine="${true}"
|
||||
.innerText="${Utility.minDecimals(this.element.getDefaultValue() ?? 0)}">
|
||||
.innerText="${Utility.printNumber(this.element.getDefaultValue() ?? 0)}">
|
||||
</ueb-input>
|
||||
</div>
|
||||
`
|
||||
|
||||
@@ -9,15 +9,15 @@ import Utility from "../../Utility.js"
|
||||
export default class RotatorPinTemplate extends INumericPinTemplate {
|
||||
|
||||
#getR() {
|
||||
return Utility.minDecimals(this.element.getDefaultValue()?.R ?? 0)
|
||||
return Utility.printNumber(this.element.getDefaultValue()?.R ?? 0)
|
||||
}
|
||||
|
||||
#getP() {
|
||||
return Utility.minDecimals(this.element.getDefaultValue()?.P ?? 0)
|
||||
return Utility.printNumber(this.element.getDefaultValue()?.P ?? 0)
|
||||
}
|
||||
|
||||
#getY() {
|
||||
return Utility.minDecimals(this.element.getDefaultValue()?.Y ?? 0)
|
||||
return Utility.printNumber(this.element.getDefaultValue()?.Y ?? 0)
|
||||
}
|
||||
|
||||
setDefaultValue(values = [], rawValues = values) {
|
||||
|
||||
@@ -9,11 +9,11 @@ import Vector2DEntity from "../../entity/Vector2DEntity.js"
|
||||
export default class VectorInputPinTemplate extends INumericPinTemplate {
|
||||
|
||||
#getX() {
|
||||
return Utility.minDecimals(this.element.getDefaultValue()?.X ?? 0)
|
||||
return Utility.printNumber(this.element.getDefaultValue()?.X ?? 0)
|
||||
}
|
||||
|
||||
#getY() {
|
||||
return Utility.minDecimals(this.element.getDefaultValue()?.Y ?? 0)
|
||||
return Utility.printNumber(this.element.getDefaultValue()?.Y ?? 0)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,15 +9,15 @@ import VectorEntity from "../../entity/VectorEntity.js"
|
||||
export default class VectorPinTemplate extends INumericPinTemplate {
|
||||
|
||||
#getX() {
|
||||
return Utility.minDecimals(this.element.getDefaultValue()?.X ?? 0)
|
||||
return Utility.printNumber(this.element.getDefaultValue()?.X ?? 0)
|
||||
}
|
||||
|
||||
#getY() {
|
||||
return Utility.minDecimals(this.element.getDefaultValue()?.Y ?? 0)
|
||||
return Utility.printNumber(this.element.getDefaultValue()?.Y ?? 0)
|
||||
}
|
||||
|
||||
#getZ() {
|
||||
return Utility.minDecimals(this.element.getDefaultValue()?.Z ?? 0)
|
||||
return Utility.printNumber(this.element.getDefaultValue()?.Z ?? 0)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -249,7 +249,7 @@ export default class ColorPickerWindowTemplate extends WindowTemplate {
|
||||
<div>
|
||||
<div class="ueb-horizontal-slider">
|
||||
<span class="ueb-horizontal-slider-text"
|
||||
.innerText="${Utility.minDecimals(Utility.roundDecimals(channelValue, 3))}">
|
||||
.innerText="${Utility.printNumber(Utility.roundDecimals(channelValue, 3))}">
|
||||
</span>
|
||||
<ueb-ui-slider></ueb-ui-slider>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user