Socket
Socket
Sign inDemoInstall

@viewar/api-plugin-intelligentgraphics

Package Overview
Dependencies
86
Maintainers
8
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @viewar/api-plugin-intelligentgraphics

Plugin for [viewar-api](https://www.npmjs.com/package/viewar-api) to import 3d scenes from [intelligentgraphics](https://www.intelligentgraphics.biz/) into the ViewAR system.


Version published
Weekly downloads
0
decreased by-100%
Maintainers
8
Install size
4.38 MB
Created
Weekly downloads
 

Readme

Source

@viewar/api-plugin-intelligentgraphics

Plugin for viewar-api to import 3d scenes from intelligentgraphics into the ViewAR system.

For more information about ViewAR, visit our developer portal at portal.viewar.com, or our website.

Usage

import viewarApi from 'viewar-api';
import { IntelligentgraphicsPlugin } from '@viewar/api-plugin-intelligentgraphics';
 
async function loadPlugin() {
    // Initialize ViewAR API (needs to be done only once per app start).
    await viewarApi.init();
 
    // Register plugin for intelligent graphics model import.
    const plugin = await viewarApi.plugins.register('intelligent graphics plugin', IntelligentgraphicsPlugin, {
        igxr: 'moemax',
        icomServer: 'https://dev2.viewar.com/proxy2.php?url=https://moemax-ar.moemax.com'
    });
 
    // Models from the plugin are added to the model manager and can be retrieved like every other model.
    const modelId = "123lkasdf3";
    const model = viewarApi.modelManager.findModelById(modelId);
 
    // Insert model instance in the same way as a default model.
    const instance = await viewarApi.sceneManager.insertModel(model);
 
    console.log('Current property values', instance.propertyValues);
    console.log('List of properties', instance.properties);
 
    // Update model properties in the same way as a default model.
    await instance.setPropertyValues({"Wood": "152"});
 
}

Keywords

FAQs

Last updated on 19 Feb 2020

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc