@ivanalbizu/astro-webgl-hover 0.0.2 → 0.0.5

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Ivan Alabizu
3
+ Copyright (c) 2025 Ivan Albizu
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,18 +1,18 @@
1
- # astro-webgl-hover
1
+ # @ivanalbizu/astro-webgl-hover
2
2
 
3
3
  WebGL image hover effects for Astro with displacement transitions using Curtains.js and GSAP.
4
4
 
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install astro-webgl-hover curtainsjs gsap
8
+ npm install @ivanalbizu/astro-webgl-hover
9
9
  ```
10
10
 
11
11
  ## Usage
12
12
 
13
13
  ```astro
14
14
  ---
15
- import { WebglHoverImages, WebglHoverImage } from 'astro-webgl-hover';
15
+ import { WebglHoverImages, WebglHoverImage } from '@ivanalbizu/astro-webgl-hover';
16
16
  ---
17
17
 
18
18
  <WebglHoverImages>
@@ -83,7 +83,7 @@ Enable `debug={true}` on `<WebglHoverImages>` to show a control panel where you
83
83
  You can also import the library directly for more control:
84
84
 
85
85
  ```typescript
86
- import { initWebglHover, WebglHover } from 'astro-webgl-hover';
86
+ import { initWebglHover, WebglHover } from '@ivanalbizu/astro-webgl-hover';
87
87
 
88
88
  // Initialize manually
89
89
  const instances = initWebglHover();
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@ivanalbizu/astro-webgl-hover",
3
- "version": "0.0.2",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "description": "WebGL image hover effects for Astro with displacement transitions using Curtains.js and GSAP",
6
- "author": "Ivan Alabizu",
6
+ "author": "Ivan Albizu",
7
7
  "license": "MIT",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "https://github.com/ivanalabizu/astro-webgl-hover"
10
+ "url": "https://github.com/ivanalbizu/astro-webgl-hover"
11
11
  },
12
12
  "keywords": [
13
13
  "astro",
@@ -6,8 +6,8 @@ import { Plane } from 'curtainsjs';
6
6
  import gsap from 'gsap';
7
7
  import type { WebglHoverOptions } from './config';
8
8
  import { degreesToRadians, calculateDisplacementVector } from './utils';
9
- import vertexShader from '@/shaders/vertex.glsl?raw';
10
- import fragmentShader from '@/shaders/fragment.glsl?raw';
9
+ import vertexShader from '../../shaders/vertex.glsl?raw';
10
+ import fragmentShader from '../../shaders/fragment.glsl?raw';
11
11
 
12
12
  export class WebglHover {
13
13
  private webGLCurtain: any;