Other Threat Modeling Entities
AND Gate
- Preview
- Usage
- Definition
import { AndGate } from '@dinghy/diagrams/entitiesThreatModeling'
<AndGate/>
// or
import { extendStyle } from "@dinghy/base-components";
import { AND_GATE } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, AND_GATE)}
/>
{
_style: {
entity: 'shape=or;whiteSpace=wrap;html=1;direction=north;fillColor=#dae8fc;strokeColor=#6c8ebf;',
},
_width: 120,
_height: 80,
}
Asset Label
- Preview
- Usage
- Definition
import { AssetLabel } from '@dinghy/diagrams/entitiesThreatModeling'
<AssetLabel/>
// or
import { extendStyle } from "@dinghy/base-components";
import { ASSET_LABEL } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, ASSET_LABEL)}
/>
{
_style: {
entity: 'text;html=1;strokeColor=#d6b656;fillColor=#fff2cc;align=center;verticalAlign=middle;whiteSpace=wrap;overflow=hidden;',
},
_width: 40,
_height: 20,
}
Data Store
- Preview
- Usage
- Definition
import { DataStore } from '@dinghy/diagrams/entitiesThreatModeling'
<DataStore/>
// or
import { extendStyle } from "@dinghy/base-components";
import { DATA_STORE } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, DATA_STORE)}
/>
{
_style: {
entity: 'shape=partialRectangle;whiteSpace=wrap;html=1;left=0;right=0;fillColor=none;',
},
_width: 120,
_height: 80,
}
External Entity
- Preview
- Usage
- Definition
import { ExternalEntity } from '@dinghy/diagrams/entitiesThreatModeling'
<ExternalEntity/>
// or
import { extendStyle } from "@dinghy/base-components";
import { EXTERNAL_ENTITY } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, EXTERNAL_ENTITY)}
/>
{
_style: {
entity: 'rounded=0;whiteSpace=wrap;html=1;',
},
_width: 120,
_height: 60,
}
Label
- Preview
- Usage
- Definition
import { Label } from '@dinghy/diagrams/entitiesThreatModeling'
<Label/>
// or
import { extendStyle } from "@dinghy/base-components";
import { LABEL } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, LABEL)}
/>
{
_style: {
entity: 'text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;overflow=hidden;',
},
_width: 80,
_height: 20,
}
Leaf Node
- Preview
- Usage
- Definition
import { LeafNode } from '@dinghy/diagrams/entitiesThreatModeling'
<LeafNode/>
// or
import { extendStyle } from "@dinghy/base-components";
import { LEAF_NODE } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, LEAF_NODE)}
/>
{
_style: {
entity: 'rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;',
},
_width: 120,
_height: 80,
}
Multi-Process
- Preview
- Usage
- Definition
import { MultiProcess } from '@dinghy/diagrams/entitiesThreatModeling'
<MultiProcess/>
// or
import { extendStyle } from "@dinghy/base-components";
import { MULTI_PROCESS } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, MULTI_PROCESS)}
/>
{
_style: {
entity: 'ellipse;shape=doubleEllipse;whiteSpace=wrap;html=1;aspect=fixed;',
},
_original_width: 80,
_original_height: 80,
}
Note
- Preview
- Usage
- Definition
import { Note } from '@dinghy/diagrams/entitiesThreatModeling'
<Note/>
// or
import { extendStyle } from "@dinghy/base-components";
import { NOTE } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, NOTE)}
/>
{
_style: {
entity: 'shape=note;strokeWidth=2;fontSize=14;size=20;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=#666600;',
},
_width: 110.00000000000001,
_height: 80,
}
OR Gate
- Preview
- Usage
- Definition

import { OrGate } from '@dinghy/diagrams/entitiesThreatModeling'
<OrGate/>
// or
import { extendStyle } from "@dinghy/base-components";
import { OR_GATE } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, OR_GATE)}
/>
{
_style: {
entity: 'shape=xor;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;direction=north;',
},
_width: 120,
_height: 80,
}
Process
- Preview
- Usage
- Definition
import { Process } from '@dinghy/diagrams/entitiesThreatModeling'
<Process/>
// or
import { extendStyle } from "@dinghy/base-components";
import { PROCESS } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, PROCESS)}
/>
{
_style: {
entity: 'ellipse;whiteSpace=wrap;html=1;aspect=fixed;',
},
_original_width: 80,
_original_height: 80,
}
Security Control Label
- Preview
- Usage
- Definition
import { SecurityControlLabel } from '@dinghy/diagrams/entitiesThreatModeling'
<SecurityControlLabel/>
// or
import { extendStyle } from "@dinghy/base-components";
import { SECURITY_CONTROL_LABEL } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, SECURITY_CONTROL_LABEL)}
/>
{
_style: {
entity: 'text;html=1;strokeColor=#82b366;fillColor=#d5e8d4;align=center;verticalAlign=middle;whiteSpace=wrap;overflow=hidden;',
},
_width: 30,
_height: 20,
}
Threat Actor Label
- Preview
- Usage
- Definition
import { ThreatActorLabel } from '@dinghy/diagrams/entitiesThreatModeling'
<ThreatActorLabel/>
// or
import { extendStyle } from "@dinghy/base-components";
import { THREAT_ACTOR_LABEL } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, THREAT_ACTOR_LABEL)}
/>
{
_style: {
entity: 'text;html=1;strokeColor=#b85450;fillColor=#f8cecc;align=center;verticalAlign=middle;whiteSpace=wrap;overflow=hidden;',
},
_width: 40,
_height: 20,
}
Trust Boundary
- Preview
- Usage
- Definition
import { TrustBoundary } from '@dinghy/diagrams/entitiesThreatModeling'
<TrustBoundary/>
// or
import { extendStyle } from "@dinghy/base-components";
import { TRUST_BOUNDARY } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, TRUST_BOUNDARY)}
/>
{
_style: {
entity: 'html=1;fontColor=#FF3333;fontStyle=1;align=left;verticalAlign=top;spacing=0;labelBorderColor=none;fillColor=none;dashed=1;strokeWidth=2;strokeColor=#FF3333;spacingLeft=4;spacingTop=-3;',
},
_width: 290,
_height: 140,
}
Trust Boundary 2
- Preview
- Usage
- Definition
import { TrustBoundary2 } from '@dinghy/diagrams/entitiesThreatModeling'
<TrustBoundary2/>
// or
import { extendStyle } from "@dinghy/base-components";
import { TRUST_BOUNDARY_2 } from '@dinghy/diagrams/entitiesThreatModeling'
<Shape
{...props}
_style={extendStyle(props, TRUST_BOUNDARY_2)}
/>
{
_style: {
entity: 'shape=requiredInterface;html=1;verticalLabelPosition=bottom;dashed=1;strokeColor=#FF3333;strokeWidth=2;fillColor=none;fontColor=#FF3333;align=center;verticalAlign=top;labelPosition=center;',
},
_width: 20,
_height: 330,
}