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 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.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.1.3-betaRegistry latest | 19 Sept 2022 | 0 | |
| 1.1.2 | 14 Sept 2022 | 0 | |
| 1.1.1 | 14 Aug 2022 | 0 | |
| 1.1.0 | 24 Jul 2022 | 0 | |
| 1.0.9 | 24 Jul 2022 | 0 | |
| 1.0.8 | 5 Jul 2022 | 0 | |
| 1.0.7 | 28 Jun 2022 | 0 | |
| 1.0.6 | 28 Jun 2022 | 0 | |
| 1.0.5 | 28 Jun 2022 | 0 | |
| 1.0.4 | 27 Jun 2022 | 0 | |
| 1.0.3 | 6 Jun 2022 | 0 | |
| 1.0.2 | 6 Jun 2022 | 0 | |
| 1.0.1 | 6 Jun 2022 | 0 | |
| 1.0.0 | 2 Jun 2022 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:39 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:5c3713c38e8019a5120deefb3282af26ab3d847422eb42636ab2fe8a7a7a349c