Closeable color picker window

This commit is contained in:
barsdeveloper
2022-11-06 17:44:50 +01:00
parent 5183aae21b
commit b86d952e3a
19 changed files with 272 additions and 203 deletions

View File

@@ -25,12 +25,12 @@ export default class IInput {
* @param {Blueprint} blueprint
* @param {Object} options
*/
constructor(target, blueprint, options) {
this.#target = target
this.#blueprint = blueprint
constructor(target, blueprint, options = {}) {
options.consumeEvent ??= false
options.listenOnFocus ??= false
options.unlistenOnTextEdit ??= false
this.#target = target
this.#blueprint = blueprint
this.options = options
let self = this
this.listenHandler = _ => self.listenEvents()