@canvas3/nuxt 0.0.4 → 0.0.6

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "canvas-nuxt-layout",
3
3
  "configKey": "canvas3Layout",
4
- "version": "0.0.4",
4
+ "version": "0.0.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.0"
@@ -108,10 +108,10 @@ export type Canvas3ImageBinding = {
108
108
  export type Canvas3ImageBindType = {
109
109
  alt: string;
110
110
  src: string;
111
- loadStrategy?: 'lazy' | 'eager' | undefined;
111
+ loadStrategy?: 'lazy' | 'eager' | 'preload' | undefined;
112
112
  shaderName?: string;
113
113
  uniforms?: MeshMaterialUniform;
114
- activateMeshUniforms: MeshMaterialUniform;
114
+ activateMeshUniforms?: MeshMaterialUniform;
115
115
  };
116
116
  declare module 'vue' {
117
117
  interface GlobalDirectives {
@@ -366,8 +366,8 @@ class Canvas3Class {
366
366
  uMeshSize: { value: new THREE.Vector2(bounds.width, bounds.height) },
367
367
  uTextureSize: {
368
368
  value: new THREE.Vector2(
369
- texture.image.naturalWidth,
370
- texture.image.naturalHeight
369
+ bitmap.width,
370
+ bitmap.height
371
371
  )
372
372
  },
373
373
  uViewport: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canvas3/nuxt",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },