mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-18 03:27:32 +08:00
Avoid using arrays when unnecessary
This commit is contained in:
@@ -47,8 +47,12 @@ export default class IDraggableControlTemplate extends IDraggableTemplate {
|
||||
})
|
||||
}
|
||||
|
||||
/** @param {[Number, Number]} param0 */
|
||||
adjustLocation([x, y]) {
|
||||
/**
|
||||
* @param {Number} x
|
||||
* @param {Number} y
|
||||
* @returns {[Number, Number]}
|
||||
*/
|
||||
adjustLocation(x, y) {
|
||||
this.locationChangeCallback?.(x, y)
|
||||
return [x, y]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user