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-p0ooWJFgzZKP/Dx+rMKglNjeFTeK+EI27zHM5rbkmf8L+BcxdNn9h4xwz8dz2F5c1vy59PZewlGK1o6jRjYwTA==",
"shasum": "2ac320c001e8e7e31df551b1956635a856f69a7c",
"tarball": "https://registry.npmjs.org/3dily/-/3dily-1.1.3-beta.tgz",
"fileCount": 45,
"unpackedSize": 15603169,
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCIAXW3mHx71u2c3gDZIwUMtjT9ONpMNxHK2SgVcHRkEa+AiBWN6SaCRPBFzAylcB9a0hfWqfzzcRbIIIrOxxkeFguUQ=="
}
],
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKFvyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo3ZRAAnI8sNr8VJRmS72jpereCQfep/+ii/WNl6b6JtSCcEe/PnR4M\r\nTbqW8gdlrhvq00mWFvNsA0NKIDeSmMcfgTP9g8kTMCL1Q2KJHKWL6zJLzSfV\r\n2R9JwZ+NEiAgWi3Sb57KmgQDQn1mFZjpBKiVldhC1QuD3k1XCTp0IGHi3f39\r\nJkVjIQHMl/tAFkn2JESteTU8POVhULbLRVCO994eai9yleF2hb63hRfzjS+I\r\nRHIFudd4879D6U5LOQymjDvHK4BATD/USk2ELn7ctaSO3ETTqrdQn91UGnb4\r\nTWVCLKc0p+UvyobjY7/vlu7DPn45OKUhaKhYYnzzWB7VfQmpJVAhn60+/EUB\r\ncgA1l6EST4lREoy0zQSw9+yozt+/vv0+wXYh//1pvIwvJDBJJBVnp4K+yY6e\r\nP7rqGFUezY1A7Vz2ZBveMgx/kUjVeBGgeM3pYplHbwHw/YshX7rImS509hnG\r\nmZR7SJl/Inu4H3tYuMbV9mqZQmB5pI27YjPq2wRoxCBL1UneREFik4DfU5Db\r\nbODKo29GuoyrRZFRl6X8e7b3OYl7qA6zB0jUBQp0AAhEtEQei9+hz4I7nMZ9\r\nbcc260uDuifW/E8TEADzey5jrNLRmZIeqASn1wOxlMKjAM08Zd5xN5mNOEj7\r\nFfEZQRAEqg9a9rTo6w4MDmNpWOTu+O3Anzg=\r\n=7Aws\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:54d84f0da48e7d23fd0265430bbbc734ee0bd6b87f9351312a16988c646244ae