Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Selecting a Year on a Line Chart

Public visualization

Viewing a saved revision (read-only)

03c4bf7b54254fd4a44a99482023f355

Fork of Selecting a Year on a Line Chart

0 stars0🌍 Public
Ddnt.ngoctu@gmail.com
Last edited Jun 20, 2024
Created on Jun 20, 2024

This interactive example shows four rounded squares that can be freely dragged and resized within a container. It demonstrates a direct manipulation technique where users can click and move any square or adjust its dimensions using the corner and edge handles, with the ability to reorder them into a grid layout. The implementation uses vanilla JavaScript called `app.js` for mouse event handling, including drag detection and eight-direction resizing logic, while persisting the square states to `localStorage` for session retention. The default styling via `styles.css` provides the visual handles and cursor cues for interaction.

AI-generated description