mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-18 11:37:33 +08:00
Make elements default constructible, testing wip
This commit is contained in:
@@ -5,10 +5,20 @@ import SelectorTemplate from "../template/SelectorTemplate"
|
||||
/** @extends {IFromToPositionedElement<Object, SelectorTemplate>} */
|
||||
export default class SelectorElement extends IFromToPositionedElement {
|
||||
|
||||
/** @type {FastSelectionModel} */
|
||||
selectionModel = null
|
||||
|
||||
constructor() {
|
||||
super({}, new SelectorTemplate())
|
||||
/** @type {FastSelectionModel} */
|
||||
this.selectionModel = null
|
||||
super()
|
||||
super.initialize({}, new SelectorTemplate())
|
||||
}
|
||||
|
||||
static newObject() {
|
||||
return new SelectorElement()
|
||||
}
|
||||
|
||||
initialize() {
|
||||
// Initialized in the constructor, this method does nothing
|
||||
}
|
||||
|
||||
/** @param {Number[]} initialPosition */
|
||||
|
||||
Reference in New Issue
Block a user