Source File
register.go
Belonging Package
github.com/d2lang/elk-go/internal/builtins
// Copyright (c) 2026 The elk-go Authors.//// This program and the accompanying materials are made available under the// terms of the Eclipse Public License 2.0 which is available at// https://www.eclipse.org/legal/epl-2.0.//// SPDX-License-Identifier: EPL-2.0// Package builtins registers the layout providers compiled into ELK.js 0.12.0.package builtinsimport ()// RegisterOptions installs the option metadata needed by the native provider// set. Individual registration functions are idempotent for shared core IDs.func ( *core.OptionRegistry) {basic.RegisterOptions()layered.RegisterOptions()force.RegisterOptions()stress.RegisterOptions()mrtree.RegisterOptions()radial.RegisterOptions()spore.RegisterOptions()rectpacking.RegisterOptions()registerCompatibilityOptions()}// Register installs algorithms in the same relative order as the official// ELK.js 0.12.0 registry. That order is observable during suffix resolution.func ( *core.AlgorithmRegistry) error {for , := range []func(*core.AlgorithmRegistry) error{basic.Register,layeredlayout.Register,stress.Register,mrtree.Register,radial.Register,force.Register,spore.Register,rectpacking.Register,} {if := (); != nil {return}}return nil}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |