pointlist

<script src="./point_src/pointlist"></script>

Meta Data
dependencies ()
unused_keys ('title',)
unknown_keys ('files',)
files ['', 'pointlistdraw.js', 'pointlistgradient.js', 'pointlistshape.js', 'pointlistgenerator.js', 'unpack.js']
filepath_exists True
path pointlist
filepath pointlist.js
clean_files ('pointlistdraw.js', 'pointlistgradient.js', 'pointlistshape.js', 'pointlistgenerator.js', 'unpack.js')

  • VariableDeclaration
    const

    pointArray

    =
    function ( count =5 , distance =10 )
  • VariableDeclaration
    const

    asPoints

    =
    function ( items )
  • FunctionDeclaration
    function

    originRotate

    (
    target , origin , theta
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • ClassDeclaration
    class comments:
    drawClass = undefined
    • get

      draw

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

      pen

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

      return (this._pen || (this._pen = new C(this)))

    • get

      gradient

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

      generate

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

      shape

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

      siblings

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

      Return in sibling pairs, where each node is paired with its neighbour for every item. Each node appears twice:

              [a,b,c,d,e,f,g]
              pairs()
              a,b
              b,c
              c,d
              d,e
              e,f
              f,g
      
          example:
      
              myitems.siblings().map(pair=>[pair[0].uuid, pair[1].uuid]);
      
    • method

      pairs

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

      Return in pairs, where each node is paired with its next neighour once. Each node appears once:

              [a,b,c,d,e,f,g]
              pairs()
              a,b
              c,d
              e,f
      
          example:
      
              myitems.pairs().map((b)=>b[0].uuid);
      
    • method

      triples

      (
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
          Return a list with points in triplets, where each entry has 3 points
      
              [a,b,c,d,e,f,g]
              triples()
              a,b,c
              b,c,d
              c,d,e
              d,e,f
              e,f,g
              f,g,a
              g,a,b
      
    • get

      each

      (
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
              The _each_ unit is a special accessor for the points, allowing
              the generic editing of points for all items in the array.
      
              Access a function on every point:
      
                  points.each.rotate(10)
                  points.each.rotate(10)
      
              set a value on every point
      
                  points.each.rotation = 50
      
    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])
  • ClassDeclaration
    class comments:
    Copy: stage.points.copy() == stage.points false stage.points.copy()[0] == stage.points[0] true Deep Copy: stage.points.copy(true) == stage.points false stage.points.copy(true)[0] == stage.points[0] false
    • method

      first

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

      last

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

      copy

      (
      deep
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
              stage.points.copy() == stage.points
              false
              stage.points.copy()[0] == stage.points[0]
              true
      
          Deep Copy:
      
              stage.points.copy(true) == stage.points
              false
              stage.points.copy(true)[0] == stage.points[0]
              false
      
    • method

      getBoundingClientRect

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

      return thr bounding box of the point.

    • method

      getSize

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

      Return the width/height of the pointlist, discovering the min and max points to determin a rectangle

    • method

      cast

      (
      type = Point , func
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])

      mutate each point with the given. Similar to map(p=>new Cast(p))

    • method

      centerOfMass

      (
      type = simple , origin
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • get

      center

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

      let z = size.z * .5

    • method

      setX

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

      setY

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

      setData

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

      getById

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

      getByName

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

      getByKey

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

      update

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

      setMany

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

      Set the X value for all points within the list accepts undefined, number, point[x], function

    • method

      keyMany

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

      Set the X value for all points within the list accepts undefined, number, point[x], function

    • method

      cleanArray

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

      offset

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

      p.copy(p.add(value))

    • method

      rotate

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

      Spin the cluster by a given rotation, around an optional anchor If given a single point, the rotation is used.

    • property

      lastDiff

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

      handleRotate

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

      this.lastDiff = handlePoint.radians

    • method

      everyEvery

      (
      func
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
          Iterate every point against every point.
          This is useful for point to point connection
      
              points.everyEvery(function(a,b){
              })
      
    • method

      lookAt

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

      grow

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

      shift the points within the list as per a growth method. If is a list of 2, the line will extend, If more than 2, the points will push away from the origin point. If the origin is undefined, the COM is used.

    • method

      sortByRadius

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

      sortByZ

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

      remove

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

      Remove an item. but this does perform a splice so it may be costly.

    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])
  • ExpressionStatement

    :

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

    :

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