Home / Function/ valueToPoint() — vue Function Reference

valueToPoint() — vue Function Reference

Architecture documentation for the valueToPoint() function in svg.js from the vue codebase.

Entity Profile

Relationship Graph

Source Code

examples/classic/svg/svg.js lines 46–58

function valueToPoint(value, index, total) {
  var x = 0
  var y = -value * 0.8
  var angle = ((Math.PI * 2) / total) * index
  var cos = Math.cos(angle)
  var sin = Math.sin(angle)
  var tx = x * cos - y * sin + 100
  var ty = x * sin + y * cos + 100
  return {
    x: tx,
    y: ty
  }
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free