jointjs - Replacing port circle with custom image, devs.Model -


i new jointjs. working shapes instances of joint.shapes.devs.model , trying replace circle, representing in/out port custom image. keep current functionality possible create new arrow dragging circle, snaplinks, , rest of great functionality offered jointjs. thing replace magnet/inport/circle image. possible? if so, how?

regards

it indeed possible. best way @ how joint.shapes.devs.model defined here: https://raw.githubusercontent.com/clientio/joint/master/plugins/shapes/joint.shapes.devs.js , create own custom shape has svg <image> element in ports instead of current <circle>.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -