cm-chessboard 8.12.12 → 8.12.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,7 +8,19 @@
8
8
  "Bash(npm publish:*)",
9
9
  "Bash(gh search:*)",
10
10
  "Skill(schedule)",
11
- "Bash(npm whoami *)"
11
+ "Bash(npm whoami *)",
12
+ "Bash(cat)",
13
+ "Bash(rm /tmp/pr165-comment.md)",
14
+ "Read(//Users/shaack/Development/repositories/MyProjects/**)",
15
+ "Bash(gh release *)",
16
+ "Bash(gh api *)",
17
+ "Bash(pkill -f \"http.server 8731\")",
18
+ "Bash(rm -f /tmp/bis-server.log)",
19
+ "Bash(rm /tmp/issue56.md)",
20
+ "Bash([ -d \"$d\" ])",
21
+ "Bash(pkill -f \"http.server 8732\")",
22
+ "Bash(rm -f /tmp/bsm-server.log)",
23
+ "Bash(rm -f c26.md c19.md)"
12
24
  ],
13
25
  "deny": [],
14
26
  "ask": []
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cm-chessboard",
3
- "version": "8.12.12",
3
+ "version": "8.12.14",
4
4
  "description": "A JavaScript chessboard which is lightweight, ES6 module based, responsive, SVG rendered and without dependencies.",
5
5
  "keywords": [
6
6
  "chess",
@@ -29,6 +29,6 @@
29
29
  },
30
30
  "homepage": "https://github.com/shaack/cm-chessboard#readme",
31
31
  "devDependencies": {
32
- "teevi": "^2.2.4"
32
+ "teevi": "^2.4.1"
33
33
  }
34
34
  }
@@ -3,7 +3,7 @@
3
3
  * Combines Arrows and Markers to draw/toggle arrows and circle markers with right-click + modifiers.
4
4
  * Colors:
5
5
  * - Green: Right-click
6
- * - Blue: Alt + Right-click
6
+ * - Blue: Alt, Cmd or AltGr + Right-click
7
7
  * - Red: Shift + Right-click
8
8
  * - Orange: Shift + Alt + Right-click
9
9
  * Redrawing the same arrow or marker removes it.
@@ -65,8 +65,8 @@ export class RightClickAnnotator extends Extension {
65
65
  })
66
66
 
67
67
  // register public API
68
- this.chessboard.getAnnotations = this.getAnnotations.bind(this.chessboard)
69
- this.chessboard.setAnnotations = this.setAnnotations.bind(this.chessboard)
68
+ this.chessboard.getAnnotations = this.getAnnotations.bind(this)
69
+ this.chessboard.setAnnotations = this.setAnnotations.bind(this)
70
70
  }
71
71
 
72
72
  getAnnotations() {
@@ -120,7 +120,7 @@ export class RightClickAnnotator extends Extension {
120
120
  this.dragStart = {
121
121
  square,
122
122
  modifiers: {
123
- alt: event.altKey,
123
+ alt: event.altKey || event.metaKey || (event.getModifierState && event.getModifierState("AltGraph")),
124
124
  shift: event.shiftKey || event.ctrlKey
125
125
  }
126
126
  }