iink-ts - v5.0.0
Preparing search index...
HTTPClientV2
Class HTTPClientV2
Index
Accessors
post
Config
url
Constructors
constructor
Methods
build
Data
get
Mime
Types
post
send
try
Fetch
Properties
configuration
logger
Accessors
post
Config
get
postConfig
()
:
THTTPClientV2PostConfiguration
Returns
THTTPClientV2PostConfiguration
url
get
url
()
:
string
Returns
string
Constructors
constructor
new
HTTPClientV2
(
config
:
{
recognition
?:
{
convert
?:
{
force
?:
{
"on-stylesheet-change"
?:
boolean
}
}
;
export
?:
{
image
?:
{
guides
?:
boolean
;
viewport
?:
{
height
?:
number
;
width
?:
number
;
x
?:
number
;
y
?:
number
}
;
}
;
"image-resolution"
?:
number
;
jiix
?:
{
"bounding-box"
?:
boolean
;
"full-stroke-ids"
?:
boolean
;
ids
?:
boolean
;
strokes
?:
boolean
;
style
?:
boolean
;
text
?:
{
chars
?:
boolean
;
lines
?:
boolean
;
words
?:
boolean
}
;
}
;
mathml
?:
{
flavor
?:
{
name
?:
string
}
}
;
}
;
lang
?:
string
;
math
?:
{
customGrammar
?:
string
;
customGrammarContent
?:
string
;
customGrammarId
?:
string
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
margin
?:
{
bottom
?:
number
;
left
?:
number
;
right
?:
number
;
top
?:
number
;
}
;
mimeTypes
?:
(
|
"application/vnd.myscript.jiix"
|
"application/x-latex"
|
"application/mathml+xml"
|
undefined
)
[]
;
"recognition-timeout"
?:
number
;
"session-time"
?:
number
;
solver
?:
{
"angle-unit"
?:
TAngleUnit
;
"decimal-separator"
?:
string
;
enable
?:
boolean
;
"fractional-part-digits"
?:
number
;
options
?:
TSolverOptions
;
"rounding-mode"
?:
TRoundingMode
;
}
;
"undo-redo"
?:
{
mode
?:
TUndoRedoMode
}
;
}
;
"raw-content"
?:
{
classification
?:
{
types
?:
(
"shape"
|
"text"
|
"math"
|
"decoration"
|
"drawing"
|
undefined
)
[]
;
}
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
recognition
?:
{
types
?:
(
"shape"
|
"text"
|
"math"
|
"decoration"
|
undefined
)
[]
;
}
;
"session-time"
?:
number
;
text
?:
{
addLKText
?:
boolean
;
customLexicon
?:
(
string
|
undefined
)
[]
;
customResources
?:
(
string
|
undefined
)
[]
;
}
;
}
;
shape
?:
{
beautification
?:
{
enable
?:
true
}
;
convert
?:
{
"match-text-size"
?:
boolean
;
types
?:
(
"shape"
|
undefined
)
[]
;
}
;
"enable-sub-blocks"
?:
boolean
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
mimeTypes
?:
(
|
"application/vnd.myscript.jiix"
|
"image/svg+xml"
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
undefined
)
[]
;
"session-time"
?:
number
;
}
;
text
?:
{
configuration
?:
{
addLKText
?:
boolean
;
customLexicon
?:
(
string
|
undefined
)
[]
;
customResources
?:
(
string
|
undefined
)
[]
;
}
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
guides
?:
{
enable
?:
boolean
;
"line-gap-mm"
?:
number
;
"origin-y-mm"
?:
number
;
}
;
margin
?:
{
bottom
?:
number
;
left
?:
number
;
right
?:
number
;
top
?:
number
;
}
;
mimeTypes
?:
(
"application/vnd.myscript.jiix"
|
"text/plain"
|
undefined
)
[]
;
text
?:
boolean
;
}
;
type
?:
TRecognitionTypeV2
;
}
;
server
?:
{
applicationKey
?:
string
;
hmacKey
?:
string
;
host
?:
string
;
scheme
?:
TScheme
;
sign
?:
{}
;
version
?:
string
;
}
;
}
,
)
:
HTTPClientV2
Parameters
config
:
{
recognition
?:
{
convert
?:
{
force
?:
{
"on-stylesheet-change"
?:
boolean
}
}
;
export
?:
{
image
?:
{
guides
?:
boolean
;
viewport
?:
{
height
?:
number
;
width
?:
number
;
x
?:
number
;
y
?:
number
}
;
}
;
"image-resolution"
?:
number
;
jiix
?:
{
"bounding-box"
?:
boolean
;
"full-stroke-ids"
?:
boolean
;
ids
?:
boolean
;
strokes
?:
boolean
;
style
?:
boolean
;
text
?:
{
chars
?:
boolean
;
lines
?:
boolean
;
words
?:
boolean
}
;
}
;
mathml
?:
{
flavor
?:
{
name
?:
string
}
}
;
}
;
lang
?:
string
;
math
?:
{
customGrammar
?:
string
;
customGrammarContent
?:
string
;
customGrammarId
?:
string
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
margin
?:
{
bottom
?:
number
;
left
?:
number
;
right
?:
number
;
top
?:
number
}
;
mimeTypes
?:
(
|
"application/vnd.myscript.jiix"
|
"application/x-latex"
|
"application/mathml+xml"
|
undefined
)
[]
;
"recognition-timeout"
?:
number
;
"session-time"
?:
number
;
solver
?:
{
"angle-unit"
?:
TAngleUnit
;
"decimal-separator"
?:
string
;
enable
?:
boolean
;
"fractional-part-digits"
?:
number
;
options
?:
TSolverOptions
;
"rounding-mode"
?:
TRoundingMode
;
}
;
"undo-redo"
?:
{
mode
?:
TUndoRedoMode
}
;
}
;
"raw-content"
?:
{
classification
?:
{
types
?:
(
"shape"
|
"text"
|
"math"
|
"decoration"
|
"drawing"
|
undefined
)
[]
;
}
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
recognition
?:
{
types
?:
(
"shape"
|
"text"
|
"math"
|
"decoration"
|
undefined
)
[]
;
}
;
"session-time"
?:
number
;
text
?:
{
addLKText
?:
boolean
;
customLexicon
?:
(
string
|
undefined
)
[]
;
customResources
?:
(
string
|
undefined
)
[]
;
}
;
}
;
shape
?:
{
beautification
?:
{
enable
?:
true
}
;
convert
?:
{
"match-text-size"
?:
boolean
;
types
?:
(
"shape"
|
undefined
)
[]
;
}
;
"enable-sub-blocks"
?:
boolean
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
mimeTypes
?:
(
|
"application/vnd.myscript.jiix"
|
"image/svg+xml"
|
"application/vnd.openxmlformats-officedocument.presentationml.presentation"
|
undefined
)
[]
;
"session-time"
?:
number
;
}
;
text
?:
{
configuration
?:
{
addLKText
?:
boolean
;
customLexicon
?:
(
string
|
undefined
)
[]
;
customResources
?:
(
string
|
undefined
)
[]
;
}
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
guides
?:
{
enable
?:
boolean
;
"line-gap-mm"
?:
number
;
"origin-y-mm"
?:
number
;
}
;
margin
?:
{
bottom
?:
number
;
left
?:
number
;
right
?:
number
;
top
?:
number
}
;
mimeTypes
?:
(
"application/vnd.myscript.jiix"
|
"text/plain"
|
undefined
)
[]
;
text
?:
boolean
;
}
;
type
?:
TRecognitionTypeV2
;
}
;
server
?:
{
applicationKey
?:
string
;
hmacKey
?:
string
;
host
?:
string
;
scheme
?:
TScheme
;
sign
?:
{}
;
version
?:
string
;
}
;
}
Returns
HTTPClientV2
Methods
Protected
build
Data
buildData
(
strokes
:
TRecognitionStroke
[]
)
:
THTTPClientV2PostData
Parameters
strokes
:
TRecognitionStroke
[]
Returns
THTTPClientV2PostData
Protected
get
Mime
Types
getMimeTypes
(
requestedMimeTypes
?:
string
[]
)
:
string
[]
Parameters
Optional
requestedMimeTypes
:
string
[]
Returns
string
[]
Protected
post
post
(
data
:
unknown
,
mimeType
:
string
)
:
Promise
<
unknown
>
Parameters
data
:
unknown
mimeType
:
string
Returns
Promise
<
unknown
>
send
send
(
strokes
:
TRecognitionStroke
[]
,
requestedMimeTypes
?:
string
[]
,
)
:
Promise
<
TExportV2
>
Parameters
strokes
:
TRecognitionStroke
[]
Optional
requestedMimeTypes
:
string
[]
Returns
Promise
<
TExportV2
>
Protected
try
Fetch
tryFetch
(
data
:
THTTPClientV2PostData
,
mimeType
:
string
)
:
Promise
<
TExportV2
>
Parameters
data
:
THTTPClientV2PostData
mimeType
:
string
Returns
Promise
<
TExportV2
>
Properties
configuration
configuration
:
HTTPClientV2Configuration
Protected
logger
logger
:
Logger
= ...
Settings
Member Visibility
Protected
Inherited
Alpha
Beta
Theme
OS
Light
Dark
On This Page
Accessors
post
Config
url
Constructors
constructor
Methods
build
Data
get
Mime
Types
post
send
try
Fetch
Properties
configuration
logger
iink-ts - v5.0.0
Loading...