Skip to main content
Module

x/graphviz/mod.ts>AttributesBase

🦕 Simple Graphviz library for Deno.
Latest
class AttributesBase
implements IAttributesBase<T>
extends DotObject
Re-export
Abstract
import { AttributesBase } from "https://deno.land/x/graphviz@v0.2.1/mod.ts";

Constructors

new
AttributesBase(attributes?: AttributesObject<T>)

Type Parameters

T extends string

Properties

protected
attrs: Map<T, AttributesValue>
readonly
size: number

The size of the attribute.

readonly
values: ReadonlyArray<[T, AttributesValue]>

Methods

clear(): void
delete(key: T): void
get(key: T): AttributesValue | undefined

The size of the attribute.

set(key: T, value: AttributesValue): void

Set a value to the attribute.