core/polypoint-canvas

<script src="./point_src/core/polypoint-canvas"></script>

* * PolypointCanvas Web Component - Basic Implementation * * Usage: * * context.arc(50, 50, 40, 0, 2 * Math.PI); *

Meta Data
filepath_exists True
path core/polypoint-canvas
filepath core/polypoint-canvas.js
clean_files ()

  • ClassDeclaration
    class comments:

    Called when element is added to DOM

    • property

      defaultWidth

      = 300
      from PolypointCanvas
      dict_keys(['kind', 'word', 'computed', 'static', 'value', 'type', 'pos', 'class_name'])
    • property

      defaultHeight

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

      constructor

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

      observedAttributes

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

      connectedCallback

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

      Called when element is added to DOM

    • method

      attributeChangedCallback

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

      Called when observed attributes change

    • method

      mounted

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

      Initializes shadow DOM with canvas and basic styles

      const style = document.createElement('style');

    • method

      setupCanvas

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

      Sets canvas dimensions and creates 2D context

    • method

      loadContent

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

      Determines whether to load theatre file or inline script

    • method

      loadTheatreFile

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

      Loads external theatre file as script tag in document head

      console.log(script.src)

    • method

      loadScript

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

      Executes inline code or script tag content with canvas and context in scope

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

    :

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