Current collected state Current
Observed since 20 Oct, 19:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
3dily
3DILY
3dily is a library for the use of 3dily.com customers, with which you can display 3D models and 360 images on your site.
In the examples below, the Threedily object comes either from:
Threedily will be registered as a global variable:<link href="./dist/3dily.css" rel="stylesheet" type="text/css">
<script src="./dist/3dily.min.js"></script>
<link href="./dist/3dily.css" rel="stylesheet" type="text/css">
<script type="module">
import { Threedily } from "./dist/3dily.esm.min.js";
</script>
import { Threedily } from '3dily'
import '3dily/style.css'
<div id="3dily-viewer"></div>
<script>
const opts = {
containerId: '3dily-viewer',
panelId: '6314455ed74d211b23946bbd',
productCode: 'kamran',
}
const threedily = Threedily(opts)
</script>
import { useEffect, useRef } from "react";
import { Threedily } from "3dily";
import "3dily/style.css";
const App = () => {
const threedily = useRef();
useEffect(() => {
threedily.current = Threedily({
panelId: "6314455ed74d211b23946bbd",
productCode: "kamran",
containerId: "3dily-viewer",
});
return () => threedily.current?.remove();
}, []);
return (
<div id="3dily-viewer" style={{ width: "500px", height: "500px" }}></div>
);
};
export default App;
| Name | Description | Default Value |
|---|---|---|
| containerId (required) | The container element that we render threedily tool on this element | _ |
| panelId (required) | The panel id that you can access thier product. Steps to get panelId: Log in to your panel > Profile > API key | _ |
| productCode (required) | Code of the product | _ |
| mode | which feature of threedily do you want to use for your product ? 360 or model | auto |
| shadow | shadow use for adding shadow on the printed product | false |
| variants | You specify the default variants | _ |
| background | the background of product that want to show | #FFFFFF |
| autoAR | automaticly in mobile must go to ar workspace | false |
| arUrl | the url address of ar that we want to open | Current page |
| Name | Parameter | Description |
|---|---|---|
| changeVariants | ({ layer: variant }) | You can change the variants using this method. The input parameter must be an object of layer code and variant code, for example: { leg: 'blue', feet: 'brown', ... } |
| changeBackground | (color) | The color value can be a string of hex, hsl, rgb and color name (color is required) |
| toggleShadow | (value) | The parameter is optional, if no value is given, it will be false if it is true and vice versa |
| getData | () | With this method, you can get scene data |
| remove | () | You can delete the scene with this method |
| on | (eventName, cb) | With this method, you can add a callback to the desired event |
| off | (eventName, cb) | With this method, you can remove a callback from the desired event |
| name | Arguments | Description |
|---|---|---|
| change-frame | (frame) | Event will fired on active frame change |
Download counts and popularity will appear here as the collector receives them.
Declarations describe requirements; they are not a resolved dependency graph.
Source distribution
{
"integrity": "sha512-4Lk6djz+WFqwe+UpH3dgrmo7IUsMYjj/pocs6k+Q86W3CH+kvFDEAp81pdILfTO0tLTxK1WrqRWMMKF+g//U6g==",
"shasum": "f5806cb09c9c00666d452286415d462a406116bc",
"tarball": "https://registry.npmjs.org/3dily/-/3dily-1.0.1.tgz",
"fileCount": 36,
"unpackedSize": 122325,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCIG7+oOiUpr07dDdkvICft8dFedOuo0nC4MG7CJYV5dOyAiAjj3bn7p/093D0Dj+qCFOcwD6oYXCz+XY+ZZfJnWPu2Q=="
}
],
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinY6/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp37g//Z4cAoU+42nMpcDrX7QaMZ0IFwsxmtyS3AtGIf3ALM9Ks8wGO\r\nmRH9ZcRJEVb341f8lyj1MLDGE0ZCFRCVIyxtnRR/c4nKNDI1I9pnNAq7cqEr\r\nxJvESku0+tBf4W3+24ZhIMQhsVLYQTB7ThhQfSEkjzNz+atfTjKck3th0Dx1\r\nI+6wibKBu7PhyvDgcYta37NQOJ+PBLiCzqtpjFMs+8tj33htsvD8hC/6qRTq\r\nY27TPgltnF0MjUxlvXEOwc/kX2eBPlIiLJXWXSPXanQGsOmlopHhPRSprAmH\r\nva7P0C4VB8iJg0afHNGgs4U1nRkCdnUp5hj5nNiuuc1sKbeBQWqgt06o1p+r\r\nyxOW2JUszeb8xn1ncewImiBCygFQJJqGreMfVe6SJuhVeIy48UP8MKyMwROU\r\njrSYO7j62f5DbMS0AJA2tMGahr2F27GK5WEJjKMtnkhrmXC4sVMZTqXzKOn8\r\n7CsZwUbbDX0nxqYn8uQwYc0rUPfWmX8ehvi8cdD6EmjAORHEuoz1sGEpDOdB\r\nvtCBS5Sf7LVLhbYEu939TfPPB50Td6zIM9rtbnhdjMAtd3fL19w3iNIWrHsW\r\nUQ6HZfZYFZn4XteHYDlxTIFG/z/Wro8xfCJIPqwuaNWuHVxeWiHN0Vo6PAlJ\r\npsma0Zjv6n1nchjHW/XRNxeFTkm5e+F4HM8=\r\n=yBCj\r\n-----END PGP SIGNATURE-----\r\n"
}Observed since 20 Oct, 19:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:7fecd21610a50c86eb7618a5be5b2b44a253b192ebaab0900f5fbfeb2f2bdc04