logbubble 0.2.1 → 0.2.2

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.
package/README.md CHANGED
@@ -68,11 +68,11 @@ npm install logbubble
68
68
 
69
69
  ```javascript
70
70
  // vite.config.js
71
- import { logbubbleVitePlugin } from "logbubble/vite-logbubble-plugin";
71
+ import logBubblePlugin from "logbubble/vite-logbubble-plugin";
72
72
 
73
73
  export default {
74
74
  plugins: [
75
- logbubbleVitePlugin(),
75
+ logBubblePlugin(),
76
76
  // ...other plugins
77
77
  ],
78
78
  };
@@ -12,8 +12,8 @@ export class DragHandler {
12
12
  this.didActuallyDrag = false;
13
13
  this.buttonX = 0;
14
14
  this.buttonY = 0;
15
- this.buttonX = window.innerWidth - 58;
16
- this.buttonY = 10;
15
+ this.buttonX = window.innerWidth - 72;
16
+ this.buttonY = 24;
17
17
  this.updateButtonPosition();
18
18
  }
19
19
  attachListeners() {
@@ -94,7 +94,7 @@ export class DragHandler {
94
94
  }
95
95
  snapToCorner() {
96
96
  const buttonSize = 48;
97
- const margin = 10;
97
+ const margin = 24;
98
98
  const centerX = this.buttonX + buttonSize / 2;
99
99
  const centerY = this.buttonY + buttonSize / 2;
100
100
  const isLeftHalf = centerX < window.innerWidth / 2;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "logbubble",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "LogBubble: Web floating logger for network and console logs",
5
5
  "main": "dist/init.js",
6
6
  "types": "dist/init.d.ts",