# Interface: IAdapter [@deathbeds/ipydrawio](../modules/deathbeds_ipydrawio.md).IAdapter ## Methods ### drawioConfig ▸ **drawioConfig**(): `ReadonlyPartialJSONObject` a dictionary encoding of the drawio JSON API Config Object #### Returns `ReadonlyPartialJSONObject` #### Defined in [packages/ipydrawio/src/tokens.ts:242](https://github.com/deathbeds/ipydrawio/blob/59b2750/packages/ipydrawio/src/tokens.ts#L242) --- ### drawioUrl ▸ **drawioUrl**(): `string` where to download drawio assets #### Returns `string` #### Defined in [packages/ipydrawio/src/tokens.ts:250](https://github.com/deathbeds/ipydrawio/blob/59b2750/packages/ipydrawio/src/tokens.ts#L250) --- ### format ▸ **format**(): `null` \| [`IFormat`](deathbeds_ipydrawio.IFormat.md)<`string`\> #### Returns `null` \| [`IFormat`](deathbeds_ipydrawio.IFormat.md)<`string`\> #### Defined in [packages/ipydrawio/src/tokens.ts:239](https://github.com/deathbeds/ipydrawio/blob/59b2750/packages/ipydrawio/src/tokens.ts#L239) --- ### fromXML ▸ **fromXML**(`xml`, `hardSave`): `void` store the XML somewhere #### Parameters | Name | Type | | :--------- | :-------- | | `xml` | `string` | | `hardSave` | `boolean` | #### Returns `void` #### Defined in [packages/ipydrawio/src/tokens.ts:252](https://github.com/deathbeds/ipydrawio/blob/59b2750/packages/ipydrawio/src/tokens.ts#L252) --- ### saveNeedsExport ▸ **saveNeedsExport**(): `boolean` Use a an exporter to generate non-XML #### Returns `boolean` #### Defined in [packages/ipydrawio/src/tokens.ts:246](https://github.com/deathbeds/ipydrawio/blob/59b2750/packages/ipydrawio/src/tokens.ts#L246) --- ### toXML ▸ **toXML**(): `string` load the XML from somewhere #### Returns `string` #### Defined in [packages/ipydrawio/src/tokens.ts:248](https://github.com/deathbeds/ipydrawio/blob/59b2750/packages/ipydrawio/src/tokens.ts#L248) --- ### urlParams ▸ **urlParams**(): `ReadonlyPartialJSONObject` a dictionary encoding of the drawio JSON API URL Params #### Returns `ReadonlyPartialJSONObject` #### Defined in [packages/ipydrawio/src/tokens.ts:244](https://github.com/deathbeds/ipydrawio/blob/59b2750/packages/ipydrawio/src/tokens.ts#L244) ``` 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. ```