Issue type
Feature request
Description of new feature
Allow to specify multiple values for background-clip property, so some background images will be clipped and others not
Motivation for new feature
I want to render an background image outside the node. Documentation says that I need to disable background-clip but this doesn't work my case, well partially.
What I want is to specify multiple background images, clip the first image but DON'T clip the 2nd
Additional
I already tried to do this and it works, requires simple changes in 2 places:
|
var shouldClip = clip === 'node'; |
|
bgClip: { enums: [ 'none', 'node' ] }, |
So, if you approve, I will send PR.
Issue type
Feature request
Description of new feature
Allow to specify multiple values for
background-clipproperty, so some background images will be clipped and others notMotivation for new feature
I want to render an background image outside the node. Documentation says that I need to disable
background-clipbut this doesn't work my case, well partially.What I want is to specify multiple background images, clip the first image but DON'T clip the 2nd
Additional
I already tried to do this and it works, requires simple changes in 2 places:
cytoscape.js/src/extensions/renderer/canvas/drawing-images.js
Line 28 in 36a3e97
cytoscape.js/src/style/properties.js
Line 49 in d5ff8a0
So, if you approve, I will send PR.