build(packages): npm build/publish improvements. Making packages publishable again. (#30196)

This commit is contained in:
Evan Rusackas
2024-12-10 16:54:41 -07:00
committed by GitHub
parent 42f4490bbc
commit a6e05f4558
77 changed files with 10090 additions and 1969 deletions

View File

@@ -199,15 +199,17 @@ class WordCloud extends PureComponent<FullWordCloudProps, WordCloudState> {
.words(data.map(d => ({ ...d })))
.padding(5)
.rotate(ROTATION[rotation] || ROTATION.flat)
.text(d => encoder.channels.text.getValueFromDatum(d))
.font(d =>
.text((d: PlainObject) => encoder.channels.text.getValueFromDatum(d))
.font((d: PlainObject) =>
encoder.channels.fontFamily.encodeDatum(
d,
this.props.theme.typography.families.sansSerif,
),
)
.fontWeight(d => encoder.channels.fontWeight.encodeDatum(d, 'normal'))
.fontSize(d => encoder.channels.fontSize.encodeDatum(d, 0))
.fontWeight((d: PlainObject) =>
encoder.channels.fontWeight.encodeDatum(d, 'normal'),
)
.fontSize((d: PlainObject) => encoder.channels.fontSize.encodeDatum(d, 0))
.on('end', (words: Word[]) => {
if (isValid(words) || scaleFactor > MAX_SCALE_FACTOR) {
if (this.isComponentMounted) {