-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Teun de Wijs
committed
Oct 11, 2019
1 parent
7ea184e
commit 800cbb3
Showing
13 changed files
with
346 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
import {A11yModule} from '@angular/cdk/a11y'; | ||
import {DragDropModule} from '@angular/cdk/drag-drop'; | ||
import {PortalModule} from '@angular/cdk/portal'; | ||
import {ScrollingModule} from '@angular/cdk/scrolling'; | ||
import {CdkStepperModule} from '@angular/cdk/stepper'; | ||
import {CdkTableModule} from '@angular/cdk/table'; | ||
import {CdkTreeModule} from '@angular/cdk/tree'; | ||
import {NgModule} from '@angular/core'; | ||
import { | ||
MatAutocompleteModule, | ||
MatBadgeModule, | ||
MatBottomSheetModule, | ||
MatButtonModule, | ||
MatButtonToggleModule, | ||
MatCardModule, | ||
MatCheckboxModule, | ||
MatChipsModule, | ||
MatDatepickerModule, | ||
MatDialogModule, | ||
MatDividerModule, | ||
MatExpansionModule, | ||
MatGridListModule, | ||
MatIconModule, | ||
MatInputModule, | ||
MatListModule, | ||
MatMenuModule, | ||
MatNativeDateModule, | ||
MatPaginatorModule, | ||
MatProgressBarModule, | ||
MatProgressSpinnerModule, | ||
MatRadioModule, | ||
MatRippleModule, | ||
MatSelectModule, | ||
MatSidenavModule, | ||
MatSliderModule, | ||
MatSlideToggleModule, | ||
MatSnackBarModule, | ||
MatSortModule, | ||
MatStepperModule, | ||
MatTableModule, | ||
MatTabsModule, | ||
MatToolbarModule, | ||
MatTooltipModule, | ||
MatTreeModule, | ||
} from '@angular/material'; | ||
|
||
@NgModule({ | ||
exports: [ | ||
A11yModule, | ||
CdkStepperModule, | ||
CdkTableModule, | ||
CdkTreeModule, | ||
DragDropModule, | ||
MatAutocompleteModule, | ||
MatBadgeModule, | ||
MatBottomSheetModule, | ||
MatButtonModule, | ||
MatButtonToggleModule, | ||
MatCardModule, | ||
MatCheckboxModule, | ||
MatChipsModule, | ||
MatStepperModule, | ||
MatDatepickerModule, | ||
MatDialogModule, | ||
MatDividerModule, | ||
MatExpansionModule, | ||
MatGridListModule, | ||
MatIconModule, | ||
MatInputModule, | ||
MatListModule, | ||
MatMenuModule, | ||
MatNativeDateModule, | ||
MatPaginatorModule, | ||
MatProgressBarModule, | ||
MatProgressSpinnerModule, | ||
MatRadioModule, | ||
MatRippleModule, | ||
MatSelectModule, | ||
MatSidenavModule, | ||
MatSliderModule, | ||
MatSlideToggleModule, | ||
MatSnackBarModule, | ||
MatSortModule, | ||
MatTableModule, | ||
MatTabsModule, | ||
MatToolbarModule, | ||
MatTooltipModule, | ||
MatTreeModule, | ||
PortalModule, | ||
ScrollingModule, | ||
] | ||
}) | ||
export class MaterialModule {} | ||
|
||
|
||
/** Copyright 2019 Google Inc. All Rights Reserved. | ||
Use of this source code is governed by an MIT-style license that | ||
can be found in the LICENSE file at http://angular.io/license */ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,71 @@ | ||
<textarea #tA rows="16" cols="90" placeholder="Plant uml code" | ||
(keyup)="generateSvg(tA.value)">Bob->Alice : hello</textarea> | ||
<div class="right"> | ||
<p> | ||
<input id="primary" #first type="color" value="#A80036" (click)="colorChange('primary', first.value)" | ||
(change)="colorChange('primary', first.value)"> | ||
{{first.value}} | ||
primary color, used for borders and lines | ||
</p> | ||
<p> | ||
<input id="secondary" #second type="color" value="#FEFECE" (click)="colorChange('secondary', second.value)" | ||
(change)="colorChange('secondary', second.value)"> | ||
{{second.value}} | ||
secondary color, used for backgrounds | ||
</p> | ||
<div fxLayout="row wrap" fxLayout.xs="column" fxLayoutWrap fxLayoutGap="0.5%" fxLayoutAlign="center stretch" | ||
fxLayoutAlign.xs="center" class="locationMiddle"> | ||
<ng-container> | ||
<mat-card class="card"> | ||
<mat-card-header> | ||
<div mat-card-avatar class="example-header-image"></div> | ||
<mat-card-title>Style UML</mat-card-title> | ||
<mat-card-subtitle>Sequence diagram styler</mat-card-subtitle> | ||
</mat-card-header> | ||
<mat-card-content> | ||
<mat-form-field style="width: 100%"> | ||
<textarea #tA matInput style="width: 100%" rows="20" (keyup)="generateSvg(tA.value)" | ||
placeholder="Plant uml code">Bob->Alice : hello</textarea> | ||
</mat-form-field> | ||
<div> | ||
<input matInput id="primary" #first type="color" value="#A80036" | ||
(click)="colorChange('primary', first.value)" (change)="colorChange('primary', first.value)"> | ||
{{first.value}} | ||
primary color, used for borders and lines | ||
<input matInput id="secondary" #second type="color" value="#FEFECE" | ||
(click)="colorChange('secondary', second.value)" | ||
(change)="colorChange('secondary', second.value)"> | ||
{{second.value}} | ||
secondary color, used for backgrounds | ||
<input matInput id="tertiary" #third type="color" value="#fbfb77" | ||
(click)="colorChange('tertiary', third.value)" (change)="colorChange('tertiary', third.value)"> | ||
{{third.value}} | ||
tertiary color, used for notes | ||
<input matInput id="quaternary" #fourth type="color" value="#3a3a3a" | ||
(click)="colorChange('quaternary', fourth.value)" | ||
(change)="colorChange('quaternary', fourth.value)"> | ||
{{fourth.value}} | ||
quaternary color, used for note borders | ||
<input matInput id="text" #fifth type="color" value="#000000" | ||
(click)="colorChange('text', fifth.value)" (change)="colorChange('text', fifth.value)"> | ||
{{fifth.value}} | ||
text color | ||
</div> | ||
</mat-card-content> | ||
<mat-card-actions> | ||
<button mat-raised-button (click)="download()">download as png</button> | ||
<button mat-raised-button (click)="isaacStyle()">ISAAC style</button> | ||
<button mat-raised-button (click)="toRounded(tA.value)">Rounded corners</button> | ||
<button mat-raised-button (click)="toCircles(tA.value)">Circles</button> | ||
<button mat-raised-button (click)="toEllipse(tA.value)">Ellipses</button> | ||
<button mat-raised-button (click)="toRectangle()">Rectangles</button> | ||
| ||
<label class="buttonClass" for="img">Images</label> | ||
<input hidden #img id="img" type="file" accept="image/*" (change)="toImage(img, tA.value)" | ||
value="Image"><br><br> | ||
<!-- <section > --> | ||
<mat-checkbox color="primary" class="example-margin" (change)="changeHidden(tA.value)">hide notes | ||
</mat-checkbox> | ||
<!-- </section> --> | ||
|
||
<p> | ||
<input id="tertiary" #third type="color" value="#fbfb77" (click)="colorChange('tertiary', third.value)" | ||
(change)="colorChange('tertiary', third.value)"> | ||
{{third.value}} | ||
tertiary color, used for notes | ||
</p> | ||
<p> | ||
<input id="quaternary" #fourth type="color" value="#3a3a3a" (click)="colorChange('quaternary', fourth.value)" | ||
(change)="colorChange('quaternary', fourth.value)"> | ||
{{fourth.value}} | ||
quaternary color, used for note borders | ||
</p> | ||
<p> | ||
<input id="text" #fifth type="color" value="#000000" (click)="colorChange('text', fifth.value)" | ||
(change)="colorChange('text', fifth.value)"> | ||
{{fifth.value}} | ||
text color | ||
</p> | ||
</div><br> | ||
<a download="sequence.png" (mouseover)="download()" href="{{png}}"><button>download as png</button></a> | ||
<button (click)="isaacStyle()">ISAAC style</button> | ||
<button (click)="toCircles(tA.value)">Circles</button> | ||
<button (click)="toEllipse(tA.value)">Ellipses</button> | ||
<button (click)="toRounded(tA.value)">Rounded corners</button> | ||
<button (click)="toRectangle()">Rectangles</button> | ||
hide notes<input type="checkbox" (change)="changeHidden(tA.value)"> | ||
<input #img type="file" accept="image/*" (change)="toImage(img, tA.value)" value="Image"> | ||
<br><br> | ||
<div [innerHTML]="svg | trustHtml"></div> | ||
|
||
</mat-card-actions> | ||
</mat-card> | ||
<mat-card class="card"> | ||
<mat-card-header> | ||
<mat-card-title>Diagram</mat-card-title> | ||
</mat-card-header> | ||
<mat-card-content> | ||
<div [innerHTML]="svg | trustHtml"></div> | ||
</mat-card-content> | ||
<mat-card-actions> | ||
|
||
</mat-card-actions> | ||
</mat-card> | ||
</ng-container> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
div.right { | ||
position: relative; | ||
float: right; | ||
margin-right: 45%; | ||
margin-right: 40%; | ||
} | ||
@media screen and (min-width: 1400px) and (max-width:1900px) { | ||
div.right { | ||
position: relative; | ||
float: right; | ||
margin-right: 25%; | ||
margin-right: 20%; | ||
} | ||
} | ||
|
||
@media (max-width: 1400px) { | ||
div.right { | ||
position: relative; | ||
float: right; | ||
margin-right: 5%; | ||
margin-right: 0%; | ||
} | ||
} | ||
.card { | ||
max-width: 900px; | ||
margin: 8px; | ||
} | ||
|
Oops, something went wrong.