Skip to content

Commit

Permalink
fix FRAMED_OBJECT_OFFSET
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Jan 31, 2022
1 parent 246b25e commit b77cd68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/common/model/Representation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ const LIGHT_SOURCE_SCALE_FACTOR = 2;

// How much to shift the upper-left corner of the framed Object image, in cm.
// This is specific to the object PNG files, and must be uniform for all object PNG files.
const FRAMED_OBJECT_OFFSET = new Vector2( -67, 100 );
// x should be 1/2 of PNG file width. y should be tip of pencil.
const FRAMED_OBJECT_OFFSET = new Vector2( -68.5, 100 );

// How much to shift the upper-left corner of the light source, in cm.
// This is specific to the light-source PNG files, and must be uniform for all light-source PNG files.
Expand Down

1 comment on commit b77cd68

@pixelzoom
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.