Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

531 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

badge badge badge badge

Krayon

Multiplatform drawing library. Provides a multiplatform canvas and chart rendering framework, heavily inspired by D3.

Documentation

Guides, live examples, and the API reference are published at juullabs.github.io/krayon:

Modules

Krayon is published as small, focused modules under the com.juul.krayon group:

Module Description
box Aggregate module exporting all other published modules (except compose)
core Shared internals
color Multiplatform color representation and operations
kanvas Kanvas drawing interface with platform-specific (Android, HTML, Core Graphics) and multiplatform (SVG) implementations
element Retained tree of drawing elements — Krayon's stand-in for the DOM
selection Data-driven transformation of the element tree (à la d3-selection)
scale Mapping data domains to visual ranges (à la d3-scale)
shape Line, area, pie, and arc generators (à la d3-shape)
axis Reference marks for scales (à la d3-axis)
hierarchy Hierarchical data and treemap layout (à la d3-hierarchy)
interpolate Blending/picking values between start and stop values (à la d3-interpolate)
time Calendar intervals for time-based ticks (à la d3-time)
compose Compose Multiplatform Kanvas and ElementView composables
element-view Android View for rendering an element tree off the main thread

License

Copyright 2021 JUUL Labs, Inc.

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.

About

Cross platform (Android, iOS & JavaScript) canvas library.

Resources

Stars

38 stars

Watchers

13 watching

Forks

Releases

Used by

Contributors

Languages