-
Notifications
You must be signed in to change notification settings - Fork 418
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
feat(preview-support): add copied marker as part of djs-visual #906
Conversation
}; | ||
// Markers are cleaned up with visuals, keep stub for compatibility | ||
// cf. https://github.com/camunda/camunda-modeler/issues/4307 | ||
PreviewSupport.prototype.cleanUp = function() {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could consider to log a warning here that this is no longer being used (and will be removed in future major releases).
Cf. ContextPad.getPad or other instances.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
@@ -204,12 +190,12 @@ PreviewSupport.prototype._cloneMarker = function(gfx, marker, markerType, classN | |||
|
|||
this._clonedMarkers[ markerId ] = clonedMarker; | |||
|
|||
var defs = domQuery('defs', this._canvas._svg); | |||
var defs = domQuery(':scope > defs', parentGfx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the support for :scope within CSS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just one thing to consider regarding API deprecation I think.
I tested it and it looks good to me as well. |
Added deprecation warning with 0f12ab6 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏🏻
This PR
def
sections in the svgcloses #904
Test it out with
downstream draft PR: bpmn-io/bpmn-js#2173