
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@onirix/node-inspector
Advanced tools
Onirix Node Inspector allows you to highlight specific parts of your 3D models and link useful and readable information to the users of your experiences.
OnirixNodeInspector
is a JavaScript library designed to interact with the Onirix Embed SDK. It provides functionality to load, inspect, and highlight nodes in a 3D scene, display associated data sheets for selected nodes, and manage interactions with nodes in the scene.
To learn more about this module visit our documentation.
You can install the library via npm:
npm install @onirix/node-inspector
Alternatively, include the dependency in the HTML tag:
<head>
<script src="https://unpkg.com/@onirix/node-inspector@1.0.0/dist/ox-node-inspector.umd.js"></script>
</head>
Or use it as an ES module:
import OnirixNodeInspector from "https://unpkg.com/@onirix/node-inspector@1.0.0/dist/ox-node-inspector.esm.js";
To initialize the OnirixNodeInspector module, create a new instance of the class and pass the Onirix EmbedSDK instance.
import OnirixEmbedSDK from "https://unpkg.com/@onirix/embed-sdk@1.17.0/dist/ox-embed-sdk.esm.js";
import OnirixNodeInspector from "https://unpkg.com/@onirix/node-inspector@1.0.0/dist/ox-node-inspector.esm.js";
const embedSdk = new OnirixEmbedSDK();
embedSdk.connect();
const nodeInspector = new OnirixNodeInspector(embedSdk);
const nodeInspector = new OnirixNodeInspector(embedSdk, {
enableHighlight: true,
highlightParams: { type: "box", border: { enable: true } },
showNodeData: true,
onlyWithDatasheets: false,
});
Onirix Node Inspector offers you several options to adapt its use to your needs. You can configure the operation through a second parameter in the module builder. These are the available options:
embedSdk
(required): Instance of the Onirix Embed SDK.params
(optional): Configuration parameters for the inspector:
enableHighlight
(default: true
): Whether to enable node highlighting.dataStructure
(default: ox-node-inspector
): Name of the datasheet data structure.highlightParams
(default: {type: "box", border: {enable: false}}
): Parameters for node highlighting.showNodeData
(default: true
): Whether to show node data in the UI panel when a node is selected.onlyWithDatasheets
(default: false
): Whether to only include nodes with associated datasheets.onNodeSelected
(default: null
): Callback function to execute when a node is selected.import OnirixEmbedSDK from "https://unpkg.com/@onirix/embed-sdk@1.17.0/dist/ox-embed-sdk.esm.js";
import OnirixNodeInspector from "https://unpkg.com/@onirix/node-inspector@1.0.0/dist/ox-node-inspector.esm.js";
const embedSdk = new OnirixEmbedSDK();
embedSdk.connect();
const params = {
'highlightParams': {
'color': '#F00'
},
'dataStructure': 'my-structure',
'onlyWithDatasheets': true
}
const nodeInspector = new OnirixNodeInspector(embedSdk, params);
setHighlightingParams(enable, params)
Configures the highlighting parameters for nodes. More information about the highlighting options in the EmbedSDK documentation.
enable
(boolean): Whether to enable node highlighting.params
(object): Highlighting parameters, such as type and border settings.nodeInspector.setHighlightingParams(true, { type: "box", border: { enable: true } });
import OnirixEmbedSDK from "https://unpkg.com/@onirix/embed-sdk@1.12.0/dist/ox-embed-sdk.esm.js";
import OnirixNodeInspector from "https://unpkg.com/@onirix/node-inspector@0.0.1/dist/ox-node-inspector.esm.js";
const embedSdk = new OnirixEmbedSDK();
embedSdk.connect();
const nodeInspector = new OnirixNodeInspector(embedSdk);
// Configure highlighting
nodeInspector.setHighlightingParams(true, { type: "box", border: { enable: true } });
👤 Onirix
FAQs
Onirix Node Inspector allows you to highlight specific parts of your 3D models and link useful and readable information to the users of your experiences.
The npm package @onirix/node-inspector receives a total of 3 weekly downloads. As such, @onirix/node-inspector popularity was classified as not popular.
We found that @onirix/node-inspector demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.