iink SDK on Device

Answered

How to set the fill color of recognized shape (diagram)?

I'm trying to set the fill color to clear in a recognized shape (see the rectangle in the diagram below) in iOS. I'm using the following penStyle, however only the stoke is changing, not the fill color.

Any advice on how set the fill color?

Thanks,

Trevor.


        editorViewController.editor.penStyle = "color: #007AFFFF; -myscript-pen-width: 1.0; -myscript-pen-fill-style: none;"




image




Best Answer
Hi Trevor,

You should be able to achieve what you want by setting a theme on your editor:
editorViewController.editor.theme = ".diagram-fill { -myscript-pen-fill-color: #00000000; }";

For more information, please refer to the styling section of the documentation.


Best regards,

Thomas

 

1 Comment

Answer
Hi Trevor,

You should be able to achieve what you want by setting a theme on your editor:
editorViewController.editor.theme = ".diagram-fill { -myscript-pen-fill-color: #00000000; }";

For more information, please refer to the styling section of the documentation.


Best regards,

Thomas

 


1 person likes this