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-RTdCMP24WUc9X+BN8vhEAY2bfkAPW9phJpJQDJCz6XH9AHaPf6j5yZ3eJkGGhmSSxc0Y+Ys8NGntvSq2QmVvvA==",
"shasum": "aead594610eb77e05addc7e30cd527f5c1d6a23a",
"tarball": "https://registry.npmjs.org/3dily/-/3dily-1.0.9.tgz",
"fileCount": 37,
"unpackedSize": 128924,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCIHZVHIFZzVGn2f4oYyaHHrg+9c4gcN7N5vTbMrh2AHizAiBaczGMjDRgaJ2UEsl2sTdTLCaUyVvQU/kAqMrVc8OiWw=="
}
],
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi3QPNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrq8A//Qk0XY2A7oNz9xTAlR9zuGA2piAHx88NgMjnTnUxGWMo5xOmg\r\nuEaq6eBSlo0GeCeiBZvUy83EjIutpedrWErwpSYRpOCLukBTsvFjPtMtFOC1\r\nDkEJaZd8TN4TYv7P/bM02bjOv9Bwqn1rRmxbS2TmZvUdh60ppzuElSLowsmW\r\nOYb0qSDiLyuVNN9rDTW97WdvH/ejPEABqnxP2rZ0AG2ewkpKR8xJ9Ej9c7NH\r\neseBMkhCc9/CTKc0SdqilVUY6QUgxtEGGTnQJXapPN6smtZNFP3YWnulhJu9\r\nlUG4jt0Z6bgJdGR1EhzrfBkUToTIjbF2N89srtDyX93zQHcn1e9RfodX5tXT\r\nopLaVnGyFSjInfNF9kQENUVbGeqBPq+dzfclUBkfauNVMH1Y8dm3MYOgoXRJ\r\nh+HO2MoGDAPPSD5x2HL5x0S15e75W7jlDwi3fmOodDhKGGbThTDXHZHk7JYG\r\nQjuX6MLcCumb//k7rBUM8DF2SkqWssmRoNB2C6l2WyfwZ0RnxmqFk+A0VWq6\r\n/L6KR0xPld1ZVMiRqUdLxNYJkco5jOPTV8A24BjZXSj0twSgS9JbokHNmQPU\r\nxGe+E/74sOR2A8daK5C8e6IpSkObS3+HpFSG+SyUKVqPi2QYwq1Kg33ZiWoS\r\nVuxLmDEJ4DXDKb0Tw2RklzwQ5G2kpFr+udU=\r\n=+Gso\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:470dba2298af331a507a2e650b296fcdf50cacef78a44af273d2c11710e86e0c