Skip to content

Commit

Permalink
chore(pdf): remove decorations
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Nov 29, 2021
1 parent dbd4b50 commit df329da
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 109 deletions.
26 changes: 0 additions & 26 deletions src/components/editor/pdf/set/PDFConfigurationSetHeadingOne.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,32 +96,6 @@
}}</label>
<InputColorPicker v-model="pdf.headingOne.markerColor" />
</div>
<div class="wb-input-container">
<label class="mx-2 text-xs">{{
t('editor.pdf.custom.generics.decoration')
}}</label>
<InputSelect
v-model="pdf.headingOne.decoration"
class="flex-1"
:arr="useDefines().pdf().decoration()"
/>
</div>
<div class="wb-input-container">
<label class="mx-2 text-xs">{{
t('editor.pdf.custom.generics.decorationStyle')
}}</label>
<InputSelect
v-model="pdf.headingOne.decorationStyle"
class="flex-1"
:arr="useDefines().pdf().decorationStyle()"
/>
</div>
<div class="wb-input-container">
<label class="mx-2 text-xs">{{
t('editor.pdf.custom.generics.breakPage')
}}</label>
<InputBoolean v-model="pdf.headingOne.breakPage" />
</div>
</div>
</PDFConfigurationSlot>
</template>
Expand Down
26 changes: 0 additions & 26 deletions src/components/editor/pdf/set/PDFConfigurationSetHeadingThree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,32 +96,6 @@
}}</label>
<InputColorPicker v-model="pdf.headingThree.markerColor" />
</div>
<div class="wb-input-container">
<label class="mx-2 text-xs">{{
t('editor.pdf.custom.generics.decoration')
}}</label>
<InputSelect
v-model="pdf.headingThree.decoration"
class="flex-1"
:arr="useDefines().pdf().decoration()"
/>
</div>
<div class="wb-input-container">
<label class="mx-2 text-xs">{{
t('editor.pdf.custom.generics.decorationStyle')
}}</label>
<InputSelect
v-model="pdf.headingThree.decorationStyle"
class="flex-1"
:arr="useDefines().pdf().decorationStyle()"
/>
</div>
<div class="wb-input-container">
<label class="mx-2 text-xs">{{
t('editor.pdf.custom.generics.breakPage')
}}</label>
<InputBoolean v-model="pdf.headingThree.breakPage" />
</div>
</div>
</PDFConfigurationSlot>
</template>
Expand Down
20 changes: 0 additions & 20 deletions src/components/editor/pdf/set/PDFConfigurationSetHeadingTwo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,26 +96,6 @@
}}</label>
<InputColorPicker v-model="pdf.headingTwo.markerColor" />
</div>
<div class="wb-input-container">
<label class="mx-2 text-xs">{{
t('editor.pdf.custom.generics.decoration')
}}</label>
<InputSelect
v-model="pdf.headingTwo.decoration"
class="flex-1"
:arr="useDefines().pdf().decoration()"
/>
</div>
<div class="wb-input-container">
<label class="mx-2 text-xs">{{
t('editor.pdf.custom.generics.decorationStyle')
}}</label>
<InputSelect
v-model="pdf.headingTwo.decorationStyle"
class="flex-1"
:arr="useDefines().pdf().decorationStyle()"
/>
</div>
<div class="wb-input-container">
<label class="mx-2 text-xs">{{
t('editor.pdf.custom.generics.breakPage')
Expand Down
20 changes: 0 additions & 20 deletions src/components/editor/pdf/set/PDFConfigurationSetParagraph.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,26 +90,6 @@
}}</label>
<InputColorPicker v-model="pdf.paragraph.markerColor" />
</div>
<div class="wb-input-container">
<label class="mx-2 text-xs">{{
t('editor.pdf.custom.generics.decoration')
}}</label>
<InputSelect
v-model="pdf.paragraph.decoration"
class="flex-1"
:arr="useDefines().pdf().decoration()"
/>
</div>
<div class="wb-input-container">
<label class="mx-2 text-xs">{{
t('editor.pdf.custom.generics.decorationStyle')
}}</label>
<InputSelect
v-model="pdf.paragraph.decorationStyle"
class="flex-1"
:arr="useDefines().pdf().decorationStyle()"
/>
</div>
</div>
</PDFConfigurationSlot>
</template>
Expand Down
17 changes: 0 additions & 17 deletions src/use/pdf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,30 +346,13 @@ export const usePDF = () => {

const styles = (): Record<string, any> => {
const paragraph = () => {
let decorationStyle
let decoration

if (PDF.styles.paragraph.decorationStyle === 'none') {
decorationStyle = undefined
} else {
decorationStyle = PDF.styles.paragraph.decorationStyle
}

if (PDF.styles.paragraph.decoration === 'none') {
decoration = undefined
} else {
decoration = PDF.styles.paragraph.decoration
}

return {
font: PDF.styles.paragraph.font,
fontSize: PDF.styles.paragraph.fontSize,
lineHeight: PDF.styles.paragraph.lineHeight,
alignment: PDF.styles.paragraph.alignment,
characterSpacing: PDF.styles.paragraph.characterSpacing,
color: PDF.styles.paragraph.color,
decoration: decoration,
decorationStyle: decorationStyle,
decorationColor: PDF.styles.paragraph.decorationColor,
}
}
Expand Down

0 comments on commit df329da

Please sign in to comment.