|
97 | 97 | * <b>not mutable</b><br />
|
98 | 98 | * The current recognition protocol (WebSocket or REST). We strongly recommend using WebSocket.
|
99 | 99 | * @type String
|
100 |
| - * @default 'WebSocket' |
101 | 100 | */
|
102 | 101 | protocol: {
|
103 | 102 | type: String,
|
104 |
| - value: MyScript.Protocol.WS |
| 103 | + value: 'WebSocket' |
105 | 104 | },
|
106 | 105 | /**
|
107 | 106 | * <b>not mutable</b><br />
|
108 | 107 | * The current recognition service host.
|
109 | 108 | * @type String
|
110 |
| - * @default 'cloud.myscript.com' |
111 | 109 | */
|
112 | 110 | host: {
|
113 | 111 | type: String,
|
|
117 | 115 | * <b>not mutable</b><br />
|
118 | 116 | * The recognition timeout, only use in REST mode.
|
119 | 117 | * @type Number
|
120 |
| - * @default 2000 |
121 | 118 | */
|
122 | 119 | timeout: {
|
123 | 120 | type: Number,
|
|
147 | 144 | * True if undo is available
|
148 | 145 | * @private
|
149 | 146 | * @type Boolean
|
150 |
| - * @default false |
151 | 147 | */
|
152 | 148 | canundo: {
|
153 | 149 | type: Boolean,
|
|
158 | 154 | * True if redo is available
|
159 | 155 | * @private
|
160 | 156 | * @type Boolean
|
161 |
| - * @default false |
162 | 157 | */
|
163 | 158 | canredo: {
|
164 | 159 | type: Boolean,
|
|
169 | 164 | * True if there is something to clear
|
170 | 165 | * @private
|
171 | 166 | * @type Boolean
|
172 |
| - * @default false |
173 | 167 | */
|
174 | 168 | canclear: {
|
175 | 169 | type: Boolean,
|
|
180 | 174 | * <b>not mutable</b><br />
|
181 | 175 | * If set to true, hide the buttons (Trash, Undo, Redo).
|
182 | 176 | * @type Boolean
|
183 |
| - * @default false |
184 | 177 | */
|
185 | 178 | hidebuttons: {
|
186 | 179 | type: Boolean,
|
|
190 | 183 | * <b>not mutable</b><br />
|
191 | 184 | * If set to true, hide the result div tag.
|
192 | 185 | * @type Boolean
|
193 |
| - * @default false |
194 | 186 | */
|
195 | 187 | hideresult: {
|
196 | 188 | type: Boolean,
|
|
200 | 192 | /**
|
201 | 193 | * The recognition language used by the recognition process.
|
202 | 194 | * @type String
|
203 |
| - * @default 'en_US' |
204 | 195 | */
|
205 | 196 | language: {
|
206 | 197 | type: String,
|
|
210 | 201 | /**
|
211 | 202 | * The available recognition languages as configured for your application on MyScript Cloud or Server.
|
212 | 203 | * @type {Array<String>}
|
213 |
| - * @default ['en_US'] |
214 | 204 | */
|
215 | 205 | availablelanguages: {
|
216 | 206 | type: Array,
|
|
221 | 211 | /**
|
222 | 212 | * The result detail to use (TEXT, WORD or CHARACTER).
|
223 | 213 | * @type String
|
224 |
| - * @default TEXT |
225 | 214 | */
|
226 | 215 | resultdetail: {
|
227 | 216 | type: String,
|
228 |
| - value: MyScript.ResultDetail.TEXT |
| 217 | + value: 'TEXT' |
229 | 218 | },
|
230 | 219 | /**
|
231 | 220 | * The input mode to use (CURSIVE, ISOLATED, SUPERIMPOSED or VERTICAL).
|
232 | 221 | * @type String
|
233 |
| - * @default CURSIVE |
234 | 222 | */
|
235 | 223 | inputmode: {
|
236 | 224 | type: String,
|
237 |
| - value: MyScript.InputMode.CURSIVE, |
| 225 | + value: 'CURSIVE', |
238 | 226 | observer: '_inputModeChanged'
|
239 | 227 | },
|
240 | 228 | /**
|
241 | 229 | * The desired count of recognition candidates.
|
242 | 230 | * @type Number
|
243 |
| - * @default 1 |
244 | 231 | */
|
245 | 232 | recognitioncandidates: {
|
246 | 233 | type: Number,
|
|
249 | 236 | /**
|
250 | 237 | * The desired count of prediction candidates.
|
251 | 238 | * @type Number
|
252 |
| - * @default 0 |
253 | 239 | */
|
254 | 240 | predictioncandidates: {
|
255 | 241 | type: Number,
|
|
258 | 244 | /**
|
259 | 245 | * The desired count of completion candidates.
|
260 | 246 | * @type Number
|
261 |
| - * @default 0 |
262 | 247 | */
|
263 | 248 | completioncandidates: {
|
264 | 249 | type: Number,
|
|
267 | 252 | /**
|
268 | 253 | * The content types to use for the recognition.
|
269 | 254 | * @type {Array<String>}
|
270 |
| - * @default [] |
271 | 255 | */
|
272 | 256 | contenttypes: {
|
273 | 257 | type: Array,
|
|
276 | 260 | /**
|
277 | 261 | * The user resources to use for the recognition.
|
278 | 262 | * @type {Array<String>}
|
279 |
| - * @default [] |
280 | 263 | */
|
281 | 264 | userresources: {
|
282 | 265 | type: Array,
|
|
342 | 325 | * True if SSL is activated, false otherwise
|
343 | 326 | * @private
|
344 | 327 | * @type Boolean
|
345 |
| - * @default true |
346 | 328 | */
|
347 | 329 | ssl: {
|
348 | 330 | type: Boolean,
|
|
0 commit comments