0.0.11 • Published 6 years ago

depthmapx v0.0.11

Weekly downloads
37
License
-
Repository
github
Last release
6 years ago

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'
  })

})
0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago