abstract-3d 0.3.2 → 0.3.3
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.
|
@@ -40,7 +40,7 @@ exports.ReactHotSpots = void 0;
|
|
|
40
40
|
exports.ReactHotSpot = ReactHotSpot;
|
|
41
41
|
const react_1 = __importDefault(require("react"));
|
|
42
42
|
// import { Html } from "@react-three/drei/web/Html";
|
|
43
|
-
|
|
43
|
+
// import { Html } from "@react-three/drei";
|
|
44
44
|
const A3d = __importStar(require("../../abstract-3d"));
|
|
45
45
|
const react_mesh_1 = require("./react-mesh");
|
|
46
46
|
const react_material_1 = require("./react-material");
|
|
@@ -73,9 +73,6 @@ function ReactHotSpot({ h, hotSpotZAdjPos, showHotSpotTexts, hotSpotTexts, activ
|
|
|
73
73
|
},
|
|
74
74
|
})),
|
|
75
75
|
react_1.default.createElement(react_mesh_1.ReactMesh, { mesh: h.mesh },
|
|
76
|
-
react_1.default.createElement(react_material_1.ReactMaterial, { id: h.id, isText: false, material: h.mesh.material, hoveredId: hoveredId })))
|
|
77
|
-
hotSpotTexts && text && (react_1.default.createElement(drei_1.Html, { position: [hsPos.x, hsPos.y, hotSpotZAdjPos], center: true },
|
|
78
|
-
react_1.default.createElement("div", { className: `air-states-container ${showHotSpotTexts ? "" : "air-states-container-hidden"}` },
|
|
79
|
-
react_1.default.createElement("span", { className: "air-states-text" }, text))))));
|
|
76
|
+
react_1.default.createElement(react_material_1.ReactMaterial, { id: h.id, isText: false, material: h.mesh.material, hoveredId: hoveredId })))));
|
|
80
77
|
}
|
|
81
78
|
//# sourceMappingURL=react-hotspot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-hotspot.js","sourceRoot":"","sources":["../../../src/renderers/react/react-hotspot.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA,oCA4DC;AAnHD,kDAA0B;AAC1B,qDAAqD;AACrD,
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4
4
|
"description": "Abstract 3D",
|
|
5
5
|
"author": "Divid AB <info@divid.se>",
|
|
6
6
|
"repository": "https://github.com/dividab/abstract-visuals/tree/master/packages/abstract-3d",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"@types/react-reconciler": "^0.28.8",
|
|
28
28
|
"@types/three": "^0.170.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "eb804c29714410deb9e2a1e9ba634505f8a15fbf"
|
|
31
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
// import { Html } from "@react-three/drei/web/Html";
|
|
3
|
-
import { Html } from "@react-three/drei";
|
|
3
|
+
// import { Html } from "@react-three/drei";
|
|
4
4
|
import * as A3d from "../../abstract-3d";
|
|
5
5
|
import { ReactMesh } from "./react-mesh";
|
|
6
6
|
import { ReactMaterial } from "./react-material";
|
|
@@ -104,13 +104,13 @@ export function ReactHotSpot({
|
|
|
104
104
|
<ReactMaterial id={h.id} isText={false} material={h.mesh.material} hoveredId={hoveredId} />
|
|
105
105
|
</ReactMesh>
|
|
106
106
|
</group>
|
|
107
|
-
{hotSpotTexts && text && (
|
|
107
|
+
{/* {hotSpotTexts && text && (
|
|
108
108
|
<Html position={[hsPos.x, hsPos.y, hotSpotZAdjPos]} center>
|
|
109
109
|
<div className={`air-states-container ${showHotSpotTexts ? "" : "air-states-container-hidden"}`}>
|
|
110
110
|
<span className="air-states-text">{text}</span>
|
|
111
111
|
</div>
|
|
112
112
|
</Html>
|
|
113
|
-
)}
|
|
113
|
+
)} */}
|
|
114
114
|
</>
|
|
115
115
|
);
|
|
116
116
|
}
|