-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Cleaning up the getPostion, getTarget pipeline * Cleaning up the getPostion, getTarget pipeline. Fixed the connection tool. * Updated the valveinsertiontool * removed some more of the `any` s * Temporarily storing infor for valve insertion fixes * Fixed the feature addition section * Added documentation and fixed error types for incorrect datatypes being passed for mouse events. * Cleaned up the viewManagerDelegate references. * Added more missing documentations * Removed the call for the older update connection rendering. * Cleaned up the Feature to not hold the RenderLayer refernce since its breaking the rules of core packages being able to live without other packages. * Fixed issue where macro was swapped with type. Type is the geometric operation that is allowed macro is the name of the drawing subroutine. * Finished implementing 1 pass of the features * Modified Manufacturing info keys to be syntactic so that typescript checker can catch them. * Added the templates for the newer features and geometric elements. First test is for making sure that the valve features are getting rendered.
- Loading branch information
1 parent
43cf9fc
commit e2443b8
Showing
45 changed files
with
1,015 additions
and
196 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
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,19 @@ | ||
# Layers structure | ||
|
||
Rendering KEY DATA: | ||
- UNIQUE KEY | ||
- HEIGHT OF THE FEATURE (Z) | ||
- FABTYPE OPERATION(S): This means that we can have multiple operations per feature. | ||
- XY | ||
- UNION | ||
- SUBTRACT | ||
- INTERSECT | ||
- XYZ | ||
- UNION | ||
- SUBTRACT | ||
- INTERSECT | ||
- Z | ||
- UNION | ||
- SUBTRACT | ||
- INTERSECT | ||
- Relative layer assignment ? |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { ComponentAPI } from "@/componentAPI"; | ||
import { GeometricOperationType, GeometryElementInterchangeV1_2 } from "./init"; | ||
import Layer from "./layer"; | ||
import Params from "./params"; | ||
|
||
export default class GeometryElement { | ||
|
||
private _id: string; | ||
private _macro: string; | ||
private _geometricOperation: GeometricOperationType; | ||
private _layer: Layer; | ||
|
||
private _params: Params; | ||
|
||
constructor(id: string = ComponentAPI.generateID(), macro:string, geometricOperation: GeometricOperationType, layer: Layer, params: { [k: string]: any } = {}) { | ||
this._id = id; | ||
this._macro = macro; | ||
this._geometricOperation = geometricOperation; | ||
this._layer = layer; | ||
|
||
// Initilize the params | ||
this._params = new Params(params, new Map<string, string>(), new Map<string, string>()); | ||
} | ||
|
||
get id(): string { | ||
return this._id; | ||
} | ||
|
||
get type(): string { | ||
return this._macro; | ||
} | ||
|
||
get geometricOperation(): GeometricOperationType { | ||
return this._geometricOperation; | ||
} | ||
|
||
get layer(): Layer { | ||
return this._layer; | ||
} | ||
|
||
get params(): Params { | ||
return this._params; | ||
} | ||
|
||
toInterchageV1_2(): GeometryElementInterchangeV1_2 { | ||
return { | ||
id: this._id, | ||
macro: this._macro, | ||
params: this._params.toJSON(), | ||
geometricOperation: this._geometricOperation, | ||
mgflayerID: this._layer.id | ||
}; | ||
} | ||
} |
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
Oops, something went wrong.