JavaScript Using feMorphology svg filter trims corners in the output

I am using SVG filter feMorphology's dilate to implement shadow spread for a shape.

Am expecting below result.

enter image description here

<?xml version="1.0" encoding="UTF-8"?>
<svg width="188px" height="209px" viewBox="0 0 188 209" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
    <title>Test</title>
    <defs>
        <polygon id="path-1" points="94 29 168 194 20 194"></polygon>
        <filter x="-100%" y="-100%" width="1000%" height="1000%" filterUnits="userSpaceOnUse" id="filter">
            <feMorphology radius="5" operator="dilate" in="SourceAlpha" result="morphOut"></feMorphology>
            <feMerge>
                <feMergeNode in="morphOut"></feMergeNode>
                <feMergeNode in="SourceGraphic"></feMergeNode>
            </feMerge>
        </filter>
    </defs>
    <g id="Triangle">
        <path d="M 20 20 L 120 20 L 120 120 L 20 120 z " filter="url(#filter)" stroke-width="1" fill-rule="evenodd" fill="rgb(216,216,216)"/>
        <path d="M 70 150 L 120 200 L 20 200 z" filter="url(#filter)" stroke-width="1" fill-rule="evenodd" fill="rgb(216,216,216)"/>
    </g>
</svg>
Answer:1

I use Webix 2.5.14. There was a problem with a component Richselect. In this form there is a richselect with options. webix.ui({ view: "form", id:"addAccessForm", borderless: true, elements: [ { ...

I use Webix 2.5.14. There was a problem with a component Richselect. In this form there is a richselect with options. webix.ui({ view: "form", id:"addAccessForm", borderless: true, elements: [ { ...

mdn Object.keys() defines it will return an array of a given object's own enumerable properties. var USComicPublishers = { countryOfOrigin : { value : "USA", enumerable: false, writable: ...

mdn Object.keys() defines it will return an array of a given object's own enumerable properties. var USComicPublishers = { countryOfOrigin : { value : "USA", enumerable: false, writable: ...

  1. object keys object values
  2. object.keys(object)
  3. object.keys object.entries
  4. object.keys(object).length
  5. object.keys object.values javascript
  6. object.keys(object).map
  7. object.keys(object).foreach
  8. object.keys(object).find
  9. object.keys(object) javascript
  10. object.keys(object).reduce
  11. object.keys vs object.getownpropertynames
  12. object.keys vs object.entries
  13. object.keys vs object.values
  14. object.keys vs object.entries performance
  15. object.keys and object.values same order
  16. object.keys empty object
  17. object.keys return object
  18. js object.keys object.values
  19. object.keys nested object
  20. object keys map return object

I have some abstract question. Lets say I have a website which uses 1000+ JS script files. (Not at once, but in the overall 1000+ JS scripts are needed if user goes through all existing flows). I ...

I have some abstract question. Lets say I have a website which uses 1000+ JS script files. (Not at once, but in the overall 1000+ JS scripts are needed if user goes through all existing flows). I ...

  1. javascript dynamic loading of script
  2. javascript dynamic loading content
  3. dynamic loading javascript library
  4. javascript dynamic loading jquery
  5. angular dynamic javascript loading
  6. html dynamic javascript loading
  7. javascript dynamic module loading
  8. dynamic page loading javascript
  9. dynamic script loading javascript async
  10. javascript dynamic resource loading
  11. javascript dynamic code loading
  12. javascript dynamic image loading
  13. loading dynamic javascript files

Actually I am dealing with the problem to let my code work in IE. Unfortunately this is still necessary. Polyfills for unsupported methods are working fine. But I wonder, how / if I can make "const" ...

Actually I am dealing with the problem to let my code work in IE. Unfortunately this is still necessary. Polyfills for unsupported methods are working fine. But I wonder, how / if I can make "const" ...