npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@onirix/node-inspector

v1.0.3

Published

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.

Downloads

15

Readme

Version
Documentation Twitter: onirix

OnirixNodeInspector

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.

Install

You can install the library via npm:

npm install @onirix/node-inspector

Alternatively, include the dependency in the HTML tag:

<head>
    <script src="https://cdn.jsdelivr.net/npm/@onirix/[email protected]/+esm"></script>
</head>

Or use it as an ES module:

import OnirixNodeInspector from "https://cdn.jsdelivr.net/npm/@onirix/[email protected]/+esm";

Usage

Initialization

To initialize the OnirixNodeInspector module, create a new instance of the class and pass the Onirix EmbedSDK instance.

import OnirixEmbedSDK from "https://cdn.jsdelivr.net/npm/@onirix/[email protected]/+esm";
import OnirixNodeInspector from "https://cdn.jsdelivr.net/npm/@onirix/[email protected]/+esm";

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://cdn.jsdelivr.net/npm/@onirix/[email protected]/+esm";
import OnirixNodeInspector from "https://cdn.jsdelivr.net/npm/@onirix/[email protected]/+esm";

const embedSdk = new OnirixEmbedSDK();
embedSdk.connect();

const params = {
    'highlightParams': {
        'color': '#F00'
    },
    'dataStructure': 'my-structure',
    'onlyWithDatasheets': true
}

const nodeInspector = new OnirixNodeInspector(embedSdk, params);

OnirixNodeInspector Class

Methods

setHighlightingParams(enable, params)

Configures the highlighting parameters for nodes. More information about the highlighting options in the EmbedSDK documentation.

  • Parameters:
    • enable (boolean): Whether to enable node highlighting.
    • params (object): Highlighting parameters, such as type and border settings.
  • Example:
nodeInspector.setHighlightingParams(true, { type: "box", border: { enable: true } });

Example

import OnirixEmbedSDK from "https://cdn.jsdelivr.net/npm/@onirix/[email protected]/+esm";
import OnirixNodeInspector from "https://cdn.jsdelivr.net/npm/@onirix/[email protected]/+esm";

const embedSdk = new OnirixEmbedSDK();
embedSdk.connect();

const nodeInspector = new OnirixNodeInspector(embedSdk);

// Configure highlighting
nodeInspector.setHighlightingParams(true, { type: "box", border: { enable: true } });

Author

👤 Onirix