datastake-daf 0.6.477 → 0.6.479

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13142,8 +13142,21 @@ const renderElement = item => {
13142
13142
  titleChildren.push(new docx__namespace.ImageRun({
13143
13143
  data: data.percentageImage,
13144
13144
  transformation: {
13145
- width: data.percentageImageWidth || 50,
13146
- height: data.percentageImageHeight || 50
13145
+ width: data.percentageImageWidth || 60,
13146
+ height: data.percentageImageHeight || 20
13147
+ },
13148
+ floating: {
13149
+ horizontalPosition: {
13150
+ relative: docx__namespace.HorizontalPositionRelativeFrom.CHARACTER,
13151
+ align: docx__namespace.HorizontalPositionAlign.LEFT
13152
+ },
13153
+ verticalPosition: {
13154
+ relative: docx__namespace.VerticalPositionRelativeFrom.LINE,
13155
+ align: docx__namespace.VerticalPositionAlign.CENTER
13156
+ },
13157
+ wrap: {
13158
+ type: docx__namespace.TextWrappingType.NONE
13159
+ }
13147
13160
  }
13148
13161
  }));
13149
13162
  }
@@ -13155,9 +13168,11 @@ const renderElement = item => {
13155
13168
  }));
13156
13169
  } else {
13157
13170
  sectionChildren.push(new docx__namespace.Paragraph({
13158
- text: data.title,
13159
- bold: true,
13160
- size: 24,
13171
+ children: [new docx__namespace.TextRun({
13172
+ text: data.title,
13173
+ bold: true,
13174
+ size: 24
13175
+ })],
13161
13176
  spacing: {
13162
13177
  after: 100
13163
13178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.477",
3
+ "version": "0.6.479",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -383,8 +383,21 @@ const renderElement = (item) => {
383
383
  new docx.ImageRun({
384
384
  data: data.percentageImage,
385
385
  transformation: {
386
- width: data.percentageImageWidth || 50,
387
- height: data.percentageImageHeight || 50,
386
+ width: data.percentageImageWidth || 60,
387
+ height: data.percentageImageHeight || 20,
388
+ },
389
+ floating: {
390
+ horizontalPosition: {
391
+ relative: docx.HorizontalPositionRelativeFrom.CHARACTER,
392
+ align: docx.HorizontalPositionAlign.LEFT,
393
+ },
394
+ verticalPosition: {
395
+ relative: docx.VerticalPositionRelativeFrom.LINE,
396
+ align: docx.VerticalPositionAlign.CENTER,
397
+ },
398
+ wrap: {
399
+ type: docx.TextWrappingType.NONE,
400
+ }
388
401
  }
389
402
  })
390
403
  );
@@ -399,9 +412,13 @@ const renderElement = (item) => {
399
412
  } else {
400
413
  sectionChildren.push(
401
414
  new docx.Paragraph({
402
- text: data.title,
403
- bold: true,
404
- size: 24,
415
+ children: [
416
+ new docx.TextRun({
417
+ text: data.title,
418
+ bold: true,
419
+ size: 24
420
+ })
421
+ ],
405
422
  spacing: { after: 100 }
406
423
  })
407
424
  );