Skip to content
This repository was archived by the owner on Jan 15, 2024. It is now read-only.

Commit 7bff872

Browse files
committed
chore: bump to 1.5.3 + changelog
1 parent f3b1a16 commit 7bff872

File tree

49 files changed

+125
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+125
-98
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions

dist/iink.esm.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iink.esm.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iink.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iink.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/Editor.html

Lines changed: 50 additions & 50 deletions
Large diffs are not rendered by default.

docs/Editor.js.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ <h1 class="page-title">Editor.js</h1>
403403
this.localTheme = ''
404404

405405
this.theme = theme
406+
this._setThemeFontFamily()
406407
this.penStyle = penStyle
407408
this.penStyleClasses = ''
408409

@@ -592,6 +593,7 @@ <h1 class="page-title">Editor.js</h1>
592593
this.innerRecognizer.close(this.recognizerContext, this.model)
593594
.then((model) => {
594595
logger.info('Recognizer closed')
596+
this._setThemeFontFamily()
595597
initialize(InkModel.clearModel(model), true)
596598
handleSuccess(this, model)
597599
})
@@ -1018,6 +1020,15 @@ <h1 class="page-title">Editor.js</h1>
10181020
return null
10191021
}
10201022

1023+
/**
1024+
* Apply the font-family on theem corresponding to chosen language
1025+
* @private
1026+
*/
1027+
_setThemeFontFamily () {
1028+
const defaultLang = !Object.keys(Constants.Languages).includes(this.configuration.recognitionParams.iink.lang)
1029+
this.theme['.text']['font-family'] = defaultLang ? Constants.Languages.default : Constants.Languages[this.configuration.recognitionParams.iink.lang]
1030+
}
1031+
10211032
/**
10221033
* Trigger the change callbacks (and by default send a change event).
10231034
*/
@@ -1046,7 +1057,7 @@ <h1 class="page-title">Editor.js</h1>
10461057
<br class="clear">
10471058

10481059
<footer>
1049-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Mon Dec 20 2021 10:37:52 GMT+0100 (Central European Standard Time) using the Minami theme.
1060+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Thu Dec 30 2021 11:02:51 GMT+0100 (Central European Standard Time) using the Minami theme.
10501061
</footer>
10511062

10521063
<script>prettyPrint();</script>

docs/EditorFacade.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ <h1 class="page-title">EditorFacade.js</h1>
9090
<br class="clear">
9191

9292
<footer>
93-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Mon Dec 20 2021 10:37:52 GMT+0100 (Central European Standard Time) using the Minami theme.
93+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Thu Dec 30 2021 11:02:51 GMT+0100 (Central European Standard Time) using the Minami theme.
9494
</footer>
9595

9696
<script>prettyPrint();</script>

docs/configuration_Constants.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ <h1 class="page-title">configuration/Constants.js</h1>
133133
<br class="clear">
134134

135135
<footer>
136-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Mon Dec 20 2021 10:37:52 GMT+0100 (Central European Standard Time) using the Minami theme.
136+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Thu Dec 30 2021 11:02:51 GMT+0100 (Central European Standard Time) using the Minami theme.
137137
</footer>
138138

139139
<script>prettyPrint();</script>

docs/configuration_DefaultBehaviors.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ <h1 class="page-title">configuration/DefaultBehaviors.js</h1>
133133
<br class="clear">
134134

135135
<footer>
136-
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Mon Dec 20 2021 10:37:52 GMT+0100 (Central European Standard Time) using the Minami theme.
136+
Generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.7</a> on Thu Dec 30 2021 11:02:51 GMT+0100 (Central European Standard Time) using the Minami theme.
137137
</footer>
138138

139139
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)