-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add Custom Shape Negative not working #9761
Copy link
Copy link
Closed
Labels
bugIndicates a bug with one or multiple components.Indicates a bug with one or multiple components.element/settings/shape-dividerReferences the top and bottom element Shape Divider feature.References the top and bottom element Shape Divider feature.request/enhancementIndicates an Enhancement Request for an existing feature.Indicates an Enhancement Request for an existing feature.status/mergedIndicates when a Pull Request has been merged to a Release.Indicates when a Pull Request has been merged to a Release.type/developer-apiIndicates when a topic is related to the Developer API and Documentation.Indicates when a topic is related to the Developer API and Documentation.
Milestone
Metadata
Metadata
Assignees
Labels
bugIndicates a bug with one or multiple components.Indicates a bug with one or multiple components.element/settings/shape-dividerReferences the top and bottom element Shape Divider feature.References the top and bottom element Shape Divider feature.request/enhancementIndicates an Enhancement Request for an existing feature.Indicates an Enhancement Request for an existing feature.status/mergedIndicates when a Pull Request has been merged to a Release.Indicates when a Pull Request has been merged to a Release.type/developer-apiIndicates when a topic is related to the Developer API and Documentation.Indicates when a topic is related to the Developer API and Documentation.
Prerequisites
Description
Hello team,
I have a problem with custom shape, elementor never used custom negative svg file. Please check it?
This is my code:
And i create both svg files in same folder:
center-curve.svg
center-curve-negative.svg
When i turn on Invert option in Editor, it used center-curve.svg instead of center-curve-negative.svg.
I guess the problem in function get_shape_path() of class Shapes
You checked shape has params 'path' (Mean it is a custom shape) but you missing check it is negative shape.
http://prntscr.com/q5vv6p
Please reference this code:
Update code for editor: