Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

base-query

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-query - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2-a

build/base-query.js

2

docs/dev/scope.md
# Scope
1. Translate model structure into operable objects.
1. Translate base data into operable objects.
1. Scene parsing methods.

@@ -5,0 +5,0 @@ 1. Scene editing methods.

# Development
* Install from NPM: `npm install base3d`
* Or install from Git: `git clone https://github.com/archilogic-com/base3d-js.git`
* Install from NPM: `npm install base-query`
* Or install from Git: `git clone https://github.com/archilogic-com/base-query.git`
* Run development server: `npm run dev`

@@ -6,0 +6,0 @@ * Run tests: `npm run tests` (not implemented yet)

@@ -14,2 +14,2 @@ # Examples

* Listen to scene events
* Add Plugin to Base3d class
* Add Plugin to base query lib

@@ -1,5 +0,42 @@

var base3d = require('../../build/base3d.js')
var BASE = require('../../build/base-query.js')
var scene = new base3d.Entity()
var s3Key = '/3f995099-d624-4c8e-ab6b-1fd5e3799173/170420-1105-7yb890/8db476b3-7eb7-45a7-a09b-03e965f12685.gz.data3d.buffer'
console.log('scene', scene)
var s3Prefix = 'https://dnvf9esa6v418.cloudfront.net'
var url = s3Prefix + s3Key
// send request
console.time('fetch buffer')
fetch(url)
.then(function(res) {
// get buffer
return res.buffer()
})
.then(function(buffer){
console.timeEnd('fetch buffer')
// convert to arrayBuffer
console.time('conver to arrayBuffer')
var arrayBuffer = convertToArrayBuffer(buffer)
console.timeEnd('conver to arrayBuffer')
// decode to data3d
console.time('decode data3d')
return BASE.data3d.decodeBuffer( arrayBuffer )
})
.then(function(data3d){
console.timeEnd('decode data3d')
// log
})
// helper
function convertToArrayBuffer (b) {
return b.buffer.slice(b.byteOffset, b.byteOffset + b.byteLength)
}
function convertToUint32Array (b) {
return new Uint32Array(b.buffer, b.byteOffset, b.byteLength / Uint32Array.BYTES_PER_ELEMENT)
}
{
"name": "base-query",
"version": "0.0.1",
"version": "0.0.2a",
"description": "Parse and Edit building data using simple APIs.",
"homepage": "http://base-query.org/",
"repository": "archilogic-com/base-query",
"license": "MIT",
"description": "Comfortable APIs for web based parsing and editing of building data in base format.",
"main": "dist/base3d.js",
"author": {
"name": "archilogic",
"email": "dev.rocks@archilogic.com",
"url": "https://archilogic.com"
},
"main": "build/base-query.js",
"scripts": {
"dev": "npm install || true \n killall node || true \n node_modules/.bin/rollup -w -c tasks/build/rollup.config.js & \n node_modules/.bin/lite-server -c tasks/dev/lite-server.config.js",
"node-example": "npm run build \n node examples/node/main.js",
"test": "echo \"Error: no test specified\" \n exit 1",
"build": "rm -f build/* \n rollup -c tasks/build/rollup.config.js",
"dist": "node tasks/dist/generate-distributables.js",
"docs": "node_modules/.bin/jsdoc --configure tasks/jsdoc/config.jsdoc.json --verbose"
},
"dependencies": {

@@ -14,17 +27,9 @@ "bluebird": "^3.5.0",

"node-fetch": "^1.6.3",
"three": "^0.85.2",
"whatwg-fetch": "^2.0.3"
},
"scripts": {
"dev": "! npm install || npm run dev-browser",
"dev-browser": "rollup -cw &! live-server ./ -q --port=8080 --ignore=node_modules/**,dev/** --open=/examples/browser",
"dev-node": "rollup -c && node examples/node/main.js",
"test": "echo \"Error: no test specified\" && exit 1",
"build": "rm -f build/* && rollup -c",
"dist": "npm run build && rm -f dist/* && cp -R build/ dist/ && uglifyjs dist/base3d.js -o dist/base3d.min.js -cm --source-map includeSources,content=build/base3d.js.map,url=base3d.min.js.map && gzip -9 dist/base3d.min.js dist/base3d.min.js.map && mv dist/base3d.min.js.gz dist/base3d.min.js && mv dist/base3d.min.js.map.gz dist/base3d.min.js.map",
"docs": "node_modules/.bin/jsdoc --configure dev/jsdoc/config.jsdoc.json --verbose"
},
"devDependencies": {
"a-frame-components": "archilogic-com/a-frame-components",
"jsdoc": "^3.4.3",
"live-server": "1.2.0",
"minami": "^1.2.3",
"lite-server": "^2.3.0",
"rollup": "^0.41.6",

@@ -31,0 +36,0 @@ "rollup-plugin-commonjs": "^8.0.2",

# Making Buildings Editable
`base3d.js`
`base-query.js`
Comfortable APIs for web based parsing and editing of building data.
Parse and Edit building data in base format using simple APIs.

@@ -12,4 +12,4 @@ * [API](docs/api/index.html)

* GUI: [3D Viewer Web Component](https://github.com/archilogic-com/viewer)
* Data Format: [BASE Format](https://github.com/archilogic-com/base3d-format)
* GUI: [3D Base Viewer Web Component](https://github.com/archilogic-com/base-viewer)
* Data Format: [Base](https://github.com/archilogic-com/base-format)

@@ -16,0 +16,0 @@ ## Contribute

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc