Interface: IFormat<T>#
@deathbeds/ipydrawio.IFormat
Type parameters#
Name |
Type |
|---|---|
|
|
Properties#
contentType#
• Optional contentType: ContentType
Defined in#
exporter#
• Optional exporter: (drawio:
Diagram, key: string, settings:
ISettings) => Promise<null | T>
Type declaration#
▸ (drawio, key, settings): Promise<null | T>
Parameters#
Name |
Type |
|---|---|
|
|
|
|
|
|
Returns#
Promise<null | T>
Defined in#
ext#
• ext: string
Defined in#
factoryName#
• factoryName: string
Defined in#
format#
• format: FileFormat
Defined in#
fromXML#
• Optional fromXML: (model: IModel, xml: string) => void
Type declaration#
▸ (model, xml): void
Parameters#
Name |
Type |
|---|---|
|
|
|
|
Returns#
void
Defined in#
icon#
• icon: LabIcon
Defined in#
isBinary#
• Optional isBinary: boolean
Defined in#
isDefault#
• Optional isDefault: boolean
Defined in#
isEditable#
• Optional isEditable: boolean
Defined in#
isExport#
• Optional isExport: boolean
Defined in#
isJson#
• Optional isJson: boolean
Defined in#
isText#
• Optional isText: boolean
Defined in#
isTransformed#
• isTransformed: boolean
Defined in#
key#
• key: string
Defined in#
label#
• label: string
Defined in#
load#
• Optional load: (raw: string) => string
Type declaration#
▸ (raw): string
Parameters#
Name |
Type |
|---|---|
|
|
Returns#
string
Defined in#
mimetype#
• mimetype: string
Defined in#
modelName#
• modelName: "base64" | "notebook" | "text"
Defined in#
name#
• name: string
Defined in#
pattern#
• Optional pattern: string
Defined in#
save#
• Optional save: (raw: string) => string
Type declaration#
▸ (raw): string
Parameters#
Name |
Type |
|---|---|
|
|
Returns#
string
Defined in#
toXML#
• Optional toXML: (model: IModel) => string
Type declaration#
▸ (model): string
Parameters#
Name |
Type |
|---|---|
|
|
Returns#
string
Defined in#
Methods#
wantsModel#
▸ Optional wantsModel(contentsModel): boolean
Parameters#
Name |
Type |
|---|---|
|
|
Returns#
boolean
Defined in#
packages/ipydrawio/src/tokens.ts:227
Copyright 2023 ipydrawio contributors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.