PaddingSegment Class
An empty segment that occupies 'cachedLength' positions. SparseMatrix uses PaddingSegment to "pad" a run of unoccupied cells.
This API is deprecated and will be removed in a future release.
PaddingSegment is part of an abandoned prototype. Use SharedMatrix instead.
Signature
export declare class PaddingSegment extends BaseSegment
Extends: BaseSegment
Constructors
Constructor | Description |
---|---|
(constructor)(size) | Constructs a new instance of the PaddingSegment class |
Static Properties
Property | Type | Description |
---|---|---|
typeString |
Static Methods
Method | Return Type | Description |
---|---|---|
fromJSONObject(spec) | PaddingSegment | |
is(segment) | segment is PaddingSegment |
Properties
Property | Type | Description |
---|---|---|
type |
Methods
Method | Return Type | Description |
---|---|---|
append(segment) | void | |
canAppend(segment) | boolean | |
clone(start, end) | PaddingSegment | |
createSplitSegmentAt(pos) | PaddingSegment | |
removeRange(start, end) | boolean | |
toJSONObject() | { pad: number; props: PropertySet; } | |
toString() | string |
Constructor Details
(constructor)
Constructs a new instance of the PaddingSegment
class
Signature
constructor(size: number);
Parameters
Parameter | Type | Description |
---|---|---|
size | number |
Property Details
type
Signature
readonly type = "PaddingSegment";
typeString
Signature
static readonly typeString = "PaddingSegment";
Method Details
append
Signature
append(segment: ISegment): void;