mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-03-01 12:14:45 +08:00
PathSymbol => PathSymbolEntity
This commit is contained in:
16
js/entity/PathSymbolEntity.js
Normal file
16
js/entity/PathSymbolEntity.js
Normal file
@@ -0,0 +1,16 @@
|
||||
import Entity from "./Entity"
|
||||
|
||||
export default class PathSymbolEntity extends Entity {
|
||||
|
||||
static attributes = {
|
||||
value: String
|
||||
}
|
||||
|
||||
getAttributes() {
|
||||
return PathSymbolEntity.attributes
|
||||
}
|
||||
|
||||
toString() {
|
||||
return this.value
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import Entity from "./Entity"
|
||||
import Guid from "./primitive/Guid"
|
||||
import PathSymbol from "./primitive/PathSymbol"
|
||||
import PathSymbol from "./PathSymbolEntity"
|
||||
|
||||
export default class PinReferenceEntity extends Entity {
|
||||
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
import Primitive from "./Primitive"
|
||||
|
||||
export default class PathSymbol extends Primitive {
|
||||
|
||||
constructor(value) {
|
||||
super()
|
||||
this.value = new String(value).valueOf()
|
||||
}
|
||||
|
||||
valueOf() {
|
||||
this.value
|
||||
}
|
||||
|
||||
toString() {
|
||||
return this.value
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user