Browse Source

Merge branch 'double-click-event-type' into 'main'

added new event type

See merge request chartwerk/core!12
merge-requests/13/merge
rozetko 3 years ago
parent
commit
18ce429e50
  1. 2
      dist/index.js
  2. 4
      dist/types.d.ts
  3. 2
      package-lock.json
  4. 4
      src/index.ts
  5. 4
      src/types.ts

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

4
dist/types.d.ts vendored

@ -77,6 +77,10 @@ export declare type Options = {
keyEvent?: KeyEvent; keyEvent?: KeyEvent;
orientation?: PanOrientation; orientation?: PanOrientation;
}; };
doubleClick?: {
isActive: boolean;
keyEvent?: KeyEvent;
};
}; };
scroll?: { scroll?: {
zoom?: { zoom?: {

2
package-lock.json generated

@ -1,6 +1,6 @@
{ {
"name": "@chartwerk/core", "name": "@chartwerk/core",
"version": "0.3.4", "version": "0.3.5",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

4
src/index.ts

@ -66,6 +66,10 @@ const DEFAULT_OPTIONS: Options = {
keyEvent: KeyEvent.SHIFT, keyEvent: KeyEvent.SHIFT,
orientation: PanOrientation.HORIZONTAL orientation: PanOrientation.HORIZONTAL
}, },
doubleClick: {
isActive: true,
keyEvent: KeyEvent.MAIN,
},
}, },
scroll: { scroll: {
zoom: { zoom: {

4
src/types.ts

@ -69,6 +69,10 @@ export type Options = {
keyEvent?: KeyEvent; // main(or base, or smth) / shift / alt / etc keyEvent?: KeyEvent; // main(or base, or smth) / shift / alt / etc
orientation?: PanOrientation; orientation?: PanOrientation;
}, },
doubleClick?: {
isActive: boolean;
keyEvent?: KeyEvent;
},
}, },
scroll?: { scroll?: {
zoom?: { zoom?: {

Loading…
Cancel
Save