mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-02 05:04:43 +08:00
Minor fixes
This commit is contained in:
@@ -42,7 +42,7 @@ export default class NodeTemplate extends SelectableDraggableTemplate {
|
||||
height="16"
|
||||
fill="currentColor"
|
||||
class="ueb-node-expansion-icon"
|
||||
viewBox="4 2 24 24"
|
||||
viewBox="4 4 24 24"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
|
||||
@@ -1,11 +1,21 @@
|
||||
// @ts-check
|
||||
|
||||
import PinTemplate from "./PinTemplate"
|
||||
import IInputPinTemplate from "./IInputPinTemplate"
|
||||
|
||||
/**
|
||||
* @typedef {import("../element/PinElement").default} PinElement
|
||||
*/
|
||||
|
||||
export default class RealPinTemplate extends PinTemplate {
|
||||
export default class RealPinTemplate extends IInputPinTemplate {
|
||||
|
||||
|
||||
/**
|
||||
* @param {PinElement} pin
|
||||
*/
|
||||
acceptInput(pin) {
|
||||
const value = parseFloat(this.getInput(pin))
|
||||
pin.entity.DefaultValue = isNaN(value)
|
||||
? pin.entity.AutogeneratedDefaultValue
|
||||
: value.toString()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user