Skip to content

gi-nx


gi-nx / setDrawTool

ts
function setDrawTool(tool: {
  brush?: boolean;
  defaultProps?: object;
  pickFileProp?: DrawnFileProp;
  tool:   | "LineString"
     | "Point"
     | "Polygon"
     | "Grid"
     | "MapSelector"
     | "Rectangle"
     | "Ramp"
     | "BasePointMove"
     | "BPRotate"
     | "ChildPolygon"
     | "ChildLineString"
     | "ChildRectangle"
     | "GeometryFilterBoundary"
     | "Split"
     | "OffsetSplit"
     | "Offset"
     | "Orient"
     | "Align"
     | "AlignFeature"
     | "ExtendLine"
     | "Eyedropper"
     | "Mirror"
     | "Lasso"
     | "MeasureDistance"
     | "MeasureArea"
     | "ChooseFeature"
     | "PushPull";
}): void;

Parameters ​

ParameterTypeDescription
tool.brush?booleanapply the remembered properties (the brush) as they stand when each shape is committed
tool.defaultProps?objectthe properties that will be added to the next rawsection that gets created
tool.pickFileProp?DrawnFilePropopen the picker for this defaultProps key once the shape is committed
tool.tool| "LineString" | "Point" | "Polygon" | "Grid" | "MapSelector" | "Rectangle" | "Ramp" | "BasePointMove" | "BPRotate" | "ChildPolygon" | "ChildLineString" | "ChildRectangle" | "GeometryFilterBoundary" | "Split" | "OffsetSplit" | "Offset" | "Orient" | "Align" | "AlignFeature" | "ExtendLine" | "Eyedropper" | "Mirror" | "Lasso" | "MeasureDistance" | "MeasureArea" | "ChooseFeature" | "PushPull"-

Returns ​

void

void