Back to problems

Design Document Layer System

Object-Oriented Programming · Figma · Medium

Create a document-editing system that stores properties for multiple layers. In this design application, every visual layer is referenced by a unique integer id. A layer contains string properties represented by key-value pairs, for example a color, shape, or size. A layer comes into existence automatically when the first property is assigned to its id. The document must also be able to undo the latest property assignment. Implement the Document class: Document() creates a…

Checking your access…