Skip to main content
Authoring mode: Polypad and Computation Layer

How do I use Computation Layer to enhance my Polypad activities?

Updated over a week ago

Polypad is a collection of interactive digital manipulatives for teachers and students. The unique tools and features on Polypad enable exploration, creativity, and problem solving. Polypad can be used as a stand-alone resource at polypad.amplify.com or embedded inside of Activity Builder. When used inside of Activity Builder, activity authors can use Computation Layer to enhance their activities. This page provides documentation on using Polypad with Computation Layer inside of Activity Builder.

Carrying Polypad work forward

Student work on a Polypad can be carried forward to a Polypad on a different screen using Computation Layer.

To do so:

  1. Name the initial Polypad. For example, “p1.”

  2. In the receiving Polypad, set the initial state as follows: “initialState: p1.polypadState”.

What from the Polypad is carried forward? What is NOT carried forward?

All tiles and strokes are carried forward from the initial Polypad to the receiving Polypad. Any properties or settings changed on specific tiles either by the author in setting up the initial Polypad or by the student while interacting with the initial Polypad (like changing the label options on a specific fraction bar) are carried forward to the receiving Polypad.

Any Polypad customization options set by the author in the settings menu (the gear tab of the sidebar) of the initial Polypad are NOT carried forward in the receiving Polypad. If the author wants to have the same settings on the receiving Polypad as the initial Polypad, they’ll have to change the settings on both Polypads. This applies to all options in the settings menu, including those customization options in the “Select Tiles and Tools” mode. Examples include:

  • Global settings like Audio tools and other toggles in the settings menu

  • Toolbar options (like the color picker or text editor)

  • Pinching, panning and zooming

  • Tile specific actions (like cutting Polygons)

  • Categories of tiles available in the sidebar

None of these carry forward from the initial Polypad to the receiving Polypad. This allows for different options on each, but the author can make it the same if that is the intended goal. Click here to learn more about Authoring mode.

Viewport options

If the initial fullscreen Polypad is a Fixed Size or Notebook canvas, authors should set the receiving Polypad to the same canvas setting and adjust the width and height accordingly.

Using the initial state

Any changes made on the Polypad’s initial state will update on the receiving Polypad as long as users don’t make any changes to the receiving Polypad. Once a user interacts with the receiving Polypad (moves tiles, adds tiles, deletes tiles, adds a pen stroke, etc.), the receiving Polypad will no longer update and reflect any changes made on the initial Polypad.

Reset button

When the Reset button is activated on the receiving Polypad, clicking the button will reset this Polypad to the last state of the initial Polypad. Any changes made on the initial Polypad will not automatically update the receiving Polypad. However, clicking the Reset button on the receiving Polypad will load those latest changes. Try this feature out on screens 4 and 5 of this activity. Learn more about the Reset button here.


Drop zones and Computation Layer

In order to add a Computation Layer source to Polypad, first enter Authoring mode and then add a Drop zone to the Polypad.

Next, open the More tools menu in the action bar, open the CL Exports section, select a CL source from the drop down menu, and then enter a name for the export. A single Drop zone can have multiple CL sources.

Be sure to exit Authoring mode to save added sources.

Source options

Below are the available CL sources, a brief description of each, any relevant notes, and a link to a sample screen.

Numeric

  • Count: Number of tiles in the drop zone; see screen 7 of this activity.

  • Sum: Sum of any tiles in the drop zone with a numeric value. Other tiles are not included; see screen 8.

  • Product: Product of any tiles in the drop zone with a numeric value. Other tiles are not included; see screen 8.

    • Note: When no tiles are in the drop zone, the product will be 1.

  • Mean: Mean of any tiles in the drop zone with a numeric value. Other tiles are not included; see screen 8.

  • Median: Median of any tiles in the drop zone with a numeric value. Other tiles are not included: see screen 8.

  • Mode: Mode of any tiles in the drop zone with a numeric value. Other tiles are not included; see screen 8.

    • Note: When there are multiple modes, the mode will be “undefined.”

  • Standard Deviation: Standard Deviation of any tiles in the drop zone with a numeric value. Other tiles are not included; see screen 9.

  • Variance: Variance of any tiles in the drop zone with a numeric value. Other tiles are not included; see screen 9.

  • Minimum: The smallest value of the tiles in the drop zone; see screen 9.

  • Maximum: The largest value of the tiles in the drop zone; see screen 9.

  • Range: Range of any tiles in the drop zone with a numeric value. Other tiles are not included; see screen 9.

    • Note: When no tiles are in the drop zone, the range will be reported as “-Infinity.”

Geometry

  • Area: Total area of all tiles in the drop zone; see screen 10 of this activity.

    • Note: The combined area of all the shapes in the drop zone is exported, even when shapes overlap. The area of most tiles will be included.

  • Perimeter: Total perimeter of all tiles in the drop zone; see screen 10.

    • Note: The combined perimeter of all the shapes in the drop zone is exported, even when edges of shapes are touching each other. The perimeter of most tiles will be included.

  • Internal Angle Sum: Angle sum of the tile that was most recently added to the drop zone; see screen 11.

    • Note: This source doesn’t work when there are multiple shapes or tiles in the drop zone.

Utilities

Some of these sources only work with a maximum of 3 tiles. Future updates of CL features will expand what is available with these sources.

  • Types: The type of each tile in the drop zone; see screen 13 of this activity.

    • Note: This method of using CL currently only works with up to 3 tiles.

  • Values: The value of each tile in the drop zone; see screen 14.

    • Note: Only tiles that have the value property are included. This method of using CL currently only works with up to 3 tiles.

  • Positions: The position of each tile in the drop zone; see screen 15.

    • Note: Positions are given as a pair of x- and y- coordinates. The top left corner of the drop zone is considered (0, 0). x-coordinates increase to the right, and y-coordinates increase downwards.

  • Rotations: The angle of rotation for each tile in the drop zone; see screen 16.

  • Alt Text: The string of text in the “Alt Text” field of each tile in the drop zone; see screen 17.

  • Correct: Returns the correctness of the drop zone as a boolean. Read more about the “correct” source below; see screens 20 through 24.

    • Note: Conditions for correctness are set by authors in one of three ways: Compare, Cover, or Match. Click here to learn more.

Correctness and Validation

The examples and documentation below only focus on using the “Correct” source with drop zones and using Computation Layer to validate student work. The examples below show validation outside of Polypad, either using other Activity Builder components or only on the teacher dashboard. Validation inside of Polypad is possible as well. See this Polypad for an example and read this tutorial page for more information about setting up validation conditions inside of a drop zone.

  • Compare: Students use an AB button to check their work; see screen 20 of this activity.

  • Match: Students don’t see any feedback on this screen. Teachers will see a ✔️ or an • on the teacher dashboard. Authors can decide if they want students to see this validation or not; see screen 21.

  • Cover: Students don’t see any feedback on this screen. Teachers will see a ✔️ or an • on the teacher dashboard. Authors can decide if they want students to see this validation or not; see screen 22.

  • Compare: This example is similar to screen 20, but has a more advanced Computation Layer to provide feedback to students; see screen 24.


Bounds CL export

The Bounds CL export is available on all tiles and exports the coordinates in the top left corner of the tile’s bounding box along with the length and height of the tile’s bounding box. See screen 30 of this activity for an example.

Input tiles

CL sources are coming soon to input tiles


Other authoring tutorial pages

Did this answer your question?