wire package refactor
This commit is contained in:
parent
fba2c4e249
commit
f835f7364c
@ -1,22 +1,10 @@
|
||||
@import "../wire/wire.component.less";
|
||||
|
||||
.circuit {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.wireBack {
|
||||
stroke-linecap: round;
|
||||
stroke-width: 11px;
|
||||
stroke: black;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.wire {
|
||||
stroke-width: 9px;
|
||||
stroke-dasharray: 0 20;
|
||||
stroke-linecap: round;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.wireOpen {
|
||||
stroke: blue;
|
||||
stroke-dasharray: 5px 15px;
|
||||
|
||||
@ -6,7 +6,7 @@ import {Parts} from './Parts';
|
||||
import {PartComponent} from '../parts/part.component';
|
||||
|
||||
import {Circuit} from './Circuit';
|
||||
import {WireComponent} from '../part-wire/wire.component';
|
||||
import {WireComponent} from '../wire/wire.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-circuit',
|
||||
|
||||
@ -1,5 +0,0 @@
|
||||
@import "../parts/part.component.less";
|
||||
|
||||
.partWireBack {
|
||||
stroke-width: 5px;
|
||||
}
|
||||
@ -1,6 +1,6 @@
|
||||
import {Component, Input} from '@angular/core';
|
||||
import {Battery} from './Battery';
|
||||
import {WireComponent} from '../../part-wire/wire.component';
|
||||
import {WireComponent} from '../../wire/wire.component';
|
||||
|
||||
@Component({
|
||||
selector: 'g[inner-part-battery]',
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
@import "../circuit/circuit.component.less";
|
||||
@import "../wire/wire.component.less";
|
||||
|
||||
.part {
|
||||
border-radius: 0.51em;
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import {Component, Input} from '@angular/core';
|
||||
import {Relay} from './Relay';
|
||||
import {NgIf} from '@angular/common';
|
||||
import {WireComponent} from '../../part-wire/wire.component';
|
||||
import {WireComponent} from '../../wire/wire.component';
|
||||
|
||||
@Component({
|
||||
selector: 'g[inner-part-relay]',
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import {Component, Input} from '@angular/core';
|
||||
import {Switch} from './Switch';
|
||||
import {WireComponent} from '../../part-wire/wire.component';
|
||||
import {WireComponent} from '../../wire/wire.component';
|
||||
|
||||
@Component({
|
||||
selector: 'g[inner-part-switch]',
|
||||
|
||||
13
src/main/angular/src/app/editor/wire/wire.component.less
Normal file
13
src/main/angular/src/app/editor/wire/wire.component.less
Normal file
@ -0,0 +1,13 @@
|
||||
.wireBack {
|
||||
stroke-linecap: round;
|
||||
stroke-width: 11px;
|
||||
stroke: black;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.wire {
|
||||
stroke-width: 9px;
|
||||
stroke-dasharray: 0 20;
|
||||
stroke-linecap: round;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
Before Width: | Height: | Size: 462 B After Width: | Height: | Size: 462 B |
@ -1,5 +1,5 @@
|
||||
import {Component, Input} from '@angular/core';
|
||||
import {ANIMATION_ELECTRON_STEPS, Wire} from '../wire/Wire';
|
||||
import {ANIMATION_ELECTRON_STEPS, Wire} from './Wire';
|
||||
import {Junction} from '../junction/Junction';
|
||||
import {fadeColor} from '../colorHelpers';
|
||||
import {NgIf} from '@angular/common';
|
||||
Loading…
Reference in New Issue
Block a user