1.5.2 • Published 3 years ago

lazarus-location-selector v1.5.2

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

This component will return a locationData object containing the coordinates as percentages, and a general body-part name (e.g. left hand, abdomen, face)

For a more responsive version, use lazarus-location-selector-v2

props: {
  onClickCancel: f() /* triggered by clicking "x" in upper-left corner */
  getLocationData: f() /* will store location data */
  sex: 'male' || 'female' /* defaults to 'male' */
  isOverlay: boolean /* shows instructions, location, and buttons when true */
  onChangeSelection: f() /* is passed ('body part', [x, y]) */
  isView2: boolean /* when true, zooms into area currently selected */
}

If props.isOverlay:

  • buttons and text appear over the image (e.g. first 2 images above)

  • onClickCancel is required for 'x' button in upper left corner to function

If !props.isOverlay:

  • Only button to appear is the image flip button (e.g. 3rd image above)

  • props.onChangeSelection is necessary to display the currently selected body part in parent element

  • props.isView2 is necessary to zoom into selection

{
  Front: true,
  MoleCoordinates: [49, 44],
  MoleLocation: 'right arm',
  Time: 1624396481604,
}

Guide to publishing react component used for this build: https://levelup.gitconnected.com/publish-react-components-as-an-npm-package-7a671a2fb7f

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.6

3 years ago

1.4.9

3 years ago

1.4.8

3 years ago

1.4.7

3 years ago

1.4.5

3 years ago

1.4.4

3 years ago

1.3.7

3 years ago

1.3.6

3 years ago

1.3.5

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.9

3 years ago

1.2.8

3 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.3.4

3 years ago

1.2.5

3 years ago

1.3.3

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.9

3 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.2.2

3 years ago

1.1.3

3 years ago

1.2.1

3 years ago

1.1.2

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago