iink-ts - v4.0.0
Preparing search index...
HTTPClientV1
Class HTTPClientV1
Deprecated
Use
HTTPClientV2
instead.
Index
Constructors
constructor
Properties
configuration
Accessors
post
Config
url
Methods
build
Data
convert
export
get
Mime
Types
post
resize
try
Fetch
Constructors
constructor
new
HTTPClientV1
(
config
:
{
recognition
?:
{
convert
?:
{
force
?:
{
"on-stylesheet-change"
?:
boolean
}
}
;
diagram
?:
{
convert
?:
{
"match-text-size"
?:
boolean
;
types
?:
(
"text"
|
"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
?:
{
addLKText
?:
boolean
;
customLexicon
?:
(
string
|
undefined
)
[]
;
customResources
?:
(
string
|
undefined
)
[]
;
}
;
}
;
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
?:
(
"text"
|
"shape"
|
"math"
|
"decoration"
|
"drawing"
|
undefined
)
[]
;
}
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
recognition
?:
{
types
?:
(
"text"
|
"shape"
|
"math"
|
"decoration"
|
undefined
)
[]
;
}
;
"session-time"
?:
number
;
text
?:
{
addLKText
?:
boolean
;
customLexicon
?:
(
string
|
undefined
)
[]
;
customResources
?:
(
string
|
undefined
)
[]
;
}
;
}
;
renderer
?:
{
debug
?:
{
"draw-image-boxes"
?:
boolean
;
"draw-text-boxes"
?:
boolean
}
;
}
;
text
?:
{
configuration
?:
{
addLKText
?:
boolean
;
customLexicon
?:
(
string
|
undefined
)
[]
;
customResources
?:
(
string
|
undefined
)
[]
;
}
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
guides
?:
{
enable
?:
boolean
}
;
margin
?:
{
bottom
?:
number
;
left
?:
number
;
right
?:
number
;
top
?:
number
;
}
;
mimeTypes
?:
(
"application/vnd.myscript.jiix"
|
"text/plain"
|
undefined
)
[]
;
text
?:
boolean
;
}
;
type
?:
TRecognitionTypeV1
;
}
;
server
?:
{
applicationKey
?:
string
;
hmacKey
?:
string
|
{}
;
host
?:
string
;
scheme
?:
TScheme
;
version
?:
string
;
}
;
}
,
)
:
HTTPClientV1
Parameters
config
:
{
recognition
?:
{
convert
?:
{
force
?:
{
"on-stylesheet-change"
?:
boolean
}
}
;
diagram
?:
{
convert
?:
{
"match-text-size"
?:
boolean
;
types
?:
(
"text"
|
"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
?:
{
addLKText
?:
boolean
;
customLexicon
?:
(
string
|
undefined
)
[]
;
customResources
?:
(
string
|
undefined
)
[]
;
}
;
}
;
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
?:
(
"text"
|
"shape"
|
"math"
|
"decoration"
|
"drawing"
|
undefined
)
[]
;
}
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
recognition
?:
{
types
?:
(
"text"
|
"shape"
|
"math"
|
"decoration"
|
undefined
)
[]
;
}
;
"session-time"
?:
number
;
text
?:
{
addLKText
?:
boolean
;
customLexicon
?:
(
string
|
undefined
)
[]
;
customResources
?:
(
string
|
undefined
)
[]
;
}
;
}
;
renderer
?:
{
debug
?:
{
"draw-image-boxes"
?:
boolean
;
"draw-text-boxes"
?:
boolean
}
;
}
;
text
?:
{
configuration
?:
{
addLKText
?:
boolean
;
customLexicon
?:
(
string
|
undefined
)
[]
;
customResources
?:
(
string
|
undefined
)
[]
;
}
;
eraser
?:
{
"erase-precisely"
?:
boolean
}
;
guides
?:
{
enable
?:
boolean
}
;
margin
?:
{
bottom
?:
number
;
left
?:
number
;
right
?:
number
;
top
?:
number
}
;
mimeTypes
?:
(
"application/vnd.myscript.jiix"
|
"text/plain"
|
undefined
)
[]
;
text
?:
boolean
;
}
;
type
?:
TRecognitionTypeV1
;
}
;
server
?:
{
applicationKey
?:
string
;
hmacKey
?:
string
|
{}
;
host
?:
string
;
scheme
?:
TScheme
;
version
?:
string
;
}
;
}
Returns
HTTPClientV1
Properties
configuration
configuration
:
HTTPClientV1Configuration
Accessors
post
Config
get
postConfig
()
:
THTTPClientV1PostConfiguration
Returns
THTTPClientV1PostConfiguration
url
get
url
()
:
string
Returns
string
Methods
Protected
build
Data
buildData
(
model
:
Model
)
:
THTTPClientV1PostData
Parameters
model
:
Model
Returns
THTTPClientV1PostData
convert
convert
(
model
:
Model
,
conversionState
?:
TConverstionState
,
requestedMimeTypes
?:
string
[]
,
)
:
Promise
<
Model
>
Parameters
model
:
Model
Optional
conversionState
:
TConverstionState
Optional
requestedMimeTypes
:
string
[]
Returns
Promise
<
Model
>
export
export
(
model
:
Model
,
requestedMimeTypes
?:
string
[]
)
:
Promise
<
Model
>
Parameters
model
:
Model
Optional
requestedMimeTypes
:
string
[]
Returns
Promise
<
Model
>
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
>
resize
resize
(
model
:
Model
)
:
Promise
<
Model
>
Parameters
model
:
Model
Returns
Promise
<
Model
>
Protected
try
Fetch
tryFetch
(
data
:
THTTPClientV1PostData
,
mimeType
:
string
)
:
Promise
<
TExport
>
Parameters
data
:
THTTPClientV1PostData
mimeType
:
string
Returns
Promise
<
TExport
>
Settings
Member Visibility
Protected
Inherited
Alpha
Beta
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
configuration
Accessors
post
Config
url
Methods
build
Data
convert
export
get
Mime
Types
post
resize
try
Fetch
iink-ts - v4.0.0
Loading...
Deprecated
Use HTTPClientV2 instead.