tethers-vec

<script src="./point_src/tethers-vec"></script>

Meta Data
dependencies ()
unused_keys ('title',)
unknown_keys ('files',)
files ['', './windings.js']
filepath_exists True
path tethers-vec
filepath tethers-vec.js
clean_files ('./windings.js',)

  • VariableDeclaration
    const

    relPolarXY

    =
    function ( primaryPoint , controlPoint , distance , spinRads )
    get xy of the control point, relative to the {X,Y, Rot} of point A, using distance and relative angle.
  • ClassDeclaration
    class comments:
    Given a parent, bind a range of points by distance position. Call _step_ when visual updates are required. this.point = new Point(200, 200, 100) let cp = this.point.tethers.add({ x: 100, y: 50}) Step: this.point.tethers.step() Render: this.point.pen.indicator(ctx, {color: '#336600'}) this.point.tethers.points.pen.fill(ctx, '#33DDAA')
    • property

      computeFunc

      = 'polar'
      from class_name
      dict_keys(['kind', 'word', 'computed', 'static', 'value', 'type', 'pos'])
    • constructor

      constructor

      (
      point
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      add

      (
      pointData
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      onTipDragStart

      (
      ev
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      onTipDragMove

      (
      ev
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      onTipDragEnd

      (
      ev
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      generate

      (
      pointData
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      Generate, store and return a new controller point
    • method

      push

      (
      controlPoint
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      step

      (
      rotation
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      Unless the user is in control, Move any control point to the correct location,
    • method

      compute_polar

      (
      controlPoint , primaryPoint
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      relative polar placement
    • method

      compute_static

      (
      controlPoint , primaryPoint
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      relative xy position
    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])
  • ExpressionStatement

    :

    dict_keys(['type', 'expression', 'pos'])