Skip to content

Commit

Permalink
Init 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
juniorxsound committed Nov 9, 2019
0 parents commit 79f9062
Show file tree
Hide file tree
Showing 31 changed files with 3,943 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"presets": [
[
"@babel/env", {
"exclude": [
"@babel/plugin-transform-regenerator",
"@babel/plugin-transform-for-of",
"@babel/plugin-transform-classes"
]
}
],
"@babel/typescript"
],
"plugins": [
["@babel/plugin-proposal-class-properties", { "loose": true }]
]
}
34 changes: 34 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports = {
env: {
browser: true,
es6: true
},
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'eslint-config-prettier'
],
plugins: [
'eslint-plugin-prettier'
],
parserOptions: {
ecmaVersion: 2018,
sourceType: 'module',
},
rules: {
'prettier/prettier': 'error',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/member-delimiter-style': [
2,
{
'multiline': {
'delimiter': 'none',
'requireLast': false
},
}
],
semi: [
2, 'never'
]
},
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.DS_Store
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": true,
}
Binary file added assets/eqr-depth.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/eqr-rgb.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { Object3D, Material, TextureLoader, SphereBufferGeometry } from 'three';
declare enum TextureType {
TOP_BOTTOM = 0,
SEPERATE = 1
}
declare enum MeshDensity {
LOW = 64,
MEDIUM = 128,
HIGH = 256,
EXTRA_HIGH = 512
}
declare enum Style {
WIRE = 0,
POINTS = 1,
MESH = 2
}
declare class Viewer extends Object3D {
props: object;
protected loader: TextureLoader;
protected obj: Object3D;
protected geometry: SphereBufferGeometry;
protected material: Material;
constructor(texturePath?: string, depthPath?: string, textureType?: TextureType, meshDensity?: MeshDensity, style?: Style, displacement?: number);
protected createSceneObjectWithStyle(style: Style): Object3D;
protected load(texturePath: string): Promise<string>;
}
export { Viewer, TextureType };
140 changes: 140 additions & 0 deletions dist/three-6dof.amd.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/three-6dof.amd.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/three-6dof.amd.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 79f9062

Please sign in to comment.