Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
Stig  
#1 Posted : Thursday, October 7, 2021 12:40:57 PM(UTC)
Stig

Rank: Newbie

Groups: Member
Joined: 10/7/2021(UTC)
Posts: 4

I have been searching though the demo's to see if it is possible to change the style of the boarder from solid to dotted. However I have been unable to find that setting in the editor. Is it possible? This is a must have requirement for our upcoming project.
Sergey_f  
#2 Posted : Thursday, October 7, 2021 5:56:03 PM(UTC)
Sergey_f

Rank: Member

Groups: Member, Moderator
Joined: 12/7/2018(UTC)
Posts: 25

Was thanked: 1 time(s) in 1 post(s)
Hello Stig,

Could you clarify, which elements or features are you talking about, please?
Is it about Product Themes or anything else?

Regards,
Sergey
Stig  
#3 Posted : Friday, October 8, 2021 5:37:32 AM(UTC)
Stig

Rank: Newbie

Groups: Member
Joined: 10/7/2021(UTC)
Posts: 4

I would like to be able to change the border style from a solid green border to a dashed green border.

solid border.PNG
Sergey_f  
#4 Posted : Sunday, October 10, 2021 9:23:45 PM(UTC)
Sergey_f

Rank: Member

Groups: Member, Moderator
Joined: 12/7/2018(UTC)
Posts: 25

Was thanked: 1 time(s) in 1 post(s)
Hi Stig,

Thank you for the clarification, one more question, do you want the shape with the dashed border to be predefined in the design template, or provide your end-users the possibility to add the shapes in the editor and choose the dashed type of border?

Regards,
Sergey
Stig  
#5 Posted : Monday, October 11, 2021 6:02:21 AM(UTC)
Stig

Rank: Newbie

Groups: Member
Joined: 10/7/2021(UTC)
Posts: 4

Quote:
Thank you for the clarification, one more question, do you want the shape with the dashed border to be predefined in the design template, or provide your end-users the possibility to add the shapes in the editor and choose the dashed type of border?


Ideally both. From what I have seen of the psd conversion process it is already possible within the predefined template? However there are designs in which the end user would need the ability to add shapes and chose the border style (solid/dashed)
Sergey_f  
#6 Posted : Tuesday, October 12, 2021 12:17:09 AM(UTC)
Sergey_f

Rank: Member

Groups: Member, Moderator
Joined: 12/7/2018(UTC)
Posts: 25

Was thanked: 1 time(s) in 1 post(s)
Hi Stig,

Currently, we have no such feature to set the dashed border via the user interface of the editor.
But this feature can be developed, please, discuss it with our sales representative.

Currently, the shape with dashed border can be added in runtime via the code, using IframeApi:

Quote:

var pr = await editor.getProduct();
var model = await pr.getProductModel();
var objModel = CustomersCanvas.DesignAtoms.ObjectModel;
var shape = new objModel.ShapeItem(objModel.Path.rectangle(0, 0, 100, 100));
shape.dash = [2, 2];
shape.borderColor = objModel.ColorFactory.createColor("red");
shape.altBorderColor = objModel.ColorFactory.createColor("transparent");
model.surfaces.get(0).containers.get(1).items.add(shape);
pr.setProductModel(model);


Regards,
Sergey
Stig  
#7 Posted : Tuesday, October 12, 2021 5:54:18 AM(UTC)
Stig

Rank: Newbie

Groups: Member
Joined: 10/7/2021(UTC)
Posts: 4

Are there any events/plugins/hooks within the UI Framework which would allow you to modify the UI menu and extend the drop down menu to include the dashed border functionality?
Sergey_f  
#8 Posted : Wednesday, October 13, 2021 11:47:45 PM(UTC)
Sergey_f

Rank: Member

Groups: Member, Moderator
Joined: 12/7/2018(UTC)
Posts: 25

Was thanked: 1 time(s) in 1 post(s)
Doing this using the UI framework will be a difficult workaround.
I believe it will be more expedient to add directly to the choice of the type of border.

Regards,
Sergey
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

New server