@wise/art 2.5.0 → 2.6.0-beta.10

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.
Files changed (144) hide show
  1. package/README.md +0 -1
  2. package/dist/CheckMark-31f05a78.js +39 -0
  3. package/dist/CheckMark-31f05a78.js.map +1 -0
  4. package/dist/CheckMark-ea1e541e.mjs +37 -0
  5. package/dist/CheckMark-ea1e541e.mjs.map +1 -0
  6. package/dist/Confetti-6061205f.mjs +34 -0
  7. package/dist/Confetti-6061205f.mjs.map +1 -0
  8. package/dist/Confetti-8a609ba7.js +36 -0
  9. package/dist/Confetti-8a609ba7.js.map +1 -0
  10. package/dist/Flower-15fbd072.mjs +27 -0
  11. package/dist/Flower-15fbd072.mjs.map +1 -0
  12. package/dist/Flower-7efb2e8a.js +29 -0
  13. package/dist/Flower-7efb2e8a.js.map +1 -0
  14. package/dist/Globe-2ce3125a.mjs +43 -0
  15. package/dist/Globe-2ce3125a.mjs.map +1 -0
  16. package/dist/Globe-8ffb1711.js +45 -0
  17. package/dist/Globe-8ffb1711.js.map +1 -0
  18. package/dist/Graph-031f065a.js +33 -0
  19. package/dist/Graph-031f065a.js.map +1 -0
  20. package/dist/Graph-93475293.mjs +31 -0
  21. package/dist/Graph-93475293.mjs.map +1 -0
  22. package/dist/Illustration.css +19 -0
  23. package/dist/Jars-6a7a4725.mjs +50 -0
  24. package/dist/Jars-6a7a4725.mjs.map +1 -0
  25. package/dist/Jars-e516b2e0.js +52 -0
  26. package/dist/Jars-e516b2e0.js.map +1 -0
  27. package/dist/Lock-2aa09874.js +43 -0
  28. package/dist/Lock-2aa09874.js.map +1 -0
  29. package/dist/Lock-adefc539.mjs +41 -0
  30. package/dist/Lock-adefc539.mjs.map +1 -0
  31. package/dist/MagnifyingGlass-11ae91ce.mjs +30 -0
  32. package/dist/MagnifyingGlass-11ae91ce.mjs.map +1 -0
  33. package/dist/MagnifyingGlass-c2cb3012.js +32 -0
  34. package/dist/MagnifyingGlass-c2cb3012.js.map +1 -0
  35. package/dist/Marble-894fdc66.mjs +42 -0
  36. package/dist/Marble-894fdc66.mjs.map +1 -0
  37. package/dist/Marble-b62c2381.js +44 -0
  38. package/dist/Marble-b62c2381.js.map +1 -0
  39. package/dist/MarbleCard-5bab8f72.mjs +45 -0
  40. package/dist/MarbleCard-5bab8f72.mjs.map +1 -0
  41. package/dist/MarbleCard-89edbd62.js +47 -0
  42. package/dist/MarbleCard-89edbd62.js.map +1 -0
  43. package/dist/MultiCurrency-705852bd.js +63 -0
  44. package/dist/MultiCurrency-705852bd.js.map +1 -0
  45. package/dist/MultiCurrency-b663ef12.mjs +61 -0
  46. package/dist/MultiCurrency-b663ef12.mjs.map +1 -0
  47. package/dist/Plane-2f1801cc.mjs +37 -0
  48. package/dist/Plane-2f1801cc.mjs.map +1 -0
  49. package/dist/Plane-ce2952f8.js +39 -0
  50. package/dist/Plane-ce2952f8.js.map +1 -0
  51. package/dist/Scene-05003c4d.js +50 -0
  52. package/dist/Scene-05003c4d.js.map +1 -0
  53. package/dist/Scene-3ce02f6d.mjs +48 -0
  54. package/dist/Scene-3ce02f6d.mjs.map +1 -0
  55. package/dist/common.d.ts +15 -9
  56. package/dist/common.d.ts.map +1 -0
  57. package/dist/flags/Flag.d.ts +13 -12
  58. package/dist/flags/Flag.d.ts.map +1 -0
  59. package/dist/flags/index.d.ts +3 -2
  60. package/dist/flags/index.d.ts.map +1 -0
  61. package/dist/illustrations/Illustration.d.ts +21 -20
  62. package/dist/illustrations/Illustration.d.ts.map +1 -0
  63. package/dist/illustrations/index.d.ts +5 -4
  64. package/dist/illustrations/index.d.ts.map +1 -0
  65. package/dist/illustrations/metadata.d.ts +69 -68
  66. package/dist/illustrations/metadata.d.ts.map +1 -0
  67. package/dist/illustrations3d/Illustration3d.d.ts +11 -0
  68. package/dist/illustrations3d/Illustration3d.d.ts.map +1 -0
  69. package/dist/illustrations3d/Scene.d.ts +9 -0
  70. package/dist/illustrations3d/Scene.d.ts.map +1 -0
  71. package/dist/illustrations3d/index.d.ts +5 -0
  72. package/dist/illustrations3d/index.d.ts.map +1 -0
  73. package/dist/illustrations3d/models/CheckMark.d.ts +4 -0
  74. package/dist/illustrations3d/models/CheckMark.d.ts.map +1 -0
  75. package/dist/illustrations3d/models/Confetti.d.ts +4 -0
  76. package/dist/illustrations3d/models/Confetti.d.ts.map +1 -0
  77. package/dist/illustrations3d/models/Flower.d.ts +4 -0
  78. package/dist/illustrations3d/models/Flower.d.ts.map +1 -0
  79. package/dist/illustrations3d/models/Globe.d.ts +4 -0
  80. package/dist/illustrations3d/models/Globe.d.ts.map +1 -0
  81. package/dist/illustrations3d/models/Graph.d.ts +4 -0
  82. package/dist/illustrations3d/models/Graph.d.ts.map +1 -0
  83. package/dist/illustrations3d/models/Jars.d.ts +4 -0
  84. package/dist/illustrations3d/models/Jars.d.ts.map +1 -0
  85. package/dist/illustrations3d/models/Lock.d.ts +4 -0
  86. package/dist/illustrations3d/models/Lock.d.ts.map +1 -0
  87. package/dist/illustrations3d/models/MagnifyingGlass.d.ts +4 -0
  88. package/dist/illustrations3d/models/MagnifyingGlass.d.ts.map +1 -0
  89. package/dist/illustrations3d/models/Marble.d.ts +4 -0
  90. package/dist/illustrations3d/models/Marble.d.ts.map +1 -0
  91. package/dist/illustrations3d/models/MarbleCard.d.ts +4 -0
  92. package/dist/illustrations3d/models/MarbleCard.d.ts.map +1 -0
  93. package/dist/illustrations3d/models/MultiCurrency.d.ts +4 -0
  94. package/dist/illustrations3d/models/MultiCurrency.d.ts.map +1 -0
  95. package/dist/illustrations3d/models/Plane.d.ts +4 -0
  96. package/dist/illustrations3d/models/Plane.d.ts.map +1 -0
  97. package/dist/illustrations3d/utils.d.ts +9 -0
  98. package/dist/illustrations3d/utils.d.ts.map +1 -0
  99. package/dist/index-65e9686e.mjs +325 -0
  100. package/dist/index-65e9686e.mjs.map +1 -0
  101. package/dist/index-897e0762.js +332 -0
  102. package/dist/index-897e0762.js.map +1 -0
  103. package/dist/index.d.ts +10 -6
  104. package/dist/index.d.ts.map +1 -0
  105. package/dist/index.js +21 -1
  106. package/dist/index.js.map +1 -1
  107. package/dist/index.mjs +5 -0
  108. package/dist/index.mjs.map +1 -0
  109. package/package.json +48 -24
  110. package/src/common.ts +17 -0
  111. package/src/flags/Flag.stories.tsx +19 -0
  112. package/src/flags/Flag.tsx +40 -0
  113. package/src/flags/index.ts +2 -0
  114. package/src/illustrations/Illustration.css +27 -0
  115. package/src/illustrations/Illustration.stories.tsx +33 -0
  116. package/src/illustrations/Illustration.tsx +95 -0
  117. package/src/illustrations/index.ts +5 -0
  118. package/src/illustrations/metadata.ts +141 -0
  119. package/src/illustrations3d/Illustration3d.stories.tsx +89 -0
  120. package/src/illustrations3d/Illustration3d.tsx +133 -0
  121. package/src/illustrations3d/Scene.tsx +54 -0
  122. package/src/illustrations3d/index.ts +6 -0
  123. package/src/illustrations3d/models/CheckMark.tsx +30 -0
  124. package/src/illustrations3d/models/Confetti.tsx +29 -0
  125. package/src/illustrations3d/models/Flower.tsx +24 -0
  126. package/src/illustrations3d/models/Globe.tsx +41 -0
  127. package/src/illustrations3d/models/Graph.tsx +26 -0
  128. package/src/illustrations3d/models/Jars.tsx +46 -0
  129. package/src/illustrations3d/models/Lock.tsx +38 -0
  130. package/src/illustrations3d/models/MagnifyingGlass.tsx +30 -0
  131. package/src/illustrations3d/models/Marble.tsx +56 -0
  132. package/src/illustrations3d/models/MarbleCard.tsx +61 -0
  133. package/src/illustrations3d/models/MultiCurrency.tsx +57 -0
  134. package/src/illustrations3d/models/Plane.tsx +32 -0
  135. package/src/illustrations3d/utils.ts +68 -0
  136. package/src/index.ts +12 -0
  137. package/dist/flags/Flag.stories.d.ts +0 -6
  138. package/dist/illustrations/Illustration.stories.d.ts +0 -19
  139. package/dist/index.modern.mjs +0 -2
  140. package/dist/index.modern.mjs.map +0 -1
  141. package/dist/index.module.js +0 -2
  142. package/dist/index.module.js.map +0 -1
  143. package/dist/index.umd.js +0 -2
  144. package/dist/index.umd.js.map +0 -1
package/README.md CHANGED
@@ -20,7 +20,6 @@ This package relies on following peer dependencies:
20
20
 
21
21
  - `react`
22
22
  - `react-dom`
23
- - `classnames`
24
23
 
25
24
  ## Illustrations
26
25
 
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ var drei = require('@react-three/drei');
4
+ var fiber = require('@react-three/fiber');
5
+ var react = require('react');
6
+ var three = require('three');
7
+ var index = require('./index-897e0762.js');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+ require('clsx');
10
+
11
+ const CheckMark = () => {
12
+ const modelRef = react.useRef();
13
+ const model = drei.useGLTF(index.defineSrc('check-mark.gltf'));
14
+ const {
15
+ animations,
16
+ scene
17
+ } = model;
18
+ const lights = fiber.useLoader(three.ObjectLoader, index.defineSrc('check-mark-light.json'));
19
+ const {
20
+ mixer,
21
+ clips
22
+ } = drei.useAnimations(animations, modelRef);
23
+ fiber.useFrame(() => {
24
+ model.materials['Standard'].map.offset.x += -0.0025;
25
+ mixer.clipAction(clips[0]).play().setLoop(three.LoopOnce, 1);
26
+ });
27
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
28
+ children: [/*#__PURE__*/jsxRuntime.jsx("primitive", {
29
+ ref: modelRef,
30
+ scale: 1.4,
31
+ object: scene
32
+ }), /*#__PURE__*/jsxRuntime.jsx("primitive", {
33
+ object: lights
34
+ })]
35
+ });
36
+ };
37
+
38
+ exports.default = CheckMark;
39
+ //# sourceMappingURL=CheckMark-31f05a78.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckMark-31f05a78.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,37 @@
1
+ import { useGLTF, useAnimations } from '@react-three/drei';
2
+ import { useLoader, useFrame } from '@react-three/fiber';
3
+ import { useRef } from 'react';
4
+ import { ObjectLoader, LoopOnce } from 'three';
5
+ import { d as defineSrc } from './index-65e9686e.mjs';
6
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
7
+ import 'clsx';
8
+
9
+ const CheckMark = () => {
10
+ const modelRef = useRef();
11
+ const model = useGLTF(defineSrc('check-mark.gltf'));
12
+ const {
13
+ animations,
14
+ scene
15
+ } = model;
16
+ const lights = useLoader(ObjectLoader, defineSrc('check-mark-light.json'));
17
+ const {
18
+ mixer,
19
+ clips
20
+ } = useAnimations(animations, modelRef);
21
+ useFrame(() => {
22
+ model.materials['Standard'].map.offset.x += -0.0025;
23
+ mixer.clipAction(clips[0]).play().setLoop(LoopOnce, 1);
24
+ });
25
+ return /*#__PURE__*/jsxs(Fragment, {
26
+ children: [/*#__PURE__*/jsx("primitive", {
27
+ ref: modelRef,
28
+ scale: 1.4,
29
+ object: scene
30
+ }), /*#__PURE__*/jsx("primitive", {
31
+ object: lights
32
+ })]
33
+ });
34
+ };
35
+
36
+ export { CheckMark as default };
37
+ //# sourceMappingURL=CheckMark-ea1e541e.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckMark-ea1e541e.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,34 @@
1
+ import { useGLTF, useAnimations } from '@react-three/drei';
2
+ import { useLoader, useFrame } from '@react-three/fiber';
3
+ import { useRef } from 'react';
4
+ import { ObjectLoader, LoopOnce } from 'three';
5
+ import { d as defineSrc } from './index-65e9686e.mjs';
6
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
7
+ import 'clsx';
8
+
9
+ const Confetti = () => {
10
+ const ref = useRef();
11
+ const model = useGLTF(defineSrc('confetti.gltf'));
12
+ const lights = useLoader(ObjectLoader, defineSrc('confetti-light.json'));
13
+ const {
14
+ mixer,
15
+ clips
16
+ } = useAnimations(model.animations, ref);
17
+ useFrame(() => {
18
+ model.materials['Tapestry WebGL'].map.offset.x += -0.0015;
19
+ mixer.clipAction(clips[0]).play().setLoop(LoopOnce, 1);
20
+ });
21
+ return /*#__PURE__*/jsxs(Fragment, {
22
+ children: [/*#__PURE__*/jsx("primitive", {
23
+ ref: ref,
24
+ scale: 1.5,
25
+ position: [0, 1.5, 0],
26
+ object: model.scene
27
+ }), /*#__PURE__*/jsx("primitive", {
28
+ object: lights
29
+ })]
30
+ });
31
+ };
32
+
33
+ export { Confetti as default };
34
+ //# sourceMappingURL=Confetti-6061205f.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Confetti-6061205f.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ var drei = require('@react-three/drei');
4
+ var fiber = require('@react-three/fiber');
5
+ var react = require('react');
6
+ var three = require('three');
7
+ var index = require('./index-897e0762.js');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+ require('clsx');
10
+
11
+ const Confetti = () => {
12
+ const ref = react.useRef();
13
+ const model = drei.useGLTF(index.defineSrc('confetti.gltf'));
14
+ const lights = fiber.useLoader(three.ObjectLoader, index.defineSrc('confetti-light.json'));
15
+ const {
16
+ mixer,
17
+ clips
18
+ } = drei.useAnimations(model.animations, ref);
19
+ fiber.useFrame(() => {
20
+ model.materials['Tapestry WebGL'].map.offset.x += -0.0015;
21
+ mixer.clipAction(clips[0]).play().setLoop(three.LoopOnce, 1);
22
+ });
23
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
24
+ children: [/*#__PURE__*/jsxRuntime.jsx("primitive", {
25
+ ref: ref,
26
+ scale: 1.5,
27
+ position: [0, 1.5, 0],
28
+ object: model.scene
29
+ }), /*#__PURE__*/jsxRuntime.jsx("primitive", {
30
+ object: lights
31
+ })]
32
+ });
33
+ };
34
+
35
+ exports.default = Confetti;
36
+ //# sourceMappingURL=Confetti-8a609ba7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Confetti-8a609ba7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,27 @@
1
+ import { useGLTF } from '@react-three/drei';
2
+ import { useLoader, useFrame } from '@react-three/fiber';
3
+ import { ObjectLoader } from 'three';
4
+ import { d as defineSrc } from './index-65e9686e.mjs';
5
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
6
+ import 'react';
7
+ import 'clsx';
8
+
9
+ const Flower = () => {
10
+ const model = useGLTF(defineSrc('flower.gltf'));
11
+ const lights = useLoader(ObjectLoader, defineSrc('flower-light.json'));
12
+ useFrame(() => {
13
+ model.materials['Tapestry WebGL'].map.offset.x += -0.001;
14
+ });
15
+ return /*#__PURE__*/jsxs(Fragment, {
16
+ children: [/*#__PURE__*/jsx("primitive", {
17
+ scale: 1.3,
18
+ position: [0, -9, 0],
19
+ object: model.scene
20
+ }), /*#__PURE__*/jsx("primitive", {
21
+ object: lights
22
+ })]
23
+ });
24
+ };
25
+
26
+ export { Flower as default };
27
+ //# sourceMappingURL=Flower-15fbd072.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Flower-15fbd072.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ var drei = require('@react-three/drei');
4
+ var fiber = require('@react-three/fiber');
5
+ var three = require('three');
6
+ var index = require('./index-897e0762.js');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+ require('react');
9
+ require('clsx');
10
+
11
+ const Flower = () => {
12
+ const model = drei.useGLTF(index.defineSrc('flower.gltf'));
13
+ const lights = fiber.useLoader(three.ObjectLoader, index.defineSrc('flower-light.json'));
14
+ fiber.useFrame(() => {
15
+ model.materials['Tapestry WebGL'].map.offset.x += -0.001;
16
+ });
17
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
18
+ children: [/*#__PURE__*/jsxRuntime.jsx("primitive", {
19
+ scale: 1.3,
20
+ position: [0, -9, 0],
21
+ object: model.scene
22
+ }), /*#__PURE__*/jsxRuntime.jsx("primitive", {
23
+ object: lights
24
+ })]
25
+ });
26
+ };
27
+
28
+ exports.default = Flower;
29
+ //# sourceMappingURL=Flower-7efb2e8a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Flower-7efb2e8a.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,43 @@
1
+ import { useGLTF } from '@react-three/drei';
2
+ import { useLoader, useFrame } from '@react-three/fiber';
3
+ import { ObjectLoader, TextureLoader } from 'three';
4
+ import { d as defineSrc } from './index-65e9686e.mjs';
5
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
6
+ import 'react';
7
+ import 'clsx';
8
+
9
+ const Globe = () => {
10
+ const {
11
+ scene
12
+ } = useGLTF(defineSrc('globe.gltf'));
13
+ const lights = useLoader(ObjectLoader, defineSrc('globe-light.json'));
14
+ const wiseLogo = useLoader(TextureLoader, defineSrc('wise-flag-map-bump.jpg'));
15
+ const planet = scene.getObjectByName('Globe');
16
+ const orbit = scene.getObjectByName('Coins_Axis_Rotation_Animate');
17
+ scene.traverse(child => {
18
+ if (child.name.startsWith('Coin_')) {
19
+ const mesh = child;
20
+ const material = mesh.material;
21
+ material.bumpMap = wiseLogo;
22
+ material.bumpMap.flipY = false;
23
+ mesh.castShadow = false;
24
+ mesh.receiveShadow = false;
25
+ }
26
+ });
27
+ useFrame(() => {
28
+ orbit.rotation.y += 0.002;
29
+ planet.material.map.offset.x += -0.0002;
30
+ });
31
+ return /*#__PURE__*/jsxs(Fragment, {
32
+ children: [/*#__PURE__*/jsx("primitive", {
33
+ position: [0, -10, 0],
34
+ scale: 1.3,
35
+ object: scene
36
+ }), /*#__PURE__*/jsx("primitive", {
37
+ object: lights
38
+ })]
39
+ });
40
+ };
41
+
42
+ export { Globe as default };
43
+ //# sourceMappingURL=Globe-2ce3125a.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Globe-2ce3125a.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ var drei = require('@react-three/drei');
4
+ var fiber = require('@react-three/fiber');
5
+ var three = require('three');
6
+ var index = require('./index-897e0762.js');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+ require('react');
9
+ require('clsx');
10
+
11
+ const Globe = () => {
12
+ const {
13
+ scene
14
+ } = drei.useGLTF(index.defineSrc('globe.gltf'));
15
+ const lights = fiber.useLoader(three.ObjectLoader, index.defineSrc('globe-light.json'));
16
+ const wiseLogo = fiber.useLoader(three.TextureLoader, index.defineSrc('wise-flag-map-bump.jpg'));
17
+ const planet = scene.getObjectByName('Globe');
18
+ const orbit = scene.getObjectByName('Coins_Axis_Rotation_Animate');
19
+ scene.traverse(child => {
20
+ if (child.name.startsWith('Coin_')) {
21
+ const mesh = child;
22
+ const material = mesh.material;
23
+ material.bumpMap = wiseLogo;
24
+ material.bumpMap.flipY = false;
25
+ mesh.castShadow = false;
26
+ mesh.receiveShadow = false;
27
+ }
28
+ });
29
+ fiber.useFrame(() => {
30
+ orbit.rotation.y += 0.002;
31
+ planet.material.map.offset.x += -0.0002;
32
+ });
33
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
34
+ children: [/*#__PURE__*/jsxRuntime.jsx("primitive", {
35
+ position: [0, -10, 0],
36
+ scale: 1.3,
37
+ object: scene
38
+ }), /*#__PURE__*/jsxRuntime.jsx("primitive", {
39
+ object: lights
40
+ })]
41
+ });
42
+ };
43
+
44
+ exports.default = Globe;
45
+ //# sourceMappingURL=Globe-8ffb1711.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Globe-8ffb1711.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ var drei = require('@react-three/drei');
4
+ var fiber = require('@react-three/fiber');
5
+ var three = require('three');
6
+ var index = require('./index-897e0762.js');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+ require('react');
9
+ require('clsx');
10
+
11
+ const Graph = () => {
12
+ const model = drei.useGLTF(index.defineSrc(`graph.gltf`));
13
+ const lights = fiber.useLoader(three.ObjectLoader, index.defineSrc('graph-light.json'));
14
+ fiber.useFrame(() => {
15
+ const {
16
+ offset
17
+ } = model.materials['Standard '].map;
18
+ offset.x += -0.0015;
19
+ offset.y += 0.0015;
20
+ });
21
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
22
+ children: [/*#__PURE__*/jsxRuntime.jsx("primitive", {
23
+ scale: 1.3,
24
+ position: [0, -10, 0],
25
+ object: model.scene
26
+ }), /*#__PURE__*/jsxRuntime.jsx("primitive", {
27
+ object: lights
28
+ })]
29
+ });
30
+ };
31
+
32
+ exports.default = Graph;
33
+ //# sourceMappingURL=Graph-031f065a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Graph-031f065a.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,31 @@
1
+ import { useGLTF } from '@react-three/drei';
2
+ import { useLoader, useFrame } from '@react-three/fiber';
3
+ import { ObjectLoader } from 'three';
4
+ import { d as defineSrc } from './index-65e9686e.mjs';
5
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
6
+ import 'react';
7
+ import 'clsx';
8
+
9
+ const Graph = () => {
10
+ const model = useGLTF(defineSrc(`graph.gltf`));
11
+ const lights = useLoader(ObjectLoader, defineSrc('graph-light.json'));
12
+ useFrame(() => {
13
+ const {
14
+ offset
15
+ } = model.materials['Standard '].map;
16
+ offset.x += -0.0015;
17
+ offset.y += 0.0015;
18
+ });
19
+ return /*#__PURE__*/jsxs(Fragment, {
20
+ children: [/*#__PURE__*/jsx("primitive", {
21
+ scale: 1.3,
22
+ position: [0, -10, 0],
23
+ object: model.scene
24
+ }), /*#__PURE__*/jsx("primitive", {
25
+ object: lights
26
+ })]
27
+ });
28
+ };
29
+
30
+ export { Graph as default };
31
+ //# sourceMappingURL=Graph-93475293.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Graph-93475293.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -6,3 +6,22 @@ img.wds-illustration {
6
6
  .wds-illustration-padding {
7
7
  padding: 24px;
8
8
  }
9
+
10
+ .wds-illustration-3d {
11
+ display: inline-flex;
12
+ }
13
+
14
+ .wds-illustration-3d-small {
15
+ width: 200px;
16
+ height: 200px;
17
+ }
18
+
19
+ .wds-illustration-3d-medium {
20
+ width: 300px;
21
+ height: 300px;
22
+ }
23
+
24
+ .wds-illustration-3d-large {
25
+ width: 500px;
26
+ height: 500px;
27
+ }
@@ -0,0 +1,50 @@
1
+ import { useGLTF, useAnimations } from '@react-three/drei';
2
+ import { useLoader, useFrame } from '@react-three/fiber';
3
+ import { ObjectLoader, TextureLoader } from 'three';
4
+ import { d as defineSrc } from './index-65e9686e.mjs';
5
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
6
+ import 'react';
7
+ import 'clsx';
8
+
9
+ const Jars = () => {
10
+ const ref = useRef();
11
+ const model = useGLTF(defineSrc('jars.gltf'));
12
+ const lights = useLoader(ObjectLoader, defineSrc('jars-light.json'));
13
+ const wiseLogo = useLoader(TextureLoader, defineSrc('wise-flag-map-bump.jpg'));
14
+ const jars = [];
15
+ model.scene.traverse(child => {
16
+ if (child.name.startsWith('Coin_')) {
17
+ child.material.bumpMap = wiseLogo;
18
+ child.material.bumpMap.flipY = false;
19
+ child.castShadow = false;
20
+ child.receiveShadow = false;
21
+ }
22
+ if (child.name.startsWith('Jar_')) {
23
+ jars.push(child);
24
+ }
25
+ });
26
+ const {
27
+ mixer,
28
+ clips
29
+ } = useAnimations(model.animations, ref);
30
+ useFrame(() => {
31
+ mixer.clipAction(clips[0]).play();
32
+ jars.forEach(jar => {
33
+ jar.material.map.offset.x += 0.001;
34
+ jar.material.map.offset.y += 0.0;
35
+ });
36
+ });
37
+ return /*#__PURE__*/jsxs(Fragment, {
38
+ children: [/*#__PURE__*/jsx("primitive", {
39
+ ref: ref,
40
+ scale: 1.3,
41
+ position: [0, -10, 0],
42
+ object: model.scene
43
+ }), /*#__PURE__*/jsx("primitive", {
44
+ object: lights
45
+ })]
46
+ });
47
+ };
48
+
49
+ export { Jars as default };
50
+ //# sourceMappingURL=Jars-6a7a4725.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Jars-6a7a4725.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ var drei = require('@react-three/drei');
4
+ var fiber = require('@react-three/fiber');
5
+ var three = require('three');
6
+ var index = require('./index-897e0762.js');
7
+ var jsxRuntime = require('react/jsx-runtime');
8
+ require('react');
9
+ require('clsx');
10
+
11
+ const Jars = () => {
12
+ const ref = useRef();
13
+ const model = drei.useGLTF(index.defineSrc('jars.gltf'));
14
+ const lights = fiber.useLoader(three.ObjectLoader, index.defineSrc('jars-light.json'));
15
+ const wiseLogo = fiber.useLoader(three.TextureLoader, index.defineSrc('wise-flag-map-bump.jpg'));
16
+ const jars = [];
17
+ model.scene.traverse(child => {
18
+ if (child.name.startsWith('Coin_')) {
19
+ child.material.bumpMap = wiseLogo;
20
+ child.material.bumpMap.flipY = false;
21
+ child.castShadow = false;
22
+ child.receiveShadow = false;
23
+ }
24
+ if (child.name.startsWith('Jar_')) {
25
+ jars.push(child);
26
+ }
27
+ });
28
+ const {
29
+ mixer,
30
+ clips
31
+ } = drei.useAnimations(model.animations, ref);
32
+ fiber.useFrame(() => {
33
+ mixer.clipAction(clips[0]).play();
34
+ jars.forEach(jar => {
35
+ jar.material.map.offset.x += 0.001;
36
+ jar.material.map.offset.y += 0.0;
37
+ });
38
+ });
39
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
40
+ children: [/*#__PURE__*/jsxRuntime.jsx("primitive", {
41
+ ref: ref,
42
+ scale: 1.3,
43
+ position: [0, -10, 0],
44
+ object: model.scene
45
+ }), /*#__PURE__*/jsxRuntime.jsx("primitive", {
46
+ object: lights
47
+ })]
48
+ });
49
+ };
50
+
51
+ exports.default = Jars;
52
+ //# sourceMappingURL=Jars-e516b2e0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Jars-e516b2e0.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ var drei = require('@react-three/drei');
4
+ var fiber = require('@react-three/fiber');
5
+ var react = require('react');
6
+ var three = require('three');
7
+ var index = require('./index-897e0762.js');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+ require('clsx');
10
+
11
+ const Lock = () => {
12
+ const ref = react.useRef();
13
+ const model = drei.useGLTF(index.defineSrc('lock.gltf'));
14
+ const lights = fiber.useLoader(three.ObjectLoader, index.defineSrc('lock-light.json'));
15
+ model.scene.traverse(node => {
16
+ if (node.isMesh) {
17
+ node.castShadow = true;
18
+ node.receiveShadow = true;
19
+ }
20
+ });
21
+ const {
22
+ clips,
23
+ mixer
24
+ } = drei.useAnimations(model.animations, ref);
25
+ let frame = 0;
26
+ fiber.useFrame(() => {
27
+ mixer.clipAction(clips[0]).play().setLoop(three.LoopOnce, 1);
28
+ model.scene.position.y = Math.sin(frame++ * 0.04) * 0.2;
29
+ model.materials.Standard.map.offset.x += -0.001;
30
+ });
31
+ return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
32
+ children: [/*#__PURE__*/jsxRuntime.jsx("primitive", {
33
+ ref: ref,
34
+ scale: 1.4,
35
+ object: model.scene
36
+ }), /*#__PURE__*/jsxRuntime.jsx("primitive", {
37
+ object: lights
38
+ })]
39
+ });
40
+ };
41
+
42
+ exports.default = Lock;
43
+ //# sourceMappingURL=Lock-2aa09874.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Lock-2aa09874.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,41 @@
1
+ import { useGLTF, useAnimations } from '@react-three/drei';
2
+ import { useLoader, useFrame } from '@react-three/fiber';
3
+ import { useRef } from 'react';
4
+ import { ObjectLoader, LoopOnce } from 'three';
5
+ import { d as defineSrc } from './index-65e9686e.mjs';
6
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
7
+ import 'clsx';
8
+
9
+ const Lock = () => {
10
+ const ref = useRef();
11
+ const model = useGLTF(defineSrc('lock.gltf'));
12
+ const lights = useLoader(ObjectLoader, defineSrc('lock-light.json'));
13
+ model.scene.traverse(node => {
14
+ if (node.isMesh) {
15
+ node.castShadow = true;
16
+ node.receiveShadow = true;
17
+ }
18
+ });
19
+ const {
20
+ clips,
21
+ mixer
22
+ } = useAnimations(model.animations, ref);
23
+ let frame = 0;
24
+ useFrame(() => {
25
+ mixer.clipAction(clips[0]).play().setLoop(LoopOnce, 1);
26
+ model.scene.position.y = Math.sin(frame++ * 0.04) * 0.2;
27
+ model.materials.Standard.map.offset.x += -0.001;
28
+ });
29
+ return /*#__PURE__*/jsxs(Fragment, {
30
+ children: [/*#__PURE__*/jsx("primitive", {
31
+ ref: ref,
32
+ scale: 1.4,
33
+ object: model.scene
34
+ }), /*#__PURE__*/jsx("primitive", {
35
+ object: lights
36
+ })]
37
+ });
38
+ };
39
+
40
+ export { Lock as default };
41
+ //# sourceMappingURL=Lock-adefc539.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Lock-adefc539.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,30 @@
1
+ import { useGLTF } from '@react-three/drei';
2
+ import { useLoader, useFrame } from '@react-three/fiber';
3
+ import { ObjectLoader } from 'three';
4
+ import { d as defineSrc } from './index-65e9686e.mjs';
5
+ import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
6
+ import 'react';
7
+ import 'clsx';
8
+
9
+ const MagnifyingGlass = () => {
10
+ const model = useGLTF(defineSrc(`magnifying-glass.gltf`));
11
+ const lights = useLoader(ObjectLoader, defineSrc('magnifying-glass-light.json'));
12
+ const lens = model.scene.getObjectByName('Optimised_lens');
13
+ useFrame(() => {
14
+ lens.material.transparent = true;
15
+ lens.material.opacity = 0.8;
16
+ model.materials['Tapestry WebGL'].map.offset.x += -0.0006;
17
+ });
18
+ return /*#__PURE__*/jsxs(Fragment, {
19
+ children: [/*#__PURE__*/jsx("primitive", {
20
+ scale: 1.5,
21
+ position: [0, -12, 0],
22
+ object: model.scene
23
+ }), /*#__PURE__*/jsx("primitive", {
24
+ object: lights
25
+ })]
26
+ });
27
+ };
28
+
29
+ export { MagnifyingGlass as default };
30
+ //# sourceMappingURL=MagnifyingGlass-11ae91ce.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MagnifyingGlass-11ae91ce.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}