forked from frangoteam/FUXA
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
30 changed files
with
261 additions
and
56 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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
2 changes: 1 addition & 1 deletion
2
.../dist/main-es2015.899c49b6c672c6fde817.js → .../dist/main-es2015.c7ddb8196d50666876ea.js
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
client/dist/main-es5.899c49b6c672c6fde817.js → client/dist/main-es5.c7ddb8196d50666876ea.js
Large diffs are not rendered by default.
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
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
12 changes: 12 additions & 0 deletions
12
client/src/app/editor/svg-selector/svg-selector.component.html
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,12 @@ | ||
<div class="element-property"> | ||
<div class="element-property-title"> | ||
{{'svg.selector.property-title' | translate}} | ||
</div> | ||
<div class="svg-selector-list"> | ||
<div *ngFor="let svgElement of svgElements" class="svg-selector-item" [ngClass]="{'svg-selector-active': isSelected(svgElement)}" | ||
(click)="onSelected(svgElement)" (mouseout)="onSvgElementPreview(svgElement, false)" (mouseover)="onSvgElementPreview(svgElement, true)"> | ||
<div class="name">{{ svgElement.name }}</div> | ||
<div class="id">{{ svgElement.id }}</div> | ||
</div> | ||
</div> | ||
</div> |
37 changes: 37 additions & 0 deletions
37
client/src/app/editor/svg-selector/svg-selector.component.scss
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,37 @@ | ||
.svg-selector-list { | ||
position: absolute; | ||
top: 35px; | ||
bottom: 0px; | ||
overflow: auto; | ||
margin-top: 10px; | ||
right: 0px; | ||
left: 5px; | ||
} | ||
|
||
.svg-selector-item { | ||
font-size: 12px; | ||
line-height: 24px; | ||
cursor: pointer; | ||
padding-left: 5px; | ||
display: block; | ||
.name { | ||
display: inline-block; | ||
min-width: 170px; | ||
font-size: 13px; | ||
} | ||
|
||
.id { | ||
display: inline-block; | ||
margin-left: 10px; | ||
color:darkgray; | ||
width: 150px; | ||
} | ||
} | ||
|
||
.svg-selector-item:hover { | ||
background-color: #9c9c9c36; | ||
} | ||
|
||
.svg-selector-active { | ||
background-color: rgba(48,89,175,1); | ||
} |
28 changes: 28 additions & 0 deletions
28
client/src/app/editor/svg-selector/svg-selector.component.spec.ts
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,28 @@ | ||
/* tslint:disable:no-unused-variable */ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
import { By } from '@angular/platform-browser'; | ||
import { DebugElement } from '@angular/core'; | ||
|
||
import { SvgSelectorComponent } from './svg-selector.component'; | ||
|
||
describe('SvgSelectorComponent', () => { | ||
let component: SvgSelectorComponent; | ||
let fixture: ComponentFixture<SvgSelectorComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ SvgSelectorComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(SvgSelectorComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.