@mlightcad/data-model
Version:
The data-model package provides the core classes for interacting with AutoCAD's database and entities. This package mimics AutoCAD ObjectARX's AcDb (Database) classes and implements the drawing database structure that AutoCAD developers are familiar with.
49 lines • 1.86 kB
JavaScript
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import { AcDbSymbolTable } from './AcDbSymbolTable';
/**
* Symbol table for viewport table records.
*
* This class manages viewport table records which represent viewport configurations
* within AutoCAD. Viewports define how the drawing is displayed in different
* areas of the screen or paper space, including zoom levels, pan positions,
* and other display properties.
*
* @example
* ```typescript
* const viewportTable = new AcDbViewportTable(database);
* const viewport = viewportTable.getAt('*Active');
* ```
*/
var AcDbViewportTable = /** @class */ (function (_super) {
__extends(AcDbViewportTable, _super);
/**
* Creates a new AcDbViewportTable instance.
*
* @param db - The database this viewport table belongs to
*
* @example
* ```typescript
* const viewportTable = new AcDbViewportTable(database);
* ```
*/
function AcDbViewportTable(db) {
return _super.call(this, db) || this;
}
return AcDbViewportTable;
}(AcDbSymbolTable));
export { AcDbViewportTable };
//# sourceMappingURL=AcDbViewportTable.js.map