# dolphinGraphCanvas

A dolphin graph canvas record carrying placements, zoom.

Last updated: 2026-09-09

Package: dolphin.authoring | Status: source-declared

Tags: authoring, class, cpu, dolphin, dolphin.authoring, method, source-example

Represent editable scenes and graph canvases, validate edits, and manage undoable transactions.

```yh
external class dolphinGraphCanvas
```

- list of dolphinGraphPlacement placements: Stores placements as list of dolphinGraphPlacement.
- int zoom: Stores zoom as int.
- Find(text key) returns int: Find.
- Place(text key,int x,int y,int width,int height) returns int: Place.
- ScreenX(int x) returns int: Screen x.
- ScreenY(int y) returns int: Screen y.
- WorldX(int x) returns int: World x.
- WorldY(int y) returns int: World y.
- ZoomAt(int next,int x,int y): Zoom at.
- Move(text key,int x,int y) returns bool: Move.
- Fit(int width,int height): Fit.

## Use dolphinGraphCanvas

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
using dolphin.authoring

// Represent editable scenes and graph canvases, validate edits, and manage undoable transactions.
dolphinGraphCanvas sample = dolphinGraphCanvas()
Console.Log(Text.From(sample.zoom))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.dolphin_authoring__dolphingraphcanvas"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "dolphin.authoring"
version = "0.1.0"
path = "../../../dolphin/packages/authoring"

[[dependencies]]
package = "dolphin.math"
version = "0.1.0"
path = "../../../dolphin/packages/math"

[[dependencies]]
package = "dolphin.spatial3d"
version = "0.1.0"
path = "../../../dolphin/packages/spatial3d"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/dolphin.authoring--dolphinGraphCanvas/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## dolphinGraphCanvas.Find

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using dolphin.authoring

// Find.
dolphinGraphCanvas instance = dolphinGraphCanvas()
text argument_key = "argument key"
int result = instance.Find(argument_key)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.dolphin_authoring__dolphingraphcanvas"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "dolphin.authoring"
version = "0.1.0"
path = "../../../dolphin/packages/authoring"

[[dependencies]]
package = "dolphin.math"
version = "0.1.0"
path = "../../../dolphin/packages/math"

[[dependencies]]
package = "dolphin.spatial3d"
version = "0.1.0"
path = "../../../dolphin/packages/spatial3d"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/dolphin.authoring--dolphinGraphCanvas/method-Find-2 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## dolphinGraphCanvas.Place

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using dolphin.authoring

// Place.
dolphinGraphCanvas instance = dolphinGraphCanvas()
text argument_key = "argument key"
int argument_x = 1
int argument_y = 1
int argument_width = 1
int argument_height = 1
int result = instance.Place(argument_key, argument_x, argument_y, argument_width, argument_height)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.dolphin_authoring__dolphingraphcanvas"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "dolphin.authoring"
version = "0.1.0"
path = "../../../dolphin/packages/authoring"

[[dependencies]]
package = "dolphin.math"
version = "0.1.0"
path = "../../../dolphin/packages/math"

[[dependencies]]
package = "dolphin.spatial3d"
version = "0.1.0"
path = "../../../dolphin/packages/spatial3d"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/dolphin.authoring--dolphinGraphCanvas/method-Place-3 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## dolphinGraphCanvas.ScreenX

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using dolphin.authoring

// Screen x.
dolphinGraphCanvas instance = dolphinGraphCanvas()
int argument_x = 1
int result = instance.ScreenX(argument_x)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.dolphin_authoring__dolphingraphcanvas"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "dolphin.authoring"
version = "0.1.0"
path = "../../../dolphin/packages/authoring"

[[dependencies]]
package = "dolphin.math"
version = "0.1.0"
path = "../../../dolphin/packages/math"

[[dependencies]]
package = "dolphin.spatial3d"
version = "0.1.0"
path = "../../../dolphin/packages/spatial3d"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/dolphin.authoring--dolphinGraphCanvas/method-ScreenX-4 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## dolphinGraphCanvas.ScreenY

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using dolphin.authoring

// Screen y.
dolphinGraphCanvas instance = dolphinGraphCanvas()
int argument_y = 1
int result = instance.ScreenY(argument_y)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.dolphin_authoring__dolphingraphcanvas"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "dolphin.authoring"
version = "0.1.0"
path = "../../../dolphin/packages/authoring"

[[dependencies]]
package = "dolphin.math"
version = "0.1.0"
path = "../../../dolphin/packages/math"

[[dependencies]]
package = "dolphin.spatial3d"
version = "0.1.0"
path = "../../../dolphin/packages/spatial3d"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/dolphin.authoring--dolphinGraphCanvas/method-ScreenY-5 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## dolphinGraphCanvas.WorldX

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using dolphin.authoring

// World x.
dolphinGraphCanvas instance = dolphinGraphCanvas()
int argument_x = 1
int result = instance.WorldX(argument_x)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.dolphin_authoring__dolphingraphcanvas"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "dolphin.authoring"
version = "0.1.0"
path = "../../../dolphin/packages/authoring"

[[dependencies]]
package = "dolphin.math"
version = "0.1.0"
path = "../../../dolphin/packages/math"

[[dependencies]]
package = "dolphin.spatial3d"
version = "0.1.0"
path = "../../../dolphin/packages/spatial3d"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/dolphin.authoring--dolphinGraphCanvas/method-WorldX-6 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## dolphinGraphCanvas.WorldY

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using dolphin.authoring

// World y.
dolphinGraphCanvas instance = dolphinGraphCanvas()
int argument_y = 1
int result = instance.WorldY(argument_y)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.dolphin_authoring__dolphingraphcanvas"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "dolphin.authoring"
version = "0.1.0"
path = "../../../dolphin/packages/authoring"

[[dependencies]]
package = "dolphin.math"
version = "0.1.0"
path = "../../../dolphin/packages/math"

[[dependencies]]
package = "dolphin.spatial3d"
version = "0.1.0"
path = "../../../dolphin/packages/spatial3d"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/dolphin.authoring--dolphinGraphCanvas/method-WorldY-7 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## dolphinGraphCanvas.ZoomAt

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using dolphin.authoring

// Zoom at.
dolphinGraphCanvas instance = dolphinGraphCanvas()
int argument_next = 1
int argument_x = 1
int argument_y = 1
instance.ZoomAt(argument_next, argument_x, argument_y)
Console.Log("ZoomAt completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.dolphin_authoring__dolphingraphcanvas"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "dolphin.authoring"
version = "0.1.0"
path = "../../../dolphin/packages/authoring"

[[dependencies]]
package = "dolphin.math"
version = "0.1.0"
path = "../../../dolphin/packages/math"

[[dependencies]]
package = "dolphin.spatial3d"
version = "0.1.0"
path = "../../../dolphin/packages/spatial3d"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/dolphin.authoring--dolphinGraphCanvas/method-ZoomAt-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## dolphinGraphCanvas.Move

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using dolphin.authoring

// Move.
dolphinGraphCanvas instance = dolphinGraphCanvas()
text argument_key = "argument key"
int argument_x = 1
int argument_y = 1
bool result = instance.Move(argument_key, argument_x, argument_y)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.dolphin_authoring__dolphingraphcanvas"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "dolphin.authoring"
version = "0.1.0"
path = "../../../dolphin/packages/authoring"

[[dependencies]]
package = "dolphin.math"
version = "0.1.0"
path = "../../../dolphin/packages/math"

[[dependencies]]
package = "dolphin.spatial3d"
version = "0.1.0"
path = "../../../dolphin/packages/spatial3d"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/dolphin.authoring--dolphinGraphCanvas/method-Move-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## dolphinGraphCanvas.Fit

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using dolphin.authoring

// Fit.
dolphinGraphCanvas instance = dolphinGraphCanvas()
int argument_width = 1
int argument_height = 1
instance.Fit(argument_width, argument_height)
Console.Log("Fit completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.dolphin_authoring__dolphingraphcanvas"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "dolphin.authoring"
version = "0.1.0"
path = "../../../dolphin/packages/authoring"

[[dependencies]]
package = "dolphin.math"
version = "0.1.0"
path = "../../../dolphin/packages/math"

[[dependencies]]
package = "dolphin.spatial3d"
version = "0.1.0"
path = "../../../dolphin/packages/spatial3d"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/dolphin.authoring--dolphinGraphCanvas/method-Fit-10 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: dolphin/packages/authoring/src/graph_canvas.yh

AI training permission: https://demonhunterlabs.com/ai-use
