mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-15 17:54:52 +08:00
Minor formatting and refactoring
This commit is contained in:
@@ -268,7 +268,6 @@ export default class Blueprint extends IElement {
|
||||
* @param {Number} factor - Either 1 (expand) or -1 (shrink)
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Expand or shrink the grind indefinitely, the content will remain into position
|
||||
* @param {Number[]} param0 - Expand value (negative means shrink, positive means expand)
|
||||
|
||||
@@ -139,6 +139,4 @@ export default class Utility {
|
||||
}
|
||||
return [...(new Set(result.concat(...a, ...b)))]
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -9,12 +9,6 @@ export default class IdentifierEntity extends IEntity {
|
||||
}
|
||||
|
||||
constructor(options = {}) {
|
||||
// Not instanceof to pick also primitive string
|
||||
if (options.constructor === String) {
|
||||
options = {
|
||||
value: options
|
||||
}
|
||||
}
|
||||
super(options)
|
||||
/** @type {String} */ this.value
|
||||
}
|
||||
|
||||
@@ -12,11 +12,6 @@ export default class IntegerEntity extends IEntity {
|
||||
* @param {Object | Number | String} options
|
||||
*/
|
||||
constructor(options = 0) {
|
||||
if (options.constructor == Number || options.constructor == String) {
|
||||
options = {
|
||||
value: options,
|
||||
}
|
||||
}
|
||||
super(options)
|
||||
this.value = Math.round(this.value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user