Home Reference Source
import {IdManager} from 'postprocessing'
public class | source

IdManager

An ID manager.

Constructor Summary

Public Constructor
public

constructor(initialId: *)

Constructs a new ID manager.

Member Summary

Public Members
public

nextId: *

The next ID.

Method Summary

Public Methods
public

getNextId(): *

Returns the next unique ID.

public

reset(initialId: *): *

Resets the ID counter.

Public Constructors

public constructor(initialId: *) source

Constructs a new ID manager.

Params:

NameTypeAttributeDescription
initialId *

The first ID.

Public Members

public nextId: * source

The next ID.

Public Methods

public getNextId(): * source

Returns the next unique ID.

Return:

*

The ID.

public reset(initialId: *): * source

Resets the ID counter.

Params:

NameTypeAttributeDescription
initialId *

The first ID.

Return:

*

This manager.