Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/userGuide/syntax/annotations.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ This is effectively the same as the options used for the [picture](#pictures) co
| src | `string` | | **This must be specified.**<br>The URL of the image.<br>The URL can be specified as absolute or relative references. More info in: _[Intra-Site Links]({{baseUrl}}/userGuide/formattingContents.html#intraSiteLinks)_ |
| height | `string` |`''`| The height of the image in pixels. |
| width | `string` |`''`| The width of the image in pixels.<br>If both width and height are specified, width takes priority over height. It is to maintain the image's aspect ratio. |
| eager | `boolean` | false | The `<pic>` component lazy loads its images by default.<br>If you want to eagerly load the images, simply specify this attribute. |

</div>

Expand Down
5 changes: 0 additions & 5 deletions docs/userGuide/syntax/pictures.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
<pic src="https://markbind.org/images/logo-lightbackground.png" width="300" alt="Logo">
MarkBind Logo
</pic>

<pic src="https://markbind.org/images/logo-lightbackground.png" width="300" alt="Logo" eager>
MarkBind Logo
</pic>
</variable>
</include>

Expand All @@ -22,7 +18,6 @@ alt | `string` | | **This must be specified.**<br>The alternative text of the im
height | `string` | | The height of the image in pixels.
src | `string` | | **This must be specified.**<br>The URL of the image.<br>The URL can be specified as absolute or relative references. More info in: _[Intra-Site Links]({{baseUrl}}/userGuide/formattingContents.html#intraSiteLinks)_
width | `string` | | The width of the image in pixels.<br>If both width and height are specified, width takes priority over height. It is to maintain the image's aspect ratio.
eager | `boolean` | false | The `<pic>` component lazy loads its images by default.<br>If you want to eagerly load the images, simply specify this attribute.

<div id="short" class="d-none">

Expand Down
8 changes: 0 additions & 8 deletions packages/vue-components/src/Pic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
:alt="alt"
:width="computedWidth"
class="img-fluid rounded"
:loading="computedLoadType"
@load.once="computeWidth"
/>
<span class="image-caption">
Expand Down Expand Up @@ -36,10 +35,6 @@ export default {
type: String,
default: '',
},
eager: {
type: Boolean,
default: false,
},
addClass: {
type: String,
default: '',
Expand All @@ -58,9 +53,6 @@ export default {
}
return this.widthFromHeight;
},
computedLoadType() {
return this.eager ? 'eager' : 'lazy';
},
},
data() {
return {
Expand Down
8 changes: 0 additions & 8 deletions packages/vue-components/src/annotations/Annotate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
:alt="alt"
:width="computedWidth"
class="annotate-image"
:loading="computedLoadType"
@load.once="getWidth"
/>
<div style="top: 0; left: 0; height: 0;">
Expand Down Expand Up @@ -36,10 +35,6 @@ export default {
type: String,
default: '',
},
eager: {
type: Boolean,
default: false,
},
addClass: {
type: String,
default: '',
Expand All @@ -58,9 +53,6 @@ export default {
}
return this.widthFromHeight;
},
computedLoadType() {
return this.eager ? 'eager' : 'lazy';
},
},
data() {
return {
Expand Down