Composite Command Pattern for Managing Spherical Geometry Constructions

Spherical Easel (https://easelgeo.app) is a free web application for researching, teaching, and learning spherical geometry written in Typescript. The authors have created an open-source code base in VueJS v3 that combines several design patterns, global data structures, and cloud-based storage for storing and retrieving spherical constructions. Spherical constructions are made up of interdependent geometric objects (like lines and circles). Interdependencies means that while being moved, updates to a single object must propagate to other dependent objects. The application stores the dependency structure using a directed acyclic graph to allow these updates to propagate correctly. In this paper, we describe how Spherical Easel employs the Command and Composite design patterns (fully integrated with various VueJS supporting libraries) to maintain a history of construction edits, allowing users to undo and redo edits, and to store a final construction script in a cloud database. To guarantee correct rendering of the spherical objects when loading a construction, the stored script also preserves the structure of the directed acyclic graph. The construction script parser built is also designed to take advantage of the (Composite) Command design pattern. Using this innovative design, adding new object types does not require a major redesign of the script parser. Keywords: Spherical geometry, software design patterns, web application

Authors

Publication Details

Journal
Athens Journal of Τechnology & Engineering
Published
2024-11-27
DOI
https://doi.org/10.30958/ajte.11-4-1
Citations
1
Primary Topic
Advanced Theoretical and Applied Studies in Material Sciences and Geometry
Type
article
Field-Weighted Citation Impact
0.18
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Composite Command Pattern for Managing Spherical Geometry Constructions

Hans Dulimarta, William Dickinson
1 citations
Athens Journal of Τechnology & Engineering
Advanced Theoretical and Applied Studies in Material Sciences and Geometry
0.18
article

Composite Command Pattern for Managing Spherical Geometry Constructions

Hans Dulimarta, William Dickinson
article en
1 citations

Abstract

Spherical Easel (https://easelgeo.app) is a free web application for researching, teaching, and learning spherical geometry written in Typescript. The authors have created an open-source code base in VueJS v3 that combines several design patterns, global data structures, and cloud-based storage for storing and retrieving spherical constructions. Spherical constructions are made up of interdependent geometric objects (like lines and circles). Interdependencies means that while being moved, updates to a single object must propagate to other dependent objects. The application stores the dependency structure using a directed acyclic graph to allow these updates to propagate correctly. In this paper, we describe how Spherical Easel employs the Command and Composite design patterns (fully integrated with various VueJS supporting libraries) to maintain a history of construction edits, allowing users to undo and redo edits, and to store a final construction script in a cloud database. To guarantee correct rendering of the spherical objects when loading a construction, the stored script also preserves the structure of the directed acyclic graph. The construction script parser built is also designed to take advantage of the (Composite) Command design pattern. Using this innovative design, adding new object types does not require a major redesign of the script parser. Keywords: Spherical geometry, software design patterns, web application

Athens Journal of Τechnology & EngineeringVol. 11(4)
Openalex Percentile: Top 50%
Advanced Theoretical and Applied Studies in Material Sciences and Geometry
0.18
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.