Skip to content

v1.0.2 SVG rendering broken. checkFlatGraph is not a function #44

Closed
@desandro

Description

v1.0.2 removed checkFlatGraph method, but renderGraphSvg still used it. I'll add a fix in v1.0.3. In the meantime, you can render with SVG by adding this duck punch. Add this code before your other Zdog code.

Zdog.Anchor.prototype.renderGraphSvg = function( svg ) {
  if ( !svg ) {
    throw new Error( 'svg is ' + svg + '. ' +
      'SVG required for render. Check .renderGraphSvg( svg ).' );
  }
  this.flatGraph.forEach( function( item ) {
    item.render( svg, Zdog.SvgRenderer );
  });
};

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions