remove debugging code
This commit is contained in:
parent
23097370e2
commit
b76d43536d
15 changed files with 0 additions and 38 deletions
|
|
@ -795,11 +795,6 @@ func drawShape(writer io.Writer, targetShape d2target.Shape, sketchRunner *d2ske
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// debugging
|
|
||||||
for _, pathData := range s.GetSVGPathData() {
|
|
||||||
fmt.Fprintf(writer, `<path d="%s" style="%s"/>`, pathData, style)
|
|
||||||
}
|
|
||||||
|
|
||||||
case d2target.ShapeImage:
|
case d2target.ShapeImage:
|
||||||
fmt.Fprintf(writer, `<image href="%s" x="%d" y="%d" width="%d" height="%d" style="%s" />`,
|
fmt.Fprintf(writer, `<image href="%s" x="%d" y="%d" width="%d" height="%d" style="%s" />`,
|
||||||
html.EscapeString(targetShape.Icon.String()),
|
html.EscapeString(targetShape.Icon.String()),
|
||||||
|
|
|
||||||
|
|
@ -68,8 +68,6 @@ func (s shapeCallout) Perimeter() []geo.Intersectable {
|
||||||
func (s shapeCallout) GetSVGPathData() []string {
|
func (s shapeCallout) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
calloutPath(s.Box).PathData(),
|
calloutPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,5 @@ func (s shapeCloud) Perimeter() []geo.Intersectable {
|
||||||
func (s shapeCloud) GetSVGPathData() []string {
|
func (s shapeCloud) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
cloudPath(s.Box).PathData(),
|
cloudPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -74,8 +74,6 @@ func (s shapeCylinder) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
cylinderOuterPath(s.Box).PathData(),
|
cylinderOuterPath(s.Box).PathData(),
|
||||||
cylinderInnerPath(s.Box).PathData(),
|
cylinderInnerPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,8 +52,6 @@ func (s shapeDiamond) Perimeter() []geo.Intersectable {
|
||||||
func (s shapeDiamond) GetSVGPathData() []string {
|
func (s shapeDiamond) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
diamondPath(s.Box).PathData(),
|
diamondPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -49,8 +49,6 @@ func (s shapeDocument) Perimeter() []geo.Intersectable {
|
||||||
func (s shapeDocument) GetSVGPathData() []string {
|
func (s shapeDocument) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
documentPath(s.Box).PathData(),
|
documentPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,6 @@ func (s shapeHexagon) Perimeter() []geo.Intersectable {
|
||||||
func (s shapeHexagon) GetSVGPathData() []string {
|
func (s shapeHexagon) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
hexagonPath(s.Box).PathData(),
|
hexagonPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,3 @@ func (s shapeOval) GetInsidePlacement(width, height, padding float64) geo.Point
|
||||||
func (s shapeOval) Perimeter() []geo.Intersectable {
|
func (s shapeOval) Perimeter() []geo.Intersectable {
|
||||||
return []geo.Intersectable{geo.NewEllipse(s.Box.Center(), s.Box.Width/2, s.Box.Height/2)}
|
return []geo.Intersectable{geo.NewEllipse(s.Box.Center(), s.Box.Width/2, s.Box.Height/2)}
|
||||||
}
|
}
|
||||||
|
|
||||||
// debugging
|
|
||||||
func (s shapeOval) GetSVGPathData() []string {
|
|
||||||
return []string{
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,6 @@ func (s shapePackage) Perimeter() []geo.Intersectable {
|
||||||
func (s shapePackage) GetSVGPathData() []string {
|
func (s shapePackage) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
packagePath(s.Box).PathData(),
|
packagePath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -83,8 +83,6 @@ func (s shapePage) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
pageOuterPath(s.Box).PathData(),
|
pageOuterPath(s.Box).PathData(),
|
||||||
pageInnerPath(s.Box).PathData(),
|
pageInnerPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,8 +51,6 @@ func (s shapeParallelogram) Perimeter() []geo.Intersectable {
|
||||||
func (s shapeParallelogram) GetSVGPathData() []string {
|
func (s shapeParallelogram) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
parallelogramPath(s.Box).PathData(),
|
parallelogramPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -63,8 +63,6 @@ func (s shapePerson) Perimeter() []geo.Intersectable {
|
||||||
func (s shapePerson) GetSVGPathData() []string {
|
func (s shapePerson) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
personPath(s.Box).PathData(),
|
personPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -70,8 +70,6 @@ func (s shapeQueue) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
queueOuterPath(s.Box).PathData(),
|
queueOuterPath(s.Box).PathData(),
|
||||||
queueInnerPath(s.Box).PathData(),
|
queueInnerPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,8 +51,6 @@ func (s shapeStep) Perimeter() []geo.Intersectable {
|
||||||
func (s shapeStep) GetSVGPathData() []string {
|
func (s shapeStep) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
stepPath(s.Box).PathData(),
|
stepPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -53,8 +53,6 @@ func (s shapeStoredData) Perimeter() []geo.Intersectable {
|
||||||
func (s shapeStoredData) GetSVGPathData() []string {
|
func (s shapeStoredData) GetSVGPathData() []string {
|
||||||
return []string{
|
return []string{
|
||||||
storedDataPath(s.Box).PathData(),
|
storedDataPath(s.Box).PathData(),
|
||||||
// debugging
|
|
||||||
boxPath(s.GetInnerBox()).PathData(),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue