Skip to content

Commit

Permalink
Merge branch 'main' into feature/bullet-legend-render
Browse files Browse the repository at this point in the history
  • Loading branch information
reb-dev authored Apr 27, 2024
2 parents a60db8d + 81b2546 commit bf93216
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// !!! This code was automatically generated. You should not change it !!!
import { Component, AfterViewInit, Input, SimpleChanges, ViewChild, ElementRef } from '@angular/core'

import {
BulletLegend,
BulletLegendConfigInterface,
Expand All @@ -8,6 +9,9 @@ import {
BulletShape,
BulletLegendOrientation,
} from '@unovis/ts'

import { BulletLegend, BulletLegendConfigInterface, BulletLegendItemInterface, GenericAccessor, BulletShape } from '@unovis/ts'

import { VisGenericComponent } from '../../core'

@Component({
Expand Down
4 changes: 3 additions & 1 deletion packages/react/autogen/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export type Vis${componentName}Ref${genericsDefStr} = {
}
export type Vis${componentName}Props${genericsDefStr} = ${componentName}ConfigInterface${genericsStr} & {${dataType ? `\n data?: ${dataType};` : ''}
export type Vis${componentName}Props${genericsDefStr} = ${componentName}ConfigInterface${genericsStr} & {
data?: ${dataType};
ref?: Ref<Vis${componentName}Ref${genericsStr}>;${isStandAlone ? '\nclassName?: string;' : ''}
}
Expand Down Expand Up @@ -64,7 +66,7 @@ function Vis${componentName}FC${genericsDefStr} (props: Vis${componentName}Props
${dataType ? 'if (props.data) component?.setData(props.data)' : ''}
component?.${componentName === 'BulletLegend' ? 'update ' : 'setConfig'}(props)
})
useImperativeHandle(fRef, () => ({ get component () { return ${isStandAlone ? 'component' : 'componentRef.current'} } }), [])
return <${isStandAlone ? 'div className={props.className}' : `vis-${elementSuffix}`} ref={ref} />
}
Expand Down

0 comments on commit bf93216

Please sign in to comment.