Comparing version 0.0.1 to 0.0.2-a
# 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
2090196
96
18904
2
6
8
8
+ Addedthree@^0.85.2
+ Addedthree@0.85.2(transitive)