@teachinglab/omd 0.7.15 → 0.7.16
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.
|
@@ -391,7 +391,7 @@ export class PointerTool extends Tool {
|
|
|
391
391
|
// Ensure cursor is visible and properly set
|
|
392
392
|
if (this.canvas.cursor) {
|
|
393
393
|
this.canvas.cursor.show();
|
|
394
|
-
this.canvas.cursor.setShape('
|
|
394
|
+
this.canvas.cursor.setShape('pointer'); // Use pointer arrow cursor
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
// Clear any existing selection to start fresh
|
package/canvas/ui/cursor.js
CHANGED
|
@@ -195,10 +195,12 @@ export class Cursor {
|
|
|
195
195
|
_createPointerCursor() {
|
|
196
196
|
const group = document.createElementNS('http://www.w3.org/2000/svg', 'g');
|
|
197
197
|
group.setAttribute('data-shape', 'pointer');
|
|
198
|
+
// Center the hotspot (approx 14, 5) to 0,0
|
|
199
|
+
group.setAttribute('transform', 'translate(-14, -5)');
|
|
198
200
|
|
|
199
|
-
//
|
|
201
|
+
// Custom arrow pointer cursor
|
|
200
202
|
const path = document.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
201
|
-
path.setAttribute('d', 'M
|
|
203
|
+
path.setAttribute('d', 'M 29.699219 47 C 29.578125 47 29.457031 46.976563 29.339844 46.933594 C 29.089844 46.835938 28.890625 46.644531 28.78125 46.398438 L 22.945313 32.90625 L 15.683594 39.730469 C 15.394531 40.003906 14.96875 40.074219 14.601563 39.917969 C 14.238281 39.761719 14 39.398438 14 39 L 14 6 C 14 5.601563 14.234375 5.242188 14.601563 5.082031 C 14.964844 4.925781 15.390625 4.996094 15.683594 5.269531 L 39.683594 27.667969 C 39.972656 27.9375 40.074219 28.355469 39.945313 28.726563 C 39.816406 29.101563 39.480469 29.363281 39.085938 29.398438 L 28.902344 30.273438 L 35.007813 43.585938 C 35.117188 43.824219 35.128906 44.101563 35.035156 44.351563 C 34.941406 44.601563 34.757813 44.800781 34.515625 44.910156 L 30.113281 46.910156 C 29.980469 46.96875 29.84375 47 29.699219 47 Z');
|
|
202
204
|
path.setAttribute('fill', 'white');
|
|
203
205
|
path.setAttribute('stroke', '#000000');
|
|
204
206
|
path.setAttribute('stroke-width', '1.2');
|