GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — lowcode-engine/packages/utils/src/cursor.ts at main · lowcode-mirror/lowcode-engine Expand file tree/ Copy pathcursor.tsMore file actions 63 lines (53 loc) · 1.16 KB / Copy pathcursor.tsFile metadata and controls63 lines (53 loc) · 1.16 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 import './cursor.less'; export class Cursor { private states = new Set<string>(); setDragging(flag: boolean) { if (flag) { this.addState('dragging'); } else { this.removeState('dragging'); } } setXResizing(flag: boolean) { if (flag) { this.addState('x-resizing'); } else { this.removeState('x-resizing'); } } setYResizing(flag: boolean) { if (flag) { this.addState('y-resizing'); } else { this.removeState('y-resizing'); } } setCopy(flag: boolean) { if (flag) { this.addState('copy'); } else { this.removeState('copy'); } } isCopy() { return this.states.has('copy'); } release() { for (const state of this.states) { this.removeState(state); } } addState(state: string) { if (!this.states.has(state)) { this.states.add(state); document.documentElement.classList.add(`lc-cursor-${state}`); } } private removeState(state: string) { if (this.states.has(state)) { this.states.delete(state); document.documentElement.classList.remove(`lc-cursor-${state}`); } } } export const cursor = new Cursor(); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |