2.6.0 • Published 2 months ago

@3dlook/camera v2.6.0

Weekly downloads
41
License
ISC
Repository
github
Last release
2 months ago

Install all the dependencies

npm install

Development

npm start

Demo app

Execute the following command to run the app in a development envirinment:

npm install
npm start

then open link in your browser:

http://localhost:9000/demo.html

Publish to nexus (develop branch)

1. npmrc nexus
2. npm run build
3. npm version patch (if you need to up camera version)
4. npm publish

Publish to npm (master branch)

1. npmrc npm-camera
2. npm run build
3. npm version patch (if you need to up camera version)
4. npm publish --access=public

Prop Types

PropertyTypeRequired?Description
isTableFlowBooleantrue photographing yourself, false taking pictures of a friend
disableTableFlowFunctionCallback invoked whenever the gyroscope is disabled on the phone, disables the ability to take a photo of yourself. (): void
saveFrontFunctionCallback invoked whenever the front of the photo is saved. (file): void
saveSideFunctionCallback invoked whenever the side of the photo is saved. (file): void
typeStringThe type of photo to be taken is either front or side
hardValidationObjectFront and side photo validation object. Format { front: null, side: null }
onClickDoneFunctionCallback invoked whenever the user clicks on the button 'Done' (): void
turnOffCameraFunctionCallback invoked whenever the second photo is taken (you photograph yourself). Turns off the camera component when the audio track ends. (): void
setDeviceCoordinatesFunctionCallback on deviceorientation event. ({ betaX: 23.33, gammaY: 33.54, alphaZ: 65.32 }): void
2.6.0

2 months ago

2.5.0

4 months ago

2.5.2

4 months ago

2.5.1

4 months ago

2.4.0

4 months ago

2.3.1

6 months ago

2.3.0

7 months ago

2.2.1

8 months ago

2.2.0

8 months ago

2.1.0

8 months ago

2.0.7

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago