Skip to main content

@novorender/web_app / ProfileModule

Class: ProfileModule

Module for converting parametric data to profiles. which can easily be used for charts and graphs

Extends

  • BaseModule

Constructors

new ProfileModule()

new ProfileModule(worker, parent): ProfileModule

Parameters

ParameterType
workerMeasureWorker
parentMeasureView

Returns

ProfileModule

Inherited from

BaseModule.constructor

Defined in

@novorender/measure/modules/base.ts:4

Methods

reverse()

reverse(inProfile): Profile

Parameters

ParameterType
inProfileProfile

Returns

Profile

Defined in

@novorender/measure/modules/profile/module.ts:65


viewFromEntity()

viewFromEntity(entity, setting?): Promise<undefined | Profile>

Returns the profile view of a linestrip where x is the length of the line and y is the height This function can be used if an object contains multiple unconnected entities.

Parameters

ParameterTypeDescription
entityMeasureEntityThe parametric entity used to create the profile
setting?MeasureSettingsSettings

Returns

Promise<undefined | Profile>

Profile where x is the length of the line and y is the height, it supports curve segments and cylinders, othwerwise it retuns undefiend

Defined in

@novorender/measure/modules/profile/module.ts:20


viewFromMultiSelect()

viewFromMultiSelect(products, setting?): Promise<undefined | Profile>

Returns the profile view of selected objects where x is the length of the line and y is the height, currently only supports cylinders

Parameters

ParameterTypeDescription
productsnumber[]Products used to create a profile, this can be a list of line segments, line strips or connected cylinders *
setting?MeasureSettingsSettings

Returns

Promise<undefined | Profile>

Profile where x is the length of the line and y is the height, it supports curve segments and cylinders, othwerwise it retuns undefiend

Defined in

@novorender/measure/modules/profile/module.ts:53

Properties

parent

readonly parent: MeasureView;

Inherited from

BaseModule.parent

Defined in

@novorender/measure/modules/base.ts:4


worker

readonly worker: MeasureWorker;

Inherited from

BaseModule.worker

Defined in

@novorender/measure/modules/base.ts:4