This component is the main component to render a visual presentation of a {@link Transaction}.
Depending whether the intake transaction is an aggregate transaction or not, this component will render just one,
or a list of transactions with different layout and textual/graphic details.
Note that this component utilizes and integrates other transaction components.
You can customize this component using custom HTML
attributes as listed below.
new with object props
ideally, the return type should just contain Props,
not Record<keyof Props, any>. But TS requires to have Base constructors
with the same return type.
Getter of this component's height.
Result is in format "{height}px".
If height is not defined returns "0".
access
protected
Returns string
Protected _width
get _width(): string
Getter of this component's width.
Result is in format "{width}px".
If width is not defined returns "0".
access
protected
Returns string
Protected _x
get _x(): string
Getter of prop x.
Return x in pixels.
access
protected
Returns string
Protected _y
get _y(): string
Getter of prop y.
Return y in pixels.
access
protected
Returns string
Protected aggregateContainerClass
get aggregateContainerClass(): string
Getter to return aggregate container class name.
Returned value will be based on whether this component is displayed
on mobile view or not.
access
protected
Returns string
Protected aggregateTitle
get aggregateTitle(): string
Getter to return aggregate title caption to display.
access
protected
Returns string
Protected circlesCount
get circlesCount(): number
Method to returns number of circles to display in this component.
access
protected
Returns number
Protected cosigners
get cosigners(): PublicAccount[]
Getter to get all signers of this component's transaction in case it is
of type {@link TransactionType.AGGREGATE_BONDED}.
Note that all signer accounts will be displayed as wallet addresses.
access
protected
Returns PublicAccount[]
Protected isAggregate
get isAggregate(): boolean
Getter that checks whether transaction prop is aggregate.
access
protected
Returns boolean
Protected isMobile
get isMobile(): boolean
Computed property to check whether client is running with mobile.
access
protected
Returns boolean
Protected isWidgetShown
get isWidgetShown(): boolean
Getter that checks whether widget is supposed to show.
access
protected
Returns boolean
Protected objectPositionX
get objectPositionX(): number
Returns object's position on x-axis depending on platform.
access
protected
Returns number
Protected objectPositionY
get objectPositionY(): number
Returns object's position on y-axis depending on platform.
access
protected
Returns number
Protected subjectHeight
get subjectHeight(): number
Returns subject height.
access
protected
Returns number
Protected subjectPositionX
get subjectPositionX(): number
Returns adjusted position on x-axis depending on platform.
access
protected
Returns number
Protected subjectPositionY
get subjectPositionY(): number
Returns adjusted position on y-axis depending on platform.
access
protected
Returns number
Protected subjectWidth
get subjectWidth(): number
Returns subject width.
access
protected
Returns number
Protected transactionGraphicHeight
get transactionGraphicHeight(): number
Calculate graphic height depending on platform.
access
protected
Returns number
Protected transactionGraphicViewbox
get transactionGraphicViewbox(): string
Computed property to return this component's viewBox specifics
depending on if client is on mobile or not.
This component is the main component to render a visual presentation of a {@link Transaction}. Depending whether the intake transaction is an aggregate transaction or not, this component will render just one, or a list of transactions with different layout and textual/graphic details. Note that this component utilizes and integrates other transaction components.
You can customize this component using custom HTML attributes as listed below.
Using the DappGraphicComponent component
Parameters
The {@link Transaction} instance to be displayed.
The optional flag to set whether to display inner transactions' index number in case the intake transaction is an aggregate transaction.
v0.1.0