Comparing version 0.35.0 to 0.35.1
@@ -19,3 +19,3 @@ export default { | ||
type: Function, | ||
default: function(_keystroke, _ev) { | ||
default: function (_keystroke, _ev) { | ||
return true; | ||
@@ -26,3 +26,3 @@ }, | ||
type: Function, | ||
default: function(_direction) { | ||
default: function (_direction) { | ||
return true; | ||
@@ -33,3 +33,3 @@ }, | ||
type: Function, | ||
default: function(_direction) { | ||
default: function (_direction) { | ||
return true; | ||
@@ -53,3 +53,3 @@ }, | ||
*/ | ||
install: function(vue, mathlive) { | ||
install: function (vue, mathlive) { | ||
// When the component is installed (with Vue.use()), the first argument | ||
@@ -66,3 +66,3 @@ // should be the component (as received from import) and the second | ||
watch: { | ||
value: function(newValue, oldValue) { | ||
value: function (newValue, oldValue) { | ||
// When the `value` prop (from the model) is modified | ||
@@ -72,3 +72,3 @@ // update the mathfield to stay in sync, but don't send back content | ||
if (newValue !== oldValue) { | ||
this.$el.mathfield.$text(newValue, { | ||
this.$el.mathfield.$latex(newValue, { | ||
suppressChangeNotifications: true, | ||
@@ -80,3 +80,3 @@ }); | ||
deep: true, | ||
handler: function(config) { | ||
handler: function (config) { | ||
this.$el.mathfield.$setConfig(config); | ||
@@ -86,7 +86,7 @@ }, | ||
}, | ||
mounted: function() { | ||
mounted: function () { | ||
// A new instance is being created | ||
const vm = this; // Keep a reference to the ViewModel | ||
// Wait until the DOM has been constructed... | ||
this.$nextTick(function() { | ||
this.$nextTick(function () { | ||
// ... then make the Mathfield | ||
@@ -97,3 +97,3 @@ vm.$mathlive.makeMathField(vm.$el, { | ||
// the content of the mathfield to the ViewModel | ||
onContentDidChange: _ => { | ||
onContentDidChange: (_) => { | ||
// When the mathfield is updated, notify the model. | ||
@@ -105,12 +105,12 @@ // The initial input value is generated from the <slot> | ||
// Those asynchronous notification handlers are translated to events | ||
onFocus: _ => { | ||
onFocus: (_) => { | ||
vm.$emit('focus'); | ||
}, | ||
onBlur: _ => { | ||
onBlur: (_) => { | ||
vm.$emit('blur'); | ||
}, | ||
onContentWillChange: _ => { | ||
onContentWillChange: (_) => { | ||
vm.$emit('content-will-change'); | ||
}, | ||
onSelectionWillChange: _ => { | ||
onSelectionWillChange: (_) => { | ||
vm.$emit('selection-will-change'); | ||
@@ -137,3 +137,3 @@ }, | ||
// them to callbacks via props | ||
onKeystroke: function(_, keystroke, ev) { | ||
onKeystroke: function (_, keystroke, ev) { | ||
return vm.onKeystroke(keystroke, ev); | ||
@@ -155,3 +155,3 @@ }, | ||
*/ | ||
perform: function(selector) { | ||
perform: function (selector) { | ||
this.$el.mathfield.$perform(selector); | ||
@@ -162,42 +162,42 @@ }, | ||
*/ | ||
hasFocus: function() { | ||
hasFocus: function () { | ||
return this.$el.mathfield.$hasFocus(); | ||
}, | ||
focus: function() { | ||
focus: function () { | ||
this.$el.mathfield.$focus(); | ||
}, | ||
blur: function() { | ||
blur: function () { | ||
this.$el.mathfield.$blur(); | ||
}, | ||
text: function(format) { | ||
text: function (format) { | ||
return this.$el.mathfield.$text(format); | ||
}, | ||
selectedText: function(format) { | ||
selectedText: function (format) { | ||
return this.$el.mathfield.$selectedText(format); | ||
}, | ||
insert: function(text, options) { | ||
insert: function (text, options) { | ||
this.$el.mathfield.$insert(text, options); | ||
}, | ||
keystroke: function(keys, evt) { | ||
keystroke: function (keys, evt) { | ||
return this.$el.mathfield.$keystroke(keys, evt); | ||
}, | ||
typedText: function(text) { | ||
typedText: function (text) { | ||
this.$el.mathfield.$keystroke(text); | ||
}, | ||
selectionIsCollapsed: function() { | ||
selectionIsCollapsed: function () { | ||
return this.$el.mathfield.$selectionIsCollapsed(); | ||
}, | ||
selectionDepth: function() { | ||
selectionDepth: function () { | ||
return this.$el.mathfield.$selectionDepth(); | ||
}, | ||
selectionAtStart: function() { | ||
selectionAtStart: function () { | ||
return this.$el.mathfield.$selectionAtStart(); | ||
}, | ||
selectionAtEnd: function() { | ||
selectionAtEnd: function () { | ||
return this.$el.mathfield.$selectionAtEnd(); | ||
}, | ||
select: function() { | ||
select: function () { | ||
this.$el.mathfield.$select(); | ||
}, | ||
clearSelection: function() { | ||
clearSelection: function () { | ||
this.$el.mathfield.$clearSelection(); | ||
@@ -204,0 +204,0 @@ }, |
{ | ||
"name": "mathlive", | ||
"version": "0.35.0", | ||
"version": "0.35.1", | ||
"description": "Render and edit beautifully typeset math", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3659619