mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
17 lines
515 B
JavaScript
17 lines
515 B
JavaScript
export default function BrushEvent(type, {
|
|
sourceEvent,
|
|
target,
|
|
selection,
|
|
mode,
|
|
dispatch
|
|
}) {
|
|
Object.defineProperties(this, {
|
|
type: {value: type, enumerable: true, configurable: true},
|
|
sourceEvent: {value: sourceEvent, enumerable: true, configurable: true},
|
|
target: {value: target, enumerable: true, configurable: true},
|
|
selection: {value: selection, enumerable: true, configurable: true},
|
|
mode: {value: mode, enumerable: true, configurable: true},
|
|
_: {value: dispatch}
|
|
});
|
|
}
|