import {FloorplannerView2D} from 'blueprint3d-js/scripts/floorplanner/floorplanner_view.js'FloorplannerView2D
The View to be used by a Floorplanner to render in/interact with.
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
canvas: * |
|
| public |
|
|
| public get |
carbonSheet: * |
|
| public |
context: * |
|
| public |
floorplan: * |
|
| public |
viewmodel: * |
|
| Private Members | ||
| private |
_carbonsheet: * |
|
Method Summary
| Public Methods | ||
| public |
calculateGridOffset(n: *): * returns n where -gridSize/2 < n <= gridSize/2 |
|
| public |
draw() |
|
| public |
drawCircle(centerX: *, centerY: *, radius: *, fillColor: *) |
|
| public |
drawCorner(corner: *) |
|
| public |
drawEdge(edge: *, hover: *) |
|
| public |
drawEdgeLabel(edge: *) |
|
| public |
drawEdgeLabelExterior(edge: *) |
|
| public |
drawGrid() |
|
| public |
drawLine(startX: *, startY: *, endX: *, endY: *, width: *, color: *) |
|
| public |
|
|
| public |
drawPolygon(xArr: *, yArr: *, fill: *, fillColor: *, stroke: *, strokeColor: *, strokeWidth: *) |
|
| public |
drawRoom(room: *) |
|
| public |
drawTarget(x: *, y: *, lastNode: *) |
|
| public |
drawTextLabel(label: *, x: *, y: *, textcolor: string, strokecolor: string, style: string) |
|
| public |
drawWall(wall: *) |
|
| public |
drawWallLabels(wall: *) |
|
| public |
drawWallLabelsMiddle(wall: *) |
|
| public |
|
|
Public Constructors
public constructor() source
Public Members
public canvas: * source
public canvasElement: * source
public get carbonSheet: * source
public context: * source
public floorplan: * source
public viewmodel: * source
Private Members
private _carbonsheet: * source
Public Methods
public calculateGridOffset(n: *): * source
returns n where -gridSize/2 < n <= gridSize/2
Params:
| Name | Type | Attribute | Description |
| n | * |
Return:
| * |
public draw() source
public drawCircle(centerX: *, centerY: *, radius: *, fillColor: *) source
Params:
| Name | Type | Attribute | Description |
| centerX | * | ||
| centerY | * | ||
| radius | * | ||
| fillColor | * |
public drawCorner(corner: *) source
Params:
| Name | Type | Attribute | Description |
| corner | * |
public drawEdge(edge: *, hover: *) source
Params:
| Name | Type | Attribute | Description |
| edge | * | ||
| hover | * |
public drawEdgeLabel(edge: *) source
Params:
| Name | Type | Attribute | Description |
| edge | * |
public drawEdgeLabelExterior(edge: *) source
Params:
| Name | Type | Attribute | Description |
| edge | * |
public drawGrid() source
public drawLine(startX: *, startY: *, endX: *, endY: *, width: *, color: *) source
Params:
| Name | Type | Attribute | Description |
| startX | * | ||
| startY | * | ||
| endX | * | ||
| endY | * | ||
| width | * | ||
| color | * |
public drawOriginCrossHair() source
public drawPolygon(xArr: *, yArr: *, fill: *, fillColor: *, stroke: *, strokeColor: *, strokeWidth: *) source
Params:
| Name | Type | Attribute | Description |
| xArr | * | ||
| yArr | * | ||
| fill | * | ||
| fillColor | * | ||
| stroke | * | ||
| strokeColor | * | ||
| strokeWidth | * |
public drawRoom(room: *) source
Params:
| Name | Type | Attribute | Description |
| room | * |
public drawTarget(x: *, y: *, lastNode: *) source
Params:
| Name | Type | Attribute | Description |
| x | * | ||
| y | * | ||
| lastNode | * |
public drawTextLabel(label: *, x: *, y: *, textcolor: string, strokecolor: string, style: string) source
public drawWall(wall: *) source
Params:
| Name | Type | Attribute | Description |
| wall | * |
public drawWallLabels(wall: *) source
Params:
| Name | Type | Attribute | Description |
| wall | * |
public drawWallLabelsMiddle(wall: *) source
Params:
| Name | Type | Attribute | Description |
| wall | * |