class_docstr: _PointLike class, with methods overridden for vertex-delimited shapes.
  
  Key differences from _PointLike:
      - added self.z as a list, representing vertex weights
      - constructor accepts additional kwargs:
          * weight_type (bool): Whether the weights are on vertices (True) or on the shapes
                                (False)
          * interp (bool): Whether to interpolate (True), or to have one color per shape (False)
class_docstr_tok: ["_PointLike","class",",","with","methods","overridden","for","vertex-delimited","shapes",".","Key","differences","from","_PointLike",":","-","added","self.z","as","a","list",",","representing","vertex","weights","-","constructor","accepts","additional","kwargs",":","*","weight_type","(","bool",")",":","Whether","the","weights","are","on","vertices","(","True",")","or","on","the","shapes","(","False",")","*","interp","(","bool",")",":","Whether","to","interpolate","(","True",")",",","or","to","have","one","color","per","shape","(","False",")"]
code: def __init__(self, x, y, z=None, weight_type=True, interp=True):
      super(_PolygonLike, self).__init__(x, y)
      if z is None:
          self.z = []
      else:
          self.z = z
      self.interpolate = interp
      self.weight_type = weight_type
  
imports: from __future__ import annotations
  from math import floor
  import numpy
  from toolz import memoize
  from datashader.glyphs.points import _PointLike
  from datashader.utils import isreal, ngjit
label_desc: Use image node_id 1 to create a new _PolygonLike object from inherited base classes: _PointLike with example: obj = _PolygonLike(x, y, z, weight_type, interp)