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;
orientation?: PanOrientation;
};
doubleClick?: {
isActive: boolean;
keyEvent?: KeyEvent;
};
};
scroll?: {
zoom?: {

2
package-lock.json generated

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

4
src/index.ts

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

4
src/types.ts

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

Loading…
Cancel
Save