Socket
Socket
Sign inDemoInstall

depthmapx

Package Overview
Dependencies
8
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    depthmapx

depthmapX for Node.js


Version published
Weekly downloads
13
increased by8.33%
Maintainers
2
Install size
3.76 MB
Created
Weekly downloads
 

Readme

Source

depthmapX for Node.js

Command Line Interface bindings for SpaceGroupUCL/depthmapX.

Compatibility

Methods

Every global option in depthmap CLI translates to a module method.

CLI mode optionnode module method
-m VGAdmx.vga
-m LINKdmx.link
-m VISPREPdmx.visprep
-m AXIALdmx.axial
-m AGENTSdmx.agents
-m ISOVISTdmx.isovist
-m EXPORTdmx.exportData
-m IMPORTdmx.importData

Method Options

depthmapX CLI options are translated directly into node method options. See official depthmapX CLI docs for reference.

Example

const dmx = require('depthmapx')

// 1. import file

dmx.importData({
  f: 'example/archilogic-office.dxf',
  o: 'example/1_new.graph'
}).then(() => {

  // 2. calculate visibility
  
  return dmx.visprep({
    f:'example/1_new.graph',
    o:'example/2_visibility.graph',
    pg:'0.1',
    pp:'3.0,3.0'
  })
   
}).then(() => {

  // 3. export as CSV
  
  return dmx.exportData({
    f: 'example/2_visibility.graph',
    o: 'example/3_visibility.csv',
    em: 'pointmap-data-csv'
  })

})

FAQs

Last updated on 30 Dec 2017

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