Skip to content

Commit

Permalink
Add class comments
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Hagen <[email protected]>
  • Loading branch information
lukasrad02 and Greenscreen23 committed Jun 12, 2022
1 parent b898f30 commit f645b3e
Show file tree
Hide file tree
Showing 60 changed files with 189 additions and 35 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A BaselineOfSVGMorph is the baseline of the SVGMorph Package.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:09",
"instvars" : [
],
"name" : "BaselineOfSVGMorph",
Expand Down
7 changes: 7 additions & 0 deletions packages/SVG-Editor.package/SVGEditor.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
A SVGEditor is responsible for building the Editor window, including the editor panel.

Instance Variables
model: <SVGEditorModel>

model:
- the editor model which will be inserted into the panel
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:08",
"instvars" : [
"model" ],
"name" : "SVGEditor",
Expand Down
15 changes: 15 additions & 0 deletions packages/SVG-Editor.package/SVGEditorModel.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
A SVGEditorModel is the model of the editor panel.

Instance Variables
selectedElement: <SVGComponentMorph>
selectedPath: <OrderedCollection>
svg: <SVGMorph>

selectedElement:
- the element currently selected in the tree view

selectedPath:
- the path of the element currently selected in the tree view

svg:
- the svg object currently loaded
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:08",
"instvars" : [
"svg",
"selectedElement",
Expand Down
13 changes: 13 additions & 0 deletions packages/SVG-Editor.package/SVGInfoPanelGenerator.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
An SVGInfoPanelGenerator is a container object to be used with the multi-column info panel in the svg editor. Since a multi column list expects a collection for each column and not key value pairs, this container could be used to conviniently generate these collections.

Instance Variables
keys: <OrderedCollection>
values: <OrderedCollection>

keys
- The items to appear in the first column
- This should be the descriptions of the items in the second column

values
- The items to appear in the first column
- This should the the respective values
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:27",
"instvars" : [
"keys",
"values" ],
Expand Down
15 changes: 15 additions & 0 deletions packages/SVG-Editor.package/SVGPanel.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
A SVGPanel is a part of the editor window, on which the svg will be displayed.

Instance Variables
model: <SVGEditorModel>
svg: <SVGMorph>
svgSelector: <Symbol>

model:
- the model component of this panel

svg:
- the currently cached svg element

svgSelector:
- the selector from which we can access the svg on the model.
2 changes: 1 addition & 1 deletion packages/SVG-Editor.package/SVGPanel.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:09",
"instvars" : [
"svg",
"model",
Expand Down
1 change: 1 addition & 0 deletions packages/SVG-Editor.package/SVGPanelSpec.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGPanelSpec is a pluggableComponentSpec designed to build SVGPanels.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:09",
"instvars" : [
],
"name" : "SVGPanelSpec",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGBalloonRenderer is a renderer for svgs, using the balloon engine.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:14",
"instvars" : [
],
"name" : "SVGBalloonRenderer",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGBezierSegmentRun is a segment run used for bezier curves.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:15",
"instvars" : [
],
"name" : "SVGBezierSegmentRun",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGCircleMorph is a morph representing the svg <circle> element.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:13",
"instvars" : [
],
"name" : "SVGCircleMorph",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGClosingLineSegment is a line segment that "closes" an SVG <path>. It is the last line segment of the path and leads back to the first point of the path.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:18",
"instvars" : [
],
"name" : "SVGClosingLineSegment",
Expand Down
24 changes: 24 additions & 0 deletions packages/SVG-Morphic.package/SVGComponentMorph.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
A SVGComponentMorph is an abstract superclass for all svg elements.

Instance Variables
cachedComposedStyle: <Dictionary>
id: <String>
renderer: <SVGRenderer>
style: <Dictionary>
transform: <MatrixTransform2x3>

cachedComposedStyle:
- the style of an element is the composition of its style and its parents styles
- this is a cache for this composed style

id:
- the id of the element specified in the xml

renderer:
- the renderer of this element

style:
- the style specified for this element in the xml

transform:
- the transformation matrix applied to this element
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:09",
"instvars" : [
"id",
"style",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
A SVGCompositeMorph is an abstract superclass for svg elements that can consist of child elements.

Instance Variables
fills: <Dictionary>

fills
- the fill colors of this element
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:10",
"instvars" : [
"fills" ],
"name" : "SVGCompositeMorph",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGEllipseMorph is a morph representing the svg <ellipse> element.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:13",
"instvars" : [
],
"name" : "SVGEllipseMorph",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGFixupLineSegment is a line segment used as last segment for SVG <path> elements that should not appear as closed paths.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:19",
"instvars" : [
],
"name" : "SVGFixupLineSegment",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGLineSegmentRun is a segment run used for fixup lines.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:20",
"instvars" : [
],
"name" : "SVGFixupLineSegmentRun",
Expand Down
11 changes: 11 additions & 0 deletions packages/SVG-Morphic.package/SVGGradientFillStyle.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
A SVGGradientFillStyle is a fill style supporting svg gradients.

Instance Variables
spread: <Symbol>
units: <Symbol>

spread
- Defines how an element filled with this gradient will be filled beyond the area definied with this gradient

units
- Defines the coordinate system used for the gradient
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:22",
"instvars" : [
"units",
"spread" ],
Expand Down
1 change: 1 addition & 0 deletions packages/SVG-Morphic.package/SVGGroupMorph.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGGroupMorph is a morph representing the svg <g> element.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:10",
"instvars" : [
],
"name" : "SVGGroupMorph",
Expand Down
1 change: 1 addition & 0 deletions packages/SVG-Morphic.package/SVGLineMorph.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGLineMorph is a morph representing the svg <line> element.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:13",
"instvars" : [
],
"name" : "SVGLineMorph",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGLineSegmentRun is a segment run used for lines.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:15",
"instvars" : [
],
"name" : "SVGLineSegmentRun",
Expand Down
6 changes: 1 addition & 5 deletions packages/SVG-Morphic.package/SVGMorph.class/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
Allows an SVGMorph to be opened in space

A SVGMorph is xxxxxxxxx.

Instance Variables
A SVGMorph is a morph used to encapsule a whole svg structure. It allows an SVG to be opened in the world.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "E.R 6/27/2020 11:19",
"commentStamp" : "lra 6/12/2022 20:10",
"instvars" : [
"viewBox",
"svgWidth",
Expand Down
17 changes: 17 additions & 0 deletions packages/SVG-Morphic.package/SVGPathMorph.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
A SVGPathMorph is a morph representing the svg <path> element.

Instance Variables
originalD: <String>
segments: <SVGSegmentRun>

originalD
- the original data from the xml, used for exporting it again.

segments
- the segments of the path

Instance Variables
points: <OrderedCollection>

points
- the points of polygon
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:11",
"instvars" : [
"segments",
"originalD" ],
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGPolygonMorph is a morph representing the svg <polygon> element.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:11",
"instvars" : [
],
"name" : "SVGPolygonMorph",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
A SVGPolygonalMorph is an abstract superclass for svg <polygon> as well as <polyline> elements.

Instance Variables
points: <OrderedCollection>

points
- A collection of the points if the polygonal element
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:12",
"instvars" : [
"points" ],
"name" : "SVGPolygonalMorph",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGPolylineMorph is a morph representing the svg <polyline> element.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"classvars" : [
],
"commentStamp" : "",
"commentStamp" : "lra 6/12/2022 20:13",
"instvars" : [
],
"name" : "SVGPolylineMorph",
Expand Down
1 change: 1 addition & 0 deletions packages/SVG-Morphic.package/SVGRectMorph.class/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
A SVGRectMorph is a morph representing the svg <rect> element.
Loading

0 comments on commit f645b3e

Please sign in to comment.