Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pen & loadableDesignState : the pen annotations are not handled inside the state #477

Open
gautiermichelin opened this issue Jun 23, 2024 · 1 comment
Labels
TBD To Be Defined means that issue needs to be checked and re-labeled after checking

Comments

@gautiermichelin
Copy link

gautiermichelin commented Jun 23, 2024

Hi Scaleflex team,

Pen & loadableDesignState : the pen annotations are not handled inside the state.

To reproduce, export a pen annotation through imageDesignState, you'll get inside the annotations property :

{"Pen-1184211639905": {
  "fill": "#ff0000",
  "stroke": "#ff0000",
  "strokeWidth": 5,
  "shadowOffsetX": 0,
  "shadowOffsetY": 0,
  "shadowBlur": 0,
  "shadowColor": "#000000",
  "shadowOpacity": 1,
  "opacity": 1,
  "tension": 0.5,
  "lineCap": "round",
  "selectAnnotationAfterDrawing": true,
  "name": "Pen",
  "id": "Pen-1184211639905",
  "points": [
	  155.4268658835424,
	  136.28386357581525,
	  155.47852658052852,
	  136.07457152135865
  ]
}
}

Points are the relative coordinates of the pen object, but its drawing is nowhere to be found, or I may have missed something.

@AhmeeedMostafa
Copy link
Collaborator

Hey @gautiermichelin ,
I couldn't understand what the issue is exactly, could you please clarify more? cause I checked and pen is working fine in exported & loaded states.

@AhmeeedMostafa AhmeeedMostafa added the TBD To Be Defined means that issue needs to be checked and re-labeled after checking label Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TBD To Be Defined means that issue needs to be checked and re-labeled after checking
Projects
None yet
Development

No branches or pull requests

2 participants