@itwin/core-frontend
Version:
iTwin.js frontend components
53 lines • 1.83 kB
JavaScript
;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Rendering
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.StrokesPrimitiveList = exports.StrokesPrimitive = exports.StrokesPrimitivePointLists = exports.StrokesPrimitivePointList = void 0;
/** @internal */
class StrokesPrimitivePointList {
points;
constructor(points = []) { this.points = [...points]; }
}
exports.StrokesPrimitivePointList = StrokesPrimitivePointList;
/** @internal */
class StrokesPrimitivePointLists extends Array {
constructor(...args) {
super(...args);
}
}
exports.StrokesPrimitivePointLists = StrokesPrimitivePointLists;
/** @internal */
class StrokesPrimitive {
displayParams;
isDisjoint;
isPlanar;
strokes;
static create(params, isDisjoint, isPlanar) {
return new StrokesPrimitive(params, isDisjoint, isPlanar);
}
constructor(params, isDisjoint, isPlanar) {
this.displayParams = params;
this.strokes = new StrokesPrimitivePointLists();
this.isDisjoint = isDisjoint;
this.isPlanar = isPlanar;
}
transform(trans) {
for (const strk of this.strokes) {
trans.multiplyPoint3dArrayInPlace(strk.points);
}
}
}
exports.StrokesPrimitive = StrokesPrimitive;
/** @internal */
class StrokesPrimitiveList extends Array {
constructor(...args) {
super(...args);
}
}
exports.StrokesPrimitiveList = StrokesPrimitiveList;
//# sourceMappingURL=Strokes.js.map