From 27e087c0ed6b8e45f603231bed646e02d59e996a Mon Sep 17 00:00:00 2001 From: jordond Date: Sun, 17 Sep 2023 18:35:10 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20jordond/?= =?UTF-8?q?kmpalette@2a72dbb463bec70dbaa65a21abc543f09bf48682=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../-palette/-builder/-builder.html | 76 + .../-palette/-builder/add-filter.html | 76 + .../-palette/-builder/add-target.html | 76 + .../-palette/-builder/clear-filters.html | 76 + .../-palette/-builder/clear-region.html | 76 + .../-palette/-builder/clear-targets.html | 76 + .../-palette/-builder/generate.html | 76 + .../-palette/-builder/index.html | 239 +++ .../-builder/maximum-color-count.html | 76 + .../-palette/-builder/resize-bitmap-area.html | 76 + .../-palette/-builder/set-region.html | 76 + ...c-u-l-a-t-e_-n-u-m-b-e-r_-c-o-l-o-r-s.html | 76 + .../-d-e-f-a-u-l-t_-f-i-l-t-e-r.html | 76 + ...-t_-r-e-s-i-z-e_-b-i-t-m-a-p_-a-r-e-a.html | 76 + ...-n_-c-o-n-t-r-a-s-t_-b-o-d-y_-t-e-x-t.html | 76 + ..._-c-o-n-t-r-a-s-t_-t-i-t-l-e_-t-e-x-t.html | 76 + .../-palette/-companion/from.html | 76 + .../-palette/-companion/index.html | 179 ++ .../-palette/-filter/index.html | 100 ++ .../-palette/-filter/is-allowed.html | 76 + .../-palette/-swatch/-swatch.html | 76 + .../-palette/-swatch/body-text-color.html | 76 + .../-palette/-swatch/hsl.html | 76 + .../-palette/-swatch/index.html | 179 ++ .../-palette/-swatch/population.html | 76 + .../-palette/-swatch/rgb.html | 76 + .../-palette/-swatch/title-text-color.html | 76 + .../-palette/dark-muted-swatch.html | 76 + .../-palette/dark-vibrant-swatch.html | 76 + .../-palette/dominant-swatch.html | 76 + .../-palette/generate.html | 76 + .../-palette/get-color-for-target.html | 76 + .../-palette/get-dark-muted-color.html | 76 + .../-palette/get-dark-vibrant-color.html | 76 + .../-palette/get-dominant-color.html | 76 + .../-palette/get-light-muted-color.html | 76 + .../-palette/get-light-vibrant-color.html | 76 + .../-palette/get-muted-color.html | 76 + .../-palette/get-swatch-for-target.html | 76 + .../-palette/get-vibrant-color.html | 76 + .../-palette/index.html | 423 +++++ .../-palette/light-muted-swatch.html | 76 + .../-palette/light-vibrant-swatch.html | 76 + .../-palette/muted-swatch.html | 76 + .../-palette/swatches.html | 76 + .../-palette/vibrant-swatch.html | 76 + .../-target/-builder/-builder.html | 76 + .../-target/-builder/build.html | 76 + .../-target/-builder/index.html | 269 +++ .../-target/-builder/set-exclusive.html | 76 + .../-builder/set-lightness-weight.html | 76 + .../-builder/set-maximum-lightness.html | 76 + .../-builder/set-maximum-saturation.html | 76 + .../-builder/set-minimum-lightness.html | 76 + .../-builder/set-minimum-saturation.html | 76 + .../-builder/set-population-weight.html | 76 + .../-builder/set-saturation-weight.html | 76 + .../-builder/set-target-lightness.html | 76 + .../-builder/set-target-saturation.html | 76 + .../-companion/-d-a-r-k_-m-u-t-e-d.html | 76 + .../-companion/-d-a-r-k_-v-i-b-r-a-n-t.html | 76 + .../-companion/-l-i-g-h-t_-m-u-t-e-d.html | 76 + .../-companion/-l-i-g-h-t_-v-i-b-r-a-n-t.html | 76 + .../-target/-companion/-m-u-t-e-d.html | 76 + .../-target/-companion/-v-i-b-r-a-n-t.html | 76 + .../-target/-companion/index.html | 175 ++ .../-target/index.html | 333 ++++ .../-target/is-exclusive.html | 76 + .../-target/lightness-targets.html | 76 + .../-target/lightness-weight.html | 76 + .../-target/maximum-lightness.html | 76 + .../-target/maximum-saturation.html | 76 + .../-target/minimum-lightness.html | 76 + .../-target/minimum-saturation.html | 76 + .../-target/normalize-weights.html | 76 + .../-target/population-weight.html | 76 + .../-target/saturation-targets.html | 76 + .../-target/saturation-weight.html | 76 + .../-target/target-lightness.html | 76 + .../-target/target-saturation.html | 76 + .../-target/weights.html | 76 + .../androidx.palette.graphics/index.html | 114 ++ androidx-palette/index.html | 95 ++ androidx-palette/navigation.html | 372 +++++ .../index.html | 114 ++ .../remember-base64-dominant-color-state.html | 76 + .../remember-base64-palette-state.html | 76 + .../-base64-loader/index.html | 100 ++ .../-base64-loader/load.html | 76 + .../com.kmpalette.loader/index.html | 99 ++ extensions-base64/index.html | 113 ++ extensions-base64/navigation.html | 372 +++++ .../index.html | 129 ++ ...ember-byte-array-dominant-color-state.html | 76 + .../remember-byte-array-palette-state.html | 76 + .../remember-generate-palette.html | 76 + .../-byte-array-loader/index.html | 100 ++ .../-byte-array-loader/load.html | 76 + .../com.kmpalette.loader/index.html | 100 ++ extensions-bytearray/index.html | 115 ++ extensions-bytearray/navigation.html | 372 +++++ .../index.html | 129 ++ .../remember-generate-palette.html | 76 + .../remember-libres-dominant-color-state.html | 76 + .../remember-libres-palette-state.html | 76 + .../-libres-loader/index.html | 100 ++ .../-libres-loader/load.html | 76 + .../com.kmpalette.loader/index.html | 99 ++ extensions-libres/index.html | 113 ++ extensions-libres/navigation.html | 372 +++++ .../index.html | 129 ++ .../remember-generate-palette.html | 76 + ...remember-network-dominant-color-state.html | 76 + .../remember-network-palette-state.html | 76 + .../-network-loader/-network-loader.html | 76 + .../-network-loader/index.html | 119 ++ .../-network-loader/load.html | 76 + .../com.kmpalette.loader/index.html | 99 ++ extensions-network/index.html | 113 ++ extensions-network/navigation.html | 372 +++++ .../index.html | 129 ++ .../remember-generate-palette.html | 76 + .../remember-resource-palette-state.html | 76 + ...member-resources-dominant-color-state.html | 76 + .../-resource-loader/index.html | 100 ++ .../-resource-loader/load.html | 76 + .../com.kmpalette.loader/index.html | 99 ++ extensions-resources/index.html | 113 ++ extensions-resources/navigation.html | 372 +++++ images/anchor-copy-button.svg | 4 + images/arrow_down.svg | 3 + images/burger.svg | 5 + images/copy-icon.svg | 3 + images/copy-successful-icon.svg | 3 + images/footer-go-to-link.svg | 3 + images/go-to-top-icon.svg | 4 + images/logo-icon.svg | 10 + images/nav-icons/abstract-class-kotlin.svg | 22 + images/nav-icons/abstract-class.svg | 20 + images/nav-icons/annotation-kotlin.svg | 9 + images/nav-icons/annotation.svg | 7 + images/nav-icons/class-kotlin.svg | 9 + images/nav-icons/class.svg | 7 + images/nav-icons/enum-kotlin.svg | 9 + images/nav-icons/enum.svg | 7 + images/nav-icons/exception-class.svg | 7 + images/nav-icons/field-value.svg | 6 + images/nav-icons/field-variable.svg | 6 + images/nav-icons/function.svg | 7 + images/nav-icons/interface-kotlin.svg | 9 + images/nav-icons/interface.svg | 7 + images/nav-icons/object.svg | 9 + images/nav-icons/typealias-kotlin.svg | 9 + images/theme-toggle.svg | 3 + index.html | 164 ++ .../-image-bitmap-loader/index.html | 100 ++ .../-image-bitmap-loader/load.html | 76 + .../com.kmpalette.loader/index.html | 99 ++ kmpalette-bitmap-loader/index.html | 95 ++ kmpalette-bitmap-loader/navigation.html | 372 +++++ .../-d-e-f-a-u-l-t_-c-a-c-h-e_-s-i-z-e.html | 76 + .../-companion/index.html | 100 ++ .../-dominant-color-state.html | 76 + .../-dominant-color-state/color.html | 76 + .../-dominant-color-state/index.html | 202 +++ .../-dominant-color-state/on-color.html | 76 + .../-dominant-color-state/reset.html | 76 + .../-dominant-color-state/result.html | 76 + .../-dominant-color-state/update-from.html | 76 + .../-palette-result/-error/-error.html | 76 + .../-palette-result/-error/cause.html | 76 + .../-palette-result/-error/index.html | 134 ++ .../-palette-result/-loading/index.html | 100 ++ .../-palette-result/-success/-success.html | 76 + .../-palette-result/-success/index.html | 134 ++ .../-palette-result/-success/palette.html | 76 + .../com.kmpalette/-palette-result/index.html | 149 ++ .../-palette-result/palette-or-null.html | 76 + .../-d-e-f-a-u-l-t_-c-a-c-h-e_-s-i-z-e.html | 76 + .../-palette-state/-companion/index.html | 100 ++ .../-palette-state/-palette-state.html | 76 + .../-palette-state/generate.html | 76 + .../com.kmpalette/-palette-state/index.html | 172 ++ .../com.kmpalette/-palette-state/palette.html | 76 + .../com.kmpalette/-palette-state/state.html | 76 + .../-swatch-target/-muted-dark/index.html | 80 + .../-swatch-target/-muted-light/index.html | 80 + .../-swatch-target/-muted/index.html | 80 + .../-swatch-target/-vibrant-dark/index.html | 80 + .../-swatch-target/-vibrant-light/index.html | 80 + .../-swatch-target/-vibrant/index.html | 80 + .../com.kmpalette/-swatch-target/index.html | 175 ++ .../com.kmpalette/body-text-color.html | 76 + kmpalette-core/com.kmpalette/color.html | 76 + .../com.kmpalette/generate-palette.html | 76 + kmpalette-core/com.kmpalette/get-swatch.html | 76 + kmpalette-core/com.kmpalette/get.html | 76 + kmpalette-core/com.kmpalette/index.html | 317 ++++ kmpalette-core/com.kmpalette/on-color.html | 76 + .../remember-dominant-color-state.html | 76 + .../remember-generate-palette.html | 76 + .../com.kmpalette/remember-palette-state.html | 76 + .../com.kmpalette/title-text-color.html | 76 + kmpalette-core/index.html | 95 ++ kmpalette-core/navigation.html | 372 +++++ navigation.html | 372 +++++ package-list | 24 + scripts/clipboard.js | 52 + scripts/main.js | 44 + scripts/navigation-loader.js | 91 + scripts/pages.json | 1 + scripts/platform-content-handler.js | 393 +++++ scripts/prism.js | 22 + scripts/sourceset_dependencies.js | 1 + scripts/symbol-parameters-wrapper_deferred.js | 83 + styles/font-jb-sans-auto.css | 32 + styles/logo-styles.css | 5 + styles/main.css | 118 ++ styles/prism.css | 213 +++ styles/style.css | 1479 +++++++++++++++++ 220 files changed, 22224 insertions(+) create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-builder/-builder.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-builder/add-filter.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-builder/add-target.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-builder/clear-filters.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-builder/clear-region.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-builder/clear-targets.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-builder/generate.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-builder/index.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-builder/maximum-color-count.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-builder/resize-bitmap-area.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-builder/set-region.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-c-a-l-c-u-l-a-t-e_-n-u-m-b-e-r_-c-o-l-o-r-s.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-f-i-l-t-e-r.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-r-e-s-i-z-e_-b-i-t-m-a-p_-a-r-e-a.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-companion/-m-i-n_-c-o-n-t-r-a-s-t_-b-o-d-y_-t-e-x-t.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-companion/-m-i-n_-c-o-n-t-r-a-s-t_-t-i-t-l-e_-t-e-x-t.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-companion/from.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-companion/index.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-filter/index.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-filter/is-allowed.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-swatch/-swatch.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-swatch/body-text-color.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-swatch/hsl.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-swatch/index.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-swatch/population.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-swatch/rgb.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/-swatch/title-text-color.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/dark-muted-swatch.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/dark-vibrant-swatch.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/dominant-swatch.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/generate.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/get-color-for-target.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/get-dark-muted-color.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/get-dark-vibrant-color.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/get-dominant-color.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/get-light-muted-color.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/get-light-vibrant-color.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/get-muted-color.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/get-swatch-for-target.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/get-vibrant-color.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/index.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/light-muted-swatch.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/light-vibrant-swatch.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/muted-swatch.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/swatches.html create mode 100644 androidx-palette/androidx.palette.graphics/-palette/vibrant-swatch.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/-builder.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/build.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/index.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/set-exclusive.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/set-lightness-weight.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/set-maximum-lightness.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/set-maximum-saturation.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/set-minimum-lightness.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/set-minimum-saturation.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/set-population-weight.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/set-saturation-weight.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/set-target-lightness.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-builder/set-target-saturation.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-companion/-d-a-r-k_-m-u-t-e-d.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-companion/-d-a-r-k_-v-i-b-r-a-n-t.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-companion/-l-i-g-h-t_-m-u-t-e-d.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-companion/-l-i-g-h-t_-v-i-b-r-a-n-t.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-companion/-m-u-t-e-d.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-companion/-v-i-b-r-a-n-t.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/-companion/index.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/index.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/is-exclusive.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/lightness-targets.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/lightness-weight.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/maximum-lightness.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/maximum-saturation.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/minimum-lightness.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/minimum-saturation.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/normalize-weights.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/population-weight.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/saturation-targets.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/saturation-weight.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/target-lightness.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/target-saturation.html create mode 100644 androidx-palette/androidx.palette.graphics/-target/weights.html create mode 100644 androidx-palette/androidx.palette.graphics/index.html create mode 100644 androidx-palette/index.html create mode 100644 androidx-palette/navigation.html create mode 100644 extensions-base64/com.kmpalette.extensions.base64/index.html create mode 100644 extensions-base64/com.kmpalette.extensions.base64/remember-base64-dominant-color-state.html create mode 100644 extensions-base64/com.kmpalette.extensions.base64/remember-base64-palette-state.html create mode 100644 extensions-base64/com.kmpalette.loader/-base64-loader/index.html create mode 100644 extensions-base64/com.kmpalette.loader/-base64-loader/load.html create mode 100644 extensions-base64/com.kmpalette.loader/index.html create mode 100644 extensions-base64/index.html create mode 100644 extensions-base64/navigation.html create mode 100644 extensions-bytearray/com.kmpalette.extensions.bytearray/index.html create mode 100644 extensions-bytearray/com.kmpalette.extensions.bytearray/remember-byte-array-dominant-color-state.html create mode 100644 extensions-bytearray/com.kmpalette.extensions.bytearray/remember-byte-array-palette-state.html create mode 100644 extensions-bytearray/com.kmpalette.extensions.bytearray/remember-generate-palette.html create mode 100644 extensions-bytearray/com.kmpalette.loader/-byte-array-loader/index.html create mode 100644 extensions-bytearray/com.kmpalette.loader/-byte-array-loader/load.html create mode 100644 extensions-bytearray/com.kmpalette.loader/index.html create mode 100644 extensions-bytearray/index.html create mode 100644 extensions-bytearray/navigation.html create mode 100644 extensions-libres/com.kmpalette.extensions.libres/index.html create mode 100644 extensions-libres/com.kmpalette.extensions.libres/remember-generate-palette.html create mode 100644 extensions-libres/com.kmpalette.extensions.libres/remember-libres-dominant-color-state.html create mode 100644 extensions-libres/com.kmpalette.extensions.libres/remember-libres-palette-state.html create mode 100644 extensions-libres/com.kmpalette.loader/-libres-loader/index.html create mode 100644 extensions-libres/com.kmpalette.loader/-libres-loader/load.html create mode 100644 extensions-libres/com.kmpalette.loader/index.html create mode 100644 extensions-libres/index.html create mode 100644 extensions-libres/navigation.html create mode 100644 extensions-network/com.kmpalette.extensions.network/index.html create mode 100644 extensions-network/com.kmpalette.extensions.network/remember-generate-palette.html create mode 100644 extensions-network/com.kmpalette.extensions.network/remember-network-dominant-color-state.html create mode 100644 extensions-network/com.kmpalette.extensions.network/remember-network-palette-state.html create mode 100644 extensions-network/com.kmpalette.loader/-network-loader/-network-loader.html create mode 100644 extensions-network/com.kmpalette.loader/-network-loader/index.html create mode 100644 extensions-network/com.kmpalette.loader/-network-loader/load.html create mode 100644 extensions-network/com.kmpalette.loader/index.html create mode 100644 extensions-network/index.html create mode 100644 extensions-network/navigation.html create mode 100644 extensions-resources/com.kmpalette.extensions.resources/index.html create mode 100644 extensions-resources/com.kmpalette.extensions.resources/remember-generate-palette.html create mode 100644 extensions-resources/com.kmpalette.extensions.resources/remember-resource-palette-state.html create mode 100644 extensions-resources/com.kmpalette.extensions.resources/remember-resources-dominant-color-state.html create mode 100644 extensions-resources/com.kmpalette.loader/-resource-loader/index.html create mode 100644 extensions-resources/com.kmpalette.loader/-resource-loader/load.html create mode 100644 extensions-resources/com.kmpalette.loader/index.html create mode 100644 extensions-resources/index.html create mode 100644 extensions-resources/navigation.html create mode 100644 images/anchor-copy-button.svg create mode 100644 images/arrow_down.svg create mode 100644 images/burger.svg create mode 100644 images/copy-icon.svg create mode 100644 images/copy-successful-icon.svg create mode 100644 images/footer-go-to-link.svg create mode 100644 images/go-to-top-icon.svg create mode 100644 images/logo-icon.svg create mode 100644 images/nav-icons/abstract-class-kotlin.svg create mode 100644 images/nav-icons/abstract-class.svg create mode 100644 images/nav-icons/annotation-kotlin.svg create mode 100644 images/nav-icons/annotation.svg create mode 100644 images/nav-icons/class-kotlin.svg create mode 100644 images/nav-icons/class.svg create mode 100644 images/nav-icons/enum-kotlin.svg create mode 100644 images/nav-icons/enum.svg create mode 100644 images/nav-icons/exception-class.svg create mode 100644 images/nav-icons/field-value.svg create mode 100644 images/nav-icons/field-variable.svg create mode 100644 images/nav-icons/function.svg create mode 100644 images/nav-icons/interface-kotlin.svg create mode 100644 images/nav-icons/interface.svg create mode 100644 images/nav-icons/object.svg create mode 100644 images/nav-icons/typealias-kotlin.svg create mode 100644 images/theme-toggle.svg create mode 100644 index.html create mode 100644 kmpalette-bitmap-loader/com.kmpalette.loader/-image-bitmap-loader/index.html create mode 100644 kmpalette-bitmap-loader/com.kmpalette.loader/-image-bitmap-loader/load.html create mode 100644 kmpalette-bitmap-loader/com.kmpalette.loader/index.html create mode 100644 kmpalette-bitmap-loader/index.html create mode 100644 kmpalette-bitmap-loader/navigation.html create mode 100644 kmpalette-core/com.kmpalette/-dominant-color-state/-companion/-d-e-f-a-u-l-t_-c-a-c-h-e_-s-i-z-e.html create mode 100644 kmpalette-core/com.kmpalette/-dominant-color-state/-companion/index.html create mode 100644 kmpalette-core/com.kmpalette/-dominant-color-state/-dominant-color-state.html create mode 100644 kmpalette-core/com.kmpalette/-dominant-color-state/color.html create mode 100644 kmpalette-core/com.kmpalette/-dominant-color-state/index.html create mode 100644 kmpalette-core/com.kmpalette/-dominant-color-state/on-color.html create mode 100644 kmpalette-core/com.kmpalette/-dominant-color-state/reset.html create mode 100644 kmpalette-core/com.kmpalette/-dominant-color-state/result.html create mode 100644 kmpalette-core/com.kmpalette/-dominant-color-state/update-from.html create mode 100644 kmpalette-core/com.kmpalette/-palette-result/-error/-error.html create mode 100644 kmpalette-core/com.kmpalette/-palette-result/-error/cause.html create mode 100644 kmpalette-core/com.kmpalette/-palette-result/-error/index.html create mode 100644 kmpalette-core/com.kmpalette/-palette-result/-loading/index.html create mode 100644 kmpalette-core/com.kmpalette/-palette-result/-success/-success.html create mode 100644 kmpalette-core/com.kmpalette/-palette-result/-success/index.html create mode 100644 kmpalette-core/com.kmpalette/-palette-result/-success/palette.html create mode 100644 kmpalette-core/com.kmpalette/-palette-result/index.html create mode 100644 kmpalette-core/com.kmpalette/-palette-result/palette-or-null.html create mode 100644 kmpalette-core/com.kmpalette/-palette-state/-companion/-d-e-f-a-u-l-t_-c-a-c-h-e_-s-i-z-e.html create mode 100644 kmpalette-core/com.kmpalette/-palette-state/-companion/index.html create mode 100644 kmpalette-core/com.kmpalette/-palette-state/-palette-state.html create mode 100644 kmpalette-core/com.kmpalette/-palette-state/generate.html create mode 100644 kmpalette-core/com.kmpalette/-palette-state/index.html create mode 100644 kmpalette-core/com.kmpalette/-palette-state/palette.html create mode 100644 kmpalette-core/com.kmpalette/-palette-state/state.html create mode 100644 kmpalette-core/com.kmpalette/-swatch-target/-muted-dark/index.html create mode 100644 kmpalette-core/com.kmpalette/-swatch-target/-muted-light/index.html create mode 100644 kmpalette-core/com.kmpalette/-swatch-target/-muted/index.html create mode 100644 kmpalette-core/com.kmpalette/-swatch-target/-vibrant-dark/index.html create mode 100644 kmpalette-core/com.kmpalette/-swatch-target/-vibrant-light/index.html create mode 100644 kmpalette-core/com.kmpalette/-swatch-target/-vibrant/index.html create mode 100644 kmpalette-core/com.kmpalette/-swatch-target/index.html create mode 100644 kmpalette-core/com.kmpalette/body-text-color.html create mode 100644 kmpalette-core/com.kmpalette/color.html create mode 100644 kmpalette-core/com.kmpalette/generate-palette.html create mode 100644 kmpalette-core/com.kmpalette/get-swatch.html create mode 100644 kmpalette-core/com.kmpalette/get.html create mode 100644 kmpalette-core/com.kmpalette/index.html create mode 100644 kmpalette-core/com.kmpalette/on-color.html create mode 100644 kmpalette-core/com.kmpalette/remember-dominant-color-state.html create mode 100644 kmpalette-core/com.kmpalette/remember-generate-palette.html create mode 100644 kmpalette-core/com.kmpalette/remember-palette-state.html create mode 100644 kmpalette-core/com.kmpalette/title-text-color.html create mode 100644 kmpalette-core/index.html create mode 100644 kmpalette-core/navigation.html create mode 100644 navigation.html create mode 100644 package-list create mode 100644 scripts/clipboard.js create mode 100644 scripts/main.js create mode 100644 scripts/navigation-loader.js create mode 100644 scripts/pages.json create mode 100644 scripts/platform-content-handler.js create mode 100644 scripts/prism.js create mode 100644 scripts/sourceset_dependencies.js create mode 100644 scripts/symbol-parameters-wrapper_deferred.js create mode 100644 styles/font-jb-sans-auto.css create mode 100644 styles/logo-styles.css create mode 100644 styles/main.css create mode 100644 styles/prism.css create mode 100644 styles/style.css diff --git a/androidx-palette/androidx.palette.graphics/-palette/-builder/-builder.html b/androidx-palette/androidx.palette.graphics/-palette/-builder/-builder.html new file mode 100644 index 0000000..036ad4d --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-builder/-builder.html @@ -0,0 +1,76 @@ + + + + + Builder + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Builder

+
+
constructor(bitmap: ImageBitmap)

Construct a new Builder using a source ImageBitmap


constructor(swatches: List<Palette.Swatch>)

Construct a new Builder using a list of Swatch instances. Typically only used for testing.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-builder/add-filter.html b/androidx-palette/androidx.palette.graphics/-palette/-builder/add-filter.html new file mode 100644 index 0000000..8b0db34 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-builder/add-filter.html @@ -0,0 +1,76 @@ + + + + + addFilter + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

addFilter

+
+

Add a filter to be able to have fine grained control over which colors are allowed in the resulting palette.

Parameters

filter

filter to add.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-builder/add-target.html b/androidx-palette/androidx.palette.graphics/-palette/-builder/add-target.html new file mode 100644 index 0000000..47c749e --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-builder/add-target.html @@ -0,0 +1,76 @@ + + + + + addTarget + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

addTarget

+
+

Add a target profile to be generated in the palette.

You can retrieve the result via Palette.getSwatchForTarget.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-builder/clear-filters.html b/androidx-palette/androidx.palette.graphics/-palette/-builder/clear-filters.html new file mode 100644 index 0000000..7949e6d --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-builder/clear-filters.html @@ -0,0 +1,76 @@ + + + + + clearFilters + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

clearFilters

+
+

Clear all added filters. This includes any default filters added automatically by Palette.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-builder/clear-region.html b/androidx-palette/androidx.palette.graphics/-palette/-builder/clear-region.html new file mode 100644 index 0000000..1d7f15e --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-builder/clear-region.html @@ -0,0 +1,76 @@ + + + + + clearRegion + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

clearRegion

+
+

Clear any previously region set via .setRegion.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-builder/clear-targets.html b/androidx-palette/androidx.palette.graphics/-palette/-builder/clear-targets.html new file mode 100644 index 0000000..c2e3aca --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-builder/clear-targets.html @@ -0,0 +1,76 @@ + + + + + clearTargets + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

clearTargets

+
+

Clear all added targets. This includes any default targets added automatically by Palette.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-builder/generate.html b/androidx-palette/androidx.palette.graphics/-palette/-builder/generate.html new file mode 100644 index 0000000..5975601 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-builder/generate.html @@ -0,0 +1,76 @@ + + + + + generate + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

generate

+
+

Generate and return the Palette synchronously.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-builder/index.html b/androidx-palette/androidx.palette.graphics/-palette/-builder/index.html new file mode 100644 index 0000000..49e4d76 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-builder/index.html @@ -0,0 +1,239 @@ + + + + + Builder + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Builder

+
class Builder

Builder class for generating Palette instances.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(bitmap: ImageBitmap)

Construct a new Builder using a source ImageBitmap

constructor(swatches: List<Palette.Swatch>)

Construct a new Builder using a list of Swatch instances. Typically only used for testing.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

Add a filter to be able to have fine grained control over which colors are allowed in the resulting palette.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Add a target profile to be generated in the palette.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Clear all added filters. This includes any default filters added automatically by Palette.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Clear any previously region set via .setRegion.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Clear all added targets. This includes any default targets added automatically by Palette.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Generate and return the Palette synchronously.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set the maximum number of colors to use in the quantization step when using a ImageBitmap as the source.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set the resize value when using a ImageBitmap as the source. If the bitmap's area is greater than the value specified, then the bitmap will be resized so that its area matches area. If the bitmap is smaller or equal, the original is used as-is.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun setRegion(left: Int, top: Int, right: Int, bottom: Int): Palette.Builder

Set a region of the bitmap to be used exclusively when calculating the palette.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-builder/maximum-color-count.html b/androidx-palette/androidx.palette.graphics/-palette/-builder/maximum-color-count.html new file mode 100644 index 0000000..9d17e36 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-builder/maximum-color-count.html @@ -0,0 +1,76 @@ + + + + + maximumColorCount + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

maximumColorCount

+
+

Set the maximum number of colors to use in the quantization step when using a ImageBitmap as the source.

Good values for depend on the source image type. For landscapes, good values are in the range 10-16. For images which are largely made up of people's faces then this value should be increased to ~24.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-builder/resize-bitmap-area.html b/androidx-palette/androidx.palette.graphics/-palette/-builder/resize-bitmap-area.html new file mode 100644 index 0000000..4de6005 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-builder/resize-bitmap-area.html @@ -0,0 +1,76 @@ + + + + + resizeBitmapArea + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

resizeBitmapArea

+
+

Set the resize value when using a ImageBitmap as the source. If the bitmap's area is greater than the value specified, then the bitmap will be resized so that its area matches area. If the bitmap is smaller or equal, the original is used as-is.

This value has a large effect on the processing time. The larger the resized image is, the greater time it will take to generate the palette. The smaller the image is, the more detail is lost in the resulting image and thus less precision for color selection.

Parameters

area

the number of pixels that the intermediary scaled down Bitmap should cover, or any value <= 0 to disable resizing.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-builder/set-region.html b/androidx-palette/androidx.palette.graphics/-palette/-builder/set-region.html new file mode 100644 index 0000000..0153357 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-builder/set-region.html @@ -0,0 +1,76 @@ + + + + + setRegion + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setRegion

+
+
fun setRegion(left: Int, top: Int, right: Int, bottom: Int): Palette.Builder

Set a region of the bitmap to be used exclusively when calculating the palette.

This only works when the original input is a ImageBitmap.

Parameters

left

The left side of the rectangle used for the region.

top

The top of the rectangle used for the region.

right

The right side of the rectangle used for the region.

bottom

The bottom of the rectangle used for the region.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-c-a-l-c-u-l-a-t-e_-n-u-m-b-e-r_-c-o-l-o-r-s.html b/androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-c-a-l-c-u-l-a-t-e_-n-u-m-b-e-r_-c-o-l-o-r-s.html new file mode 100644 index 0000000..ca4cf51 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-c-a-l-c-u-l-a-t-e_-n-u-m-b-e-r_-c-o-l-o-r-s.html @@ -0,0 +1,76 @@ + + + + + DEFAULT_CALCULATE_NUMBER_COLORS + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DEFAULT_CALCULATE_NUMBER_COLORS

+
+ +
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-f-i-l-t-e-r.html b/androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-f-i-l-t-e-r.html new file mode 100644 index 0000000..5c72b38 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-f-i-l-t-e-r.html @@ -0,0 +1,76 @@ + + + + + DEFAULT_FILTER + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DEFAULT_FILTER

+
+

The default filter.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-r-e-s-i-z-e_-b-i-t-m-a-p_-a-r-e-a.html b/androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-r-e-s-i-z-e_-b-i-t-m-a-p_-a-r-e-a.html new file mode 100644 index 0000000..50075d7 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-companion/-d-e-f-a-u-l-t_-r-e-s-i-z-e_-b-i-t-m-a-p_-a-r-e-a.html @@ -0,0 +1,76 @@ + + + + + DEFAULT_RESIZE_BITMAP_AREA + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DEFAULT_RESIZE_BITMAP_AREA

+
+ +
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-companion/-m-i-n_-c-o-n-t-r-a-s-t_-b-o-d-y_-t-e-x-t.html b/androidx-palette/androidx.palette.graphics/-palette/-companion/-m-i-n_-c-o-n-t-r-a-s-t_-b-o-d-y_-t-e-x-t.html new file mode 100644 index 0000000..9eb0105 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-companion/-m-i-n_-c-o-n-t-r-a-s-t_-b-o-d-y_-t-e-x-t.html @@ -0,0 +1,76 @@ + + + + + MIN_CONTRAST_BODY_TEXT + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

MIN_CONTRAST_BODY_TEXT

+
+
const val MIN_CONTRAST_BODY_TEXT: Float = 4.5f
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-companion/-m-i-n_-c-o-n-t-r-a-s-t_-t-i-t-l-e_-t-e-x-t.html b/androidx-palette/androidx.palette.graphics/-palette/-companion/-m-i-n_-c-o-n-t-r-a-s-t_-t-i-t-l-e_-t-e-x-t.html new file mode 100644 index 0000000..37f5fab --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-companion/-m-i-n_-c-o-n-t-r-a-s-t_-t-i-t-l-e_-t-e-x-t.html @@ -0,0 +1,76 @@ + + + + + MIN_CONTRAST_TITLE_TEXT + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

MIN_CONTRAST_TITLE_TEXT

+
+
const val MIN_CONTRAST_TITLE_TEXT: Float = 3.0f
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-companion/from.html b/androidx-palette/androidx.palette.graphics/-palette/-companion/from.html new file mode 100644 index 0000000..d114890 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-companion/from.html @@ -0,0 +1,76 @@ + + + + + from + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

from

+
+

Start generating a Palette with the returned Builder instance.


fun from(swatches: List<Palette.Swatch>): Palette

Generate a Palette from the pre-generated list of Palette.Swatch swatches. This is useful for testing, or if you want to resurrect a Palette instance from a list of swatches. Will return null if the swatches is null.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-companion/index.html b/androidx-palette/androidx.palette.graphics/-palette/-companion/index.html new file mode 100644 index 0000000..140be84 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-companion/index.html @@ -0,0 +1,179 @@ + + + + + Companion + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
object Companion
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The default filter.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+ +
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
const val MIN_CONTRAST_BODY_TEXT: Float = 4.5f
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
const val MIN_CONTRAST_TITLE_TEXT: Float = 3.0f
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

Start generating a Palette with the returned Builder instance.

fun from(swatches: List<Palette.Swatch>): Palette

Generate a Palette from the pre-generated list of Palette.Swatch swatches. This is useful for testing, or if you want to resurrect a Palette instance from a list of swatches. Will return null if the swatches is null.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-filter/index.html b/androidx-palette/androidx.palette.graphics/-palette/-filter/index.html new file mode 100644 index 0000000..416184f --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-filter/index.html @@ -0,0 +1,100 @@ + + + + + Filter + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Filter

+
fun interface Filter

A Filter provides a mechanism for exercising fine-grained control over which colors are valid within a resulting Palette.

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
abstract fun isAllowed(rgb: Int, hsl: FloatArray): Boolean

Hook to allow clients to be able filter colors from resulting palette.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-filter/is-allowed.html b/androidx-palette/androidx.palette.graphics/-palette/-filter/is-allowed.html new file mode 100644 index 0000000..5fe0bfe --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-filter/is-allowed.html @@ -0,0 +1,76 @@ + + + + + isAllowed + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isAllowed

+
+
abstract fun isAllowed(rgb: Int, hsl: FloatArray): Boolean

Hook to allow clients to be able filter colors from resulting palette.

Return

true if the color is allowed, false if not.

Parameters

rgb

the color in RGB888.

hsl

HSL representation of the color.

See also

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-swatch/-swatch.html b/androidx-palette/androidx.palette.graphics/-palette/-swatch/-swatch.html new file mode 100644 index 0000000..6e44906 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-swatch/-swatch.html @@ -0,0 +1,76 @@ + + + + + Swatch + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Swatch

+
+
constructor(rgb: Int, population: Int)
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-swatch/body-text-color.html b/androidx-palette/androidx.palette.graphics/-palette/-swatch/body-text-color.html new file mode 100644 index 0000000..91dff22 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-swatch/body-text-color.html @@ -0,0 +1,76 @@ + + + + + bodyTextColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

bodyTextColor

+
+

Returns an appropriate color to use for any 'body' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-swatch/hsl.html b/androidx-palette/androidx.palette.graphics/-palette/-swatch/hsl.html new file mode 100644 index 0000000..22034dd --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-swatch/hsl.html @@ -0,0 +1,76 @@ + + + + + hsl + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

hsl

+
+

Return this swatch's HSL values. hsv0 is Hue [0 .. 360) hsv1 is Saturation 0...1 hsv2 is Lightness 0...1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-swatch/index.html b/androidx-palette/androidx.palette.graphics/-palette/-swatch/index.html new file mode 100644 index 0000000..5a37bd0 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-swatch/index.html @@ -0,0 +1,179 @@ + + + + + Swatch + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Swatch

+
class Swatch(val rgb: Int, val population: Int)

Represents a color swatch generated from an image's palette. The RGB color can be retrieved by calling rgb.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(rgb: Int, population: Int)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns an appropriate color to use for any 'body' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Return this swatch's HSL values. hsv0 is Hue [0 .. 360) hsv1 is Saturation 0...1 hsv2 is Lightness 0...1

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
val rgb: Int
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns an appropriate color to use for any 'title' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-swatch/population.html b/androidx-palette/androidx.palette.graphics/-palette/-swatch/population.html new file mode 100644 index 0000000..f2c7e17 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-swatch/population.html @@ -0,0 +1,76 @@ + + + + + population + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

population

+
+

Return

the number of pixels represented by this swatch

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-swatch/rgb.html b/androidx-palette/androidx.palette.graphics/-palette/-swatch/rgb.html new file mode 100644 index 0000000..ade8351 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-swatch/rgb.html @@ -0,0 +1,76 @@ + + + + + rgb + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rgb

+
+
val rgb: Int

Return

this swatch's RGB color value

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/-swatch/title-text-color.html b/androidx-palette/androidx.palette.graphics/-palette/-swatch/title-text-color.html new file mode 100644 index 0000000..587c1d5 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/-swatch/title-text-color.html @@ -0,0 +1,76 @@ + + + + + titleTextColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

titleTextColor

+
+

Returns an appropriate color to use for any 'title' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/dark-muted-swatch.html b/androidx-palette/androidx.palette.graphics/-palette/dark-muted-swatch.html new file mode 100644 index 0000000..6f571a2 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/dark-muted-swatch.html @@ -0,0 +1,76 @@ + + + + + darkMutedSwatch + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

darkMutedSwatch

+
+

Returns a muted and dark swatch from the palette. Might be null.

See also

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/dark-vibrant-swatch.html b/androidx-palette/androidx.palette.graphics/-palette/dark-vibrant-swatch.html new file mode 100644 index 0000000..936d00d --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/dark-vibrant-swatch.html @@ -0,0 +1,76 @@ + + + + + darkVibrantSwatch + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

darkVibrantSwatch

+
+

Returns a dark and vibrant swatch from the palette. Might be null.

See also

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/dominant-swatch.html b/androidx-palette/androidx.palette.graphics/-palette/dominant-swatch.html new file mode 100644 index 0000000..bec3be0 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/dominant-swatch.html @@ -0,0 +1,76 @@ + + + + + dominantSwatch + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

dominantSwatch

+
+ +
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/generate.html b/androidx-palette/androidx.palette.graphics/-palette/generate.html new file mode 100644 index 0000000..be2b40c --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/generate.html @@ -0,0 +1,76 @@ + + + + + generate + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

generate

+
+
fun generate()
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/get-color-for-target.html b/androidx-palette/androidx.palette.graphics/-palette/get-color-for-target.html new file mode 100644 index 0000000..cef61cc --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/get-color-for-target.html @@ -0,0 +1,76 @@ + + + + + getColorForTarget + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getColorForTarget

+
+
fun getColorForTarget(target: Target, @ColorInt defaultColor: Int): Int

Returns the selected color for the given target from the palette as an RGB packed int.

Parameters

defaultColor

value to return if the swatch isn't available

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/get-dark-muted-color.html b/androidx-palette/androidx.palette.graphics/-palette/get-dark-muted-color.html new file mode 100644 index 0000000..8f7e3b3 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/get-dark-muted-color.html @@ -0,0 +1,76 @@ + + + + + getDarkMutedColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getDarkMutedColor

+
+
fun getDarkMutedColor(@ColorInt defaultColor: Int): Int

Returns a muted and dark color from the palette as an RGB packed int.

Parameters

defaultColor

value to return if the swatch isn't available

See also

.getDarkMutedSwatch

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/get-dark-vibrant-color.html b/androidx-palette/androidx.palette.graphics/-palette/get-dark-vibrant-color.html new file mode 100644 index 0000000..4ac47b4 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/get-dark-vibrant-color.html @@ -0,0 +1,76 @@ + + + + + getDarkVibrantColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getDarkVibrantColor

+
+

Returns a dark and vibrant color from the palette as an RGB packed int.

Parameters

defaultColor

value to return if the swatch isn't available

See also

.getDarkVibrantSwatch

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/get-dominant-color.html b/androidx-palette/androidx.palette.graphics/-palette/get-dominant-color.html new file mode 100644 index 0000000..25649bc --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/get-dominant-color.html @@ -0,0 +1,76 @@ + + + + + getDominantColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getDominantColor

+
+
fun getDominantColor(@ColorInt defaultColor: Int): Int

Returns the color of the dominant swatch from the palette, as an RGB packed int.

Parameters

defaultColor

value to return if the swatch isn't available

See also

.getDominantSwatch

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/get-light-muted-color.html b/androidx-palette/androidx.palette.graphics/-palette/get-light-muted-color.html new file mode 100644 index 0000000..1721361 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/get-light-muted-color.html @@ -0,0 +1,76 @@ + + + + + getLightMutedColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getLightMutedColor

+
+

Returns a muted and light color from the palette as an RGB packed int.

Parameters

defaultColor

value to return if the swatch isn't available

See also

.getLightMutedSwatch

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/get-light-vibrant-color.html b/androidx-palette/androidx.palette.graphics/-palette/get-light-vibrant-color.html new file mode 100644 index 0000000..9f0cd9f --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/get-light-vibrant-color.html @@ -0,0 +1,76 @@ + + + + + getLightVibrantColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getLightVibrantColor

+
+

Returns a light and vibrant color from the palette as an RGB packed int.

Parameters

defaultColor

value to return if the swatch isn't available

See also

.getLightVibrantSwatch

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/get-muted-color.html b/androidx-palette/androidx.palette.graphics/-palette/get-muted-color.html new file mode 100644 index 0000000..450f04c --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/get-muted-color.html @@ -0,0 +1,76 @@ + + + + + getMutedColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getMutedColor

+
+
fun getMutedColor(@ColorInt defaultColor: Int): Int

Returns a muted color from the palette as an RGB packed int.

Parameters

defaultColor

value to return if the swatch isn't available

See also

.getMutedSwatch

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/get-swatch-for-target.html b/androidx-palette/androidx.palette.graphics/-palette/get-swatch-for-target.html new file mode 100644 index 0000000..f106256 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/get-swatch-for-target.html @@ -0,0 +1,76 @@ + + + + + getSwatchForTarget + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getSwatchForTarget

+
+

Returns the selected swatch for the given target from the palette, or null if one could not be found.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/get-vibrant-color.html b/androidx-palette/androidx.palette.graphics/-palette/get-vibrant-color.html new file mode 100644 index 0000000..f2218b6 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/get-vibrant-color.html @@ -0,0 +1,76 @@ + + + + + getVibrantColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getVibrantColor

+
+
fun getVibrantColor(@ColorInt defaultColor: Int): Int

Returns the most vibrant color in the palette as an RGB packed int.

Parameters

defaultColor

value to return if the swatch isn't available

See also

.getVibrantSwatch

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/index.html b/androidx-palette/androidx.palette.graphics/-palette/index.html new file mode 100644 index 0000000..61ffc05 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/index.html @@ -0,0 +1,423 @@ + + + + + Palette + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Palette

+
class Palette

A helper class to extract prominent colors from an image.

A number of colors with different profiles are extracted from the image:

  • Vibrant

  • Vibrant Dark

  • Vibrant Light

  • Muted

  • Muted Dark

  • Muted Light

These can be retrieved from the appropriate getter method.

Instances are created with a Builder which supports several options to tweak the generated Palette. See that class' documentation for more information.

Generation should always be completed on a background thread, ideally the one in which you load your image on. Builder supports both synchronous and asynchronous generation:

Palette p = Palette.from(bitmap).generate();
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
class Builder

Builder class for generating Palette instances.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
object Companion
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun interface Filter

A Filter provides a mechanism for exercising fine-grained control over which colors are valid within a resulting Palette.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
class Swatch(val rgb: Int, val population: Int)

Represents a color swatch generated from an image's palette. The RGB color can be retrieved by calling rgb.

+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns a muted and dark swatch from the palette. Might be null.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns a dark and vibrant swatch from the palette. Might be null.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+ +
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns a muted and light swatch from the palette. Might be null.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns a light and vibrant swatch from the palette. Might be null.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns a muted swatch from the palette. Might be null.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns the dominant swatch from the palette.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns the most vibrant swatch in the palette. Might be null.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun generate()
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun getColorForTarget(target: Target, @ColorInt defaultColor: Int): Int

Returns the selected color for the given target from the palette as an RGB packed int.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun getDarkMutedColor(@ColorInt defaultColor: Int): Int

Returns a muted and dark color from the palette as an RGB packed int.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns a dark and vibrant color from the palette as an RGB packed int.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun getDominantColor(@ColorInt defaultColor: Int): Int

Returns the color of the dominant swatch from the palette, as an RGB packed int.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns a muted and light color from the palette as an RGB packed int.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns a light and vibrant color from the palette as an RGB packed int.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun getMutedColor(@ColorInt defaultColor: Int): Int

Returns a muted color from the palette as an RGB packed int.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns the selected swatch for the given target from the palette, or null if one could not be found.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun getVibrantColor(@ColorInt defaultColor: Int): Int

Returns the most vibrant color in the palette as an RGB packed int.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/light-muted-swatch.html b/androidx-palette/androidx.palette.graphics/-palette/light-muted-swatch.html new file mode 100644 index 0000000..7e30081 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/light-muted-swatch.html @@ -0,0 +1,76 @@ + + + + + lightMutedSwatch + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

lightMutedSwatch

+
+

Returns a muted and light swatch from the palette. Might be null.

See also

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/light-vibrant-swatch.html b/androidx-palette/androidx.palette.graphics/-palette/light-vibrant-swatch.html new file mode 100644 index 0000000..8091a06 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/light-vibrant-swatch.html @@ -0,0 +1,76 @@ + + + + + lightVibrantSwatch + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

lightVibrantSwatch

+
+

Returns a light and vibrant swatch from the palette. Might be null.

See also

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/muted-swatch.html b/androidx-palette/androidx.palette.graphics/-palette/muted-swatch.html new file mode 100644 index 0000000..67f8b1e --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/muted-swatch.html @@ -0,0 +1,76 @@ + + + + + mutedSwatch + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

mutedSwatch

+
+

Returns a muted swatch from the palette. Might be null.

See also

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/swatches.html b/androidx-palette/androidx.palette.graphics/-palette/swatches.html new file mode 100644 index 0000000..c11ec42 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/swatches.html @@ -0,0 +1,76 @@ + + + + + swatches + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

swatches

+
+

Returns the dominant swatch from the palette.

The dominant swatch is defined as the swatch with the greatest population (frequency) within the palette.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-palette/vibrant-swatch.html b/androidx-palette/androidx.palette.graphics/-palette/vibrant-swatch.html new file mode 100644 index 0000000..79e6a81 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-palette/vibrant-swatch.html @@ -0,0 +1,76 @@ + + + + + vibrantSwatch + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

vibrantSwatch

+
+

Returns the most vibrant swatch in the palette. Might be null.

See also

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/-builder.html b/androidx-palette/androidx.palette.graphics/-target/-builder/-builder.html new file mode 100644 index 0000000..1bae396 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/-builder.html @@ -0,0 +1,76 @@ + + + + + Builder + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Builder

+
+
constructor(target: Target = Target())
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/build.html b/androidx-palette/androidx.palette.graphics/-target/-builder/build.html new file mode 100644 index 0000000..d04c99d --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/build.html @@ -0,0 +1,76 @@ + + + + + build + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

build

+
+
fun build(): Target

Builds and returns the resulting Target.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/index.html b/androidx-palette/androidx.palette.graphics/-target/-builder/index.html new file mode 100644 index 0000000..ba83b91 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/index.html @@ -0,0 +1,269 @@ + + + + + Builder + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Builder

+
class Builder(target: Target = Target())

Builder class for generating custom Target instances.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(target: Target = Target())
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun build(): Target

Builds and returns the resulting Target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set whether any color selected for this target is exclusive to this target only. Defaults to true.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set the weight of importance that this target will place on lightness values.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set the maximum lightness value for this target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set the maximum saturation value for this target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set the minimum lightness value for this target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set the minimum saturation value for this target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set the weight of importance that this target will place on a color's population within the image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set the weight of importance that this target will place on saturation values.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set the target/ideal lightness value for this target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Set the target/ideal saturation value for this target.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/set-exclusive.html b/androidx-palette/androidx.palette.graphics/-target/-builder/set-exclusive.html new file mode 100644 index 0000000..86c5cca --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/set-exclusive.html @@ -0,0 +1,76 @@ + + + + + setExclusive + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setExclusive

+
+

Set whether any color selected for this target is exclusive to this target only. Defaults to true.

Parameters

exclusive

true if any the color is exclusive to this target, or false is the color can be selected for other targets.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/set-lightness-weight.html b/androidx-palette/androidx.palette.graphics/-target/-builder/set-lightness-weight.html new file mode 100644 index 0000000..aef0fc3 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/set-lightness-weight.html @@ -0,0 +1,76 @@ + + + + + setLightnessWeight + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setLightnessWeight

+
+

Set the weight of importance that this target will place on lightness values.

The larger the weight, relative to the other weights, the more important that a color being close to the target value has on selection.

A weight of 0 means that it has no weight, and thus has no bearing on the selection.

See also

.setTargetLightness

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/set-maximum-lightness.html b/androidx-palette/androidx.palette.graphics/-target/-builder/set-maximum-lightness.html new file mode 100644 index 0000000..9f9aa49 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/set-maximum-lightness.html @@ -0,0 +1,76 @@ + + + + + setMaximumLightness + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setMaximumLightness

+
+

Set the maximum lightness value for this target.

Valid range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/set-maximum-saturation.html b/androidx-palette/androidx.palette.graphics/-target/-builder/set-maximum-saturation.html new file mode 100644 index 0000000..1979df3 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/set-maximum-saturation.html @@ -0,0 +1,76 @@ + + + + + setMaximumSaturation + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setMaximumSaturation

+
+

Set the maximum saturation value for this target.

Valid range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/set-minimum-lightness.html b/androidx-palette/androidx.palette.graphics/-target/-builder/set-minimum-lightness.html new file mode 100644 index 0000000..1e6d280 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/set-minimum-lightness.html @@ -0,0 +1,76 @@ + + + + + setMinimumLightness + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setMinimumLightness

+
+

Set the minimum lightness value for this target.

Valid range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/set-minimum-saturation.html b/androidx-palette/androidx.palette.graphics/-target/-builder/set-minimum-saturation.html new file mode 100644 index 0000000..0b0f8c0 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/set-minimum-saturation.html @@ -0,0 +1,76 @@ + + + + + setMinimumSaturation + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setMinimumSaturation

+
+

Set the minimum saturation value for this target.

Valid range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/set-population-weight.html b/androidx-palette/androidx.palette.graphics/-target/-builder/set-population-weight.html new file mode 100644 index 0000000..64c6ae0 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/set-population-weight.html @@ -0,0 +1,76 @@ + + + + + setPopulationWeight + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setPopulationWeight

+
+

Set the weight of importance that this target will place on a color's population within the image.

The larger the weight, relative to the other weights, the more important that a color's population being close to the most populous has on selection.

A weight of 0 means that it has no weight, and thus has no bearing on the selection.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/set-saturation-weight.html b/androidx-palette/androidx.palette.graphics/-target/-builder/set-saturation-weight.html new file mode 100644 index 0000000..6ae89ae --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/set-saturation-weight.html @@ -0,0 +1,76 @@ + + + + + setSaturationWeight + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setSaturationWeight

+
+

Set the weight of importance that this target will place on saturation values.

The larger the weight, relative to the other weights, the more important that a color being close to the target value has on selection.

A weight of 0 means that it has no weight, and thus has no bearing on the selection.

See also

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/set-target-lightness.html b/androidx-palette/androidx.palette.graphics/-target/-builder/set-target-lightness.html new file mode 100644 index 0000000..5e4b0bd --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/set-target-lightness.html @@ -0,0 +1,76 @@ + + + + + setTargetLightness + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setTargetLightness

+
+

Set the target/ideal lightness value for this target.

Valid range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-builder/set-target-saturation.html b/androidx-palette/androidx.palette.graphics/-target/-builder/set-target-saturation.html new file mode 100644 index 0000000..0ef6590 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-builder/set-target-saturation.html @@ -0,0 +1,76 @@ + + + + + setTargetSaturation + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

setTargetSaturation

+
+

Set the target/ideal saturation value for this target.

Valid range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-companion/-d-a-r-k_-m-u-t-e-d.html b/androidx-palette/androidx.palette.graphics/-target/-companion/-d-a-r-k_-m-u-t-e-d.html new file mode 100644 index 0000000..134b85c --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-companion/-d-a-r-k_-m-u-t-e-d.html @@ -0,0 +1,76 @@ + + + + + DARK_MUTED + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DARK_MUTED

+
+

A target which has the characteristics of a muted color which is dark in luminance.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-companion/-d-a-r-k_-v-i-b-r-a-n-t.html b/androidx-palette/androidx.palette.graphics/-target/-companion/-d-a-r-k_-v-i-b-r-a-n-t.html new file mode 100644 index 0000000..ceb7db6 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-companion/-d-a-r-k_-v-i-b-r-a-n-t.html @@ -0,0 +1,76 @@ + + + + + DARK_VIBRANT + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DARK_VIBRANT

+
+

A target which has the characteristics of a vibrant color which is dark in luminance.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-companion/-l-i-g-h-t_-m-u-t-e-d.html b/androidx-palette/androidx.palette.graphics/-target/-companion/-l-i-g-h-t_-m-u-t-e-d.html new file mode 100644 index 0000000..e710894 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-companion/-l-i-g-h-t_-m-u-t-e-d.html @@ -0,0 +1,76 @@ + + + + + LIGHT_MUTED + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

LIGHT_MUTED

+
+

A target which has the characteristics of a muted color which is light in luminance.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-companion/-l-i-g-h-t_-v-i-b-r-a-n-t.html b/androidx-palette/androidx.palette.graphics/-target/-companion/-l-i-g-h-t_-v-i-b-r-a-n-t.html new file mode 100644 index 0000000..9f4b8d1 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-companion/-l-i-g-h-t_-v-i-b-r-a-n-t.html @@ -0,0 +1,76 @@ + + + + + LIGHT_VIBRANT + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

LIGHT_VIBRANT

+
+

A target which has the characteristics of a vibrant color which is light in luminance.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-companion/-m-u-t-e-d.html b/androidx-palette/androidx.palette.graphics/-target/-companion/-m-u-t-e-d.html new file mode 100644 index 0000000..00c7a96 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-companion/-m-u-t-e-d.html @@ -0,0 +1,76 @@ + + + + + MUTED + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

MUTED

+
+

A target which has the characteristics of a muted color which is neither light or dark.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-companion/-v-i-b-r-a-n-t.html b/androidx-palette/androidx.palette.graphics/-target/-companion/-v-i-b-r-a-n-t.html new file mode 100644 index 0000000..4318d0e --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-companion/-v-i-b-r-a-n-t.html @@ -0,0 +1,76 @@ + + + + + VIBRANT + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

VIBRANT

+
+

A target which has the characteristics of a vibrant color which is neither light or dark.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/-companion/index.html b/androidx-palette/androidx.palette.graphics/-target/-companion/index.html new file mode 100644 index 0000000..da1712a --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/-companion/index.html @@ -0,0 +1,175 @@ + + + + + Companion + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
object Companion
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

A target which has the characteristics of a muted color which is dark in luminance.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A target which has the characteristics of a vibrant color which is dark in luminance.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A target which has the characteristics of a muted color which is light in luminance.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A target which has the characteristics of a vibrant color which is light in luminance.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A target which has the characteristics of a muted color which is neither light or dark.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

A target which has the characteristics of a vibrant color which is neither light or dark.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/index.html b/androidx-palette/androidx.palette.graphics/-target/index.html new file mode 100644 index 0000000..6db9b78 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/index.html @@ -0,0 +1,333 @@ + + + + + Target + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Target

+
class Target

A class which allows custom selection of colors in a Palette's generation. Instances can be created via the Builder class.

To use the target, use the Palette.Builder.addTarget API when building a Palette.

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
class Builder(target: Target = Target())

Builder class for generating custom Target instances.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns whether any color selected for this target is exclusive for this target only.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+ +
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns the weight of importance that this target places on a color's lightness within the image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The maximum lightness value for this target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The maximum saturation value for this target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The minimum lightness value for this target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The minimum saturation value for this target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns the weight of importance that this target places on a color's population within the image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+ +
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns the weight of importance that this target places on a color's saturation within the image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The target lightness value for this target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The target saturation value for this target.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/is-exclusive.html b/androidx-palette/androidx.palette.graphics/-target/is-exclusive.html new file mode 100644 index 0000000..1287adc --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/is-exclusive.html @@ -0,0 +1,76 @@ + + + + + isExclusive + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

isExclusive

+
+

Returns whether any color selected for this target is exclusive for this target only.

If false, then the color can be selected for other targets.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/lightness-targets.html b/androidx-palette/androidx.palette.graphics/-target/lightness-targets.html new file mode 100644 index 0000000..026fe89 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/lightness-targets.html @@ -0,0 +1,76 @@ + + + + + lightnessTargets + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

lightnessTargets

+
+ +
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/lightness-weight.html b/androidx-palette/androidx.palette.graphics/-target/lightness-weight.html new file mode 100644 index 0000000..150523c --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/lightness-weight.html @@ -0,0 +1,76 @@ + + + + + lightnessWeight + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

lightnessWeight

+
+

Returns the weight of importance that this target places on a color's lightness within the image.

The larger the weight, relative to the other weights, the more important that a color being close to the target value has on selection.

See also

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/maximum-lightness.html b/androidx-palette/androidx.palette.graphics/-target/maximum-lightness.html new file mode 100644 index 0000000..da921e8 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/maximum-lightness.html @@ -0,0 +1,76 @@ + + + + + maximumLightness + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

maximumLightness

+
+

The maximum lightness value for this target.

Valid Range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/maximum-saturation.html b/androidx-palette/androidx.palette.graphics/-target/maximum-saturation.html new file mode 100644 index 0000000..685646d --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/maximum-saturation.html @@ -0,0 +1,76 @@ + + + + + maximumSaturation + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

maximumSaturation

+
+

The maximum saturation value for this target.

Valid Range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/minimum-lightness.html b/androidx-palette/androidx.palette.graphics/-target/minimum-lightness.html new file mode 100644 index 0000000..ae3d3ea --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/minimum-lightness.html @@ -0,0 +1,76 @@ + + + + + minimumLightness + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

minimumLightness

+
+

The minimum lightness value for this target.

Valid Range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/minimum-saturation.html b/androidx-palette/androidx.palette.graphics/-target/minimum-saturation.html new file mode 100644 index 0000000..f834b48 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/minimum-saturation.html @@ -0,0 +1,76 @@ + + + + + minimumSaturation + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

minimumSaturation

+
+

The minimum saturation value for this target.

Valid range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/normalize-weights.html b/androidx-palette/androidx.palette.graphics/-target/normalize-weights.html new file mode 100644 index 0000000..9eb6c3b --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/normalize-weights.html @@ -0,0 +1,76 @@ + + + + + normalizeWeights + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

normalizeWeights

+
+ +
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/population-weight.html b/androidx-palette/androidx.palette.graphics/-target/population-weight.html new file mode 100644 index 0000000..72ae397 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/population-weight.html @@ -0,0 +1,76 @@ + + + + + populationWeight + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

populationWeight

+
+

Returns the weight of importance that this target places on a color's population within the image.

The larger the weight, relative to the other weights, the more important that a color's population being close to the most populous has on selection.

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/saturation-targets.html b/androidx-palette/androidx.palette.graphics/-target/saturation-targets.html new file mode 100644 index 0000000..2a2bda5 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/saturation-targets.html @@ -0,0 +1,76 @@ + + + + + saturationTargets + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

saturationTargets

+
+ +
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/saturation-weight.html b/androidx-palette/androidx.palette.graphics/-target/saturation-weight.html new file mode 100644 index 0000000..59548f5 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/saturation-weight.html @@ -0,0 +1,76 @@ + + + + + saturationWeight + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

saturationWeight

+
+

Returns the weight of importance that this target places on a color's saturation within the image.

The larger the weight, relative to the other weights, the more important that a color being close to the target value has on selection.

See also

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/target-lightness.html b/androidx-palette/androidx.palette.graphics/-target/target-lightness.html new file mode 100644 index 0000000..82d0bb3 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/target-lightness.html @@ -0,0 +1,76 @@ + + + + + targetLightness + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

targetLightness

+
+

The target lightness value for this target.

Valid Range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/target-saturation.html b/androidx-palette/androidx.palette.graphics/-target/target-saturation.html new file mode 100644 index 0000000..c016667 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/target-saturation.html @@ -0,0 +1,76 @@ + + + + + targetSaturation + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

targetSaturation

+
+

The target saturation value for this target.

Valid range is 0..1

+
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/-target/weights.html b/androidx-palette/androidx.palette.graphics/-target/weights.html new file mode 100644 index 0000000..6121b44 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/-target/weights.html @@ -0,0 +1,76 @@ + + + + + weights + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

weights

+
+ +
+ +
+
+
+ + + diff --git a/androidx-palette/androidx.palette.graphics/index.html b/androidx-palette/androidx.palette.graphics/index.html new file mode 100644 index 0000000..e430945 --- /dev/null +++ b/androidx-palette/androidx.palette.graphics/index.html @@ -0,0 +1,114 @@ + + + + + androidx.palette.graphics + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
class Palette

A helper class to extract prominent colors from an image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
class Target

A class which allows custom selection of colors in a Palette's generation. Instances can be created via the Builder class.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/androidx-palette/index.html b/androidx-palette/index.html new file mode 100644 index 0000000..74c8962 --- /dev/null +++ b/androidx-palette/index.html @@ -0,0 +1,95 @@ + + + + + androidx-palette + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

androidx-palette

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/androidx-palette/navigation.html b/androidx-palette/navigation.html new file mode 100644 index 0000000..4a3fb3a --- /dev/null +++ b/androidx-palette/navigation.html @@ -0,0 +1,372 @@ +
+
+ +
+ +
+
+ Palette +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+ Filter +
+
+
+
+ Swatch +
+
+
+
+
+ Target +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+
+ + + + + + +
+ +
+ +
+ +
+
+
+ color +
+
+
+ +
+
+ Companion +
+
+
+ +
+
+ get() +
+
+
+ +
+
+
+ onColor +
+
+
+ +
+
+ Error +
+
+
+
+ Loading +
+
+
+
+ Success +
+
+
+
+ +
+
+ Companion +
+
+
+ + + +
+ +
+
+ Muted +
+
+
+
+ MutedDark +
+
+
+ +
+
+
+ Vibrant +
+
+
+ +
+
+ +
+
+ +
+
+
diff --git a/extensions-base64/com.kmpalette.extensions.base64/index.html b/extensions-base64/com.kmpalette.extensions.base64/index.html new file mode 100644 index 0000000..eec3eac --- /dev/null +++ b/extensions-base64/com.kmpalette.extensions.base64/index.html @@ -0,0 +1,114 @@ + + + + + com.kmpalette.extensions.base64 + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberBase64DominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<String>

Wrapper around rememberDominantColorState that uses Base64Loader to load the image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberBase64PaletteState(cacheSize: Int = PaletteState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<String>

Wrapper around rememberPaletteState that uses Base64Loader to load the image.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-base64/com.kmpalette.extensions.base64/remember-base64-dominant-color-state.html b/extensions-base64/com.kmpalette.extensions.base64/remember-base64-dominant-color-state.html new file mode 100644 index 0000000..1e88313 --- /dev/null +++ b/extensions-base64/com.kmpalette.extensions.base64/remember-base64-dominant-color-state.html @@ -0,0 +1,76 @@ + + + + + rememberBase64DominantColorState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberBase64DominantColorState

+
+
fun rememberBase64DominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<String>

Wrapper around rememberDominantColorState that uses Base64Loader to load the image.

Return

A DominantColorState which can be used to generate a dominant color from a ImageBitmap.

Parameters

defaultColor

The default color, which will be used if Palette.generate fails.

defaultOnColor

The default color to use on defaultColor.

cacheSize

The size of the LruCache used to store recent results. Pass 0 to disable.

coroutineContext

The CoroutineContext used to launch the coroutine.

isColorValid

A lambda which allows filtering of the calculated image colors.

builder

A lambda which allows customization of the Palette.Builder used to generate the Palette.

See also

+
+ +
+
+
+ + + diff --git a/extensions-base64/com.kmpalette.extensions.base64/remember-base64-palette-state.html b/extensions-base64/com.kmpalette.extensions.base64/remember-base64-palette-state.html new file mode 100644 index 0000000..5ebf04c --- /dev/null +++ b/extensions-base64/com.kmpalette.extensions.base64/remember-base64-palette-state.html @@ -0,0 +1,76 @@ + + + + + rememberBase64PaletteState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberBase64PaletteState

+
+
fun rememberBase64PaletteState(cacheSize: Int = PaletteState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<String>

Wrapper around rememberPaletteState that uses Base64Loader to load the image.

Return

A PaletteState that will be remembered across composition.

Parameters

cacheSize

The maximum number of Palettes to cache. If 0, no caching will be done.

coroutineContext

The CoroutineContext to use for generating Palettes.

builder

A lambda that will be applied to the Palette.Builder to customize the generation of the Palette.

See also

+
+ +
+
+
+ + + diff --git a/extensions-base64/com.kmpalette.loader/-base64-loader/index.html b/extensions-base64/com.kmpalette.loader/-base64-loader/index.html new file mode 100644 index 0000000..39fb405 --- /dev/null +++ b/extensions-base64/com.kmpalette.loader/-base64-loader/index.html @@ -0,0 +1,100 @@ + + + + + Base64Loader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Base64Loader

+ +
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
open suspend override fun load(input: String): ImageBitmap
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-base64/com.kmpalette.loader/-base64-loader/load.html b/extensions-base64/com.kmpalette.loader/-base64-loader/load.html new file mode 100644 index 0000000..f2ede4c --- /dev/null +++ b/extensions-base64/com.kmpalette.loader/-base64-loader/load.html @@ -0,0 +1,76 @@ + + + + + load + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

load

+
+
open suspend override fun load(input: String): ImageBitmap

Throws

  • when the symbols for decoding are padded incorrectly or there are extra symbols after the padding.

+
+ +
+
+
+ + + diff --git a/extensions-base64/com.kmpalette.loader/index.html b/extensions-base64/com.kmpalette.loader/index.html new file mode 100644 index 0000000..83d9cf9 --- /dev/null +++ b/extensions-base64/com.kmpalette.loader/index.html @@ -0,0 +1,99 @@ + + + + + com.kmpalette.loader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+ +
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-base64/index.html b/extensions-base64/index.html new file mode 100644 index 0000000..a4b4cc2 --- /dev/null +++ b/extensions-base64/index.html @@ -0,0 +1,113 @@ + + + + + extensions-base64 + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

extensions-base64

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+ +
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-base64/navigation.html b/extensions-base64/navigation.html new file mode 100644 index 0000000..4a3fb3a --- /dev/null +++ b/extensions-base64/navigation.html @@ -0,0 +1,372 @@ +
+
+ +
+ +
+
+ Palette +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+ Filter +
+
+
+
+ Swatch +
+
+
+
+
+ Target +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+
+ + + + + + +
+ +
+ +
+ +
+
+
+ color +
+
+
+ +
+
+ Companion +
+
+
+ +
+
+ get() +
+
+
+ +
+
+
+ onColor +
+
+
+ +
+
+ Error +
+
+
+
+ Loading +
+
+
+
+ Success +
+
+
+
+ +
+
+ Companion +
+
+
+ + + +
+ +
+
+ Muted +
+
+
+
+ MutedDark +
+
+
+ +
+
+
+ Vibrant +
+
+
+ +
+
+ +
+
+ +
+
+
diff --git a/extensions-bytearray/com.kmpalette.extensions.bytearray/index.html b/extensions-bytearray/com.kmpalette.extensions.bytearray/index.html new file mode 100644 index 0000000..9cbf779 --- /dev/null +++ b/extensions-bytearray/com.kmpalette.extensions.bytearray/index.html @@ -0,0 +1,129 @@ + + + + + com.kmpalette.extensions.bytearray + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberByteArrayDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<ByteArray>

Wrapper around rememberDominantColorState that uses ByteArrayLoader to load the image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberByteArrayPaletteState(cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<ByteArray>

Wrapper around rememberPaletteState that uses ByteArrayLoader to load the image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun ByteArray.rememberGeneratePalette(coroutineContext: CoroutineContext = kotlinx.coroutines.Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generate and remember a PaletteResult from a ByteArray.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-bytearray/com.kmpalette.extensions.bytearray/remember-byte-array-dominant-color-state.html b/extensions-bytearray/com.kmpalette.extensions.bytearray/remember-byte-array-dominant-color-state.html new file mode 100644 index 0000000..cfbcaa5 --- /dev/null +++ b/extensions-bytearray/com.kmpalette.extensions.bytearray/remember-byte-array-dominant-color-state.html @@ -0,0 +1,76 @@ + + + + + rememberByteArrayDominantColorState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberByteArrayDominantColorState

+
+
fun rememberByteArrayDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<ByteArray>

Wrapper around rememberDominantColorState that uses ByteArrayLoader to load the image.

Return

A DominantColorState which can be used to generate a dominant color from a ImageBitmap.

Parameters

defaultColor

The default color, which will be used if Palette.generate fails.

defaultOnColor

The default color to use on defaultColor.

cacheSize

The size of the LruCache used to store recent results. Pass 0 to disable.

coroutineContext

The CoroutineContext used to launch the coroutine.

isColorValid

A lambda which allows filtering of the calculated image colors.

builder

A lambda which allows customization of the Palette.Builder used to generate the Palette.

See also

+
+ +
+
+
+ + + diff --git a/extensions-bytearray/com.kmpalette.extensions.bytearray/remember-byte-array-palette-state.html b/extensions-bytearray/com.kmpalette.extensions.bytearray/remember-byte-array-palette-state.html new file mode 100644 index 0000000..79a0842 --- /dev/null +++ b/extensions-bytearray/com.kmpalette.extensions.bytearray/remember-byte-array-palette-state.html @@ -0,0 +1,76 @@ + + + + + rememberByteArrayPaletteState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberByteArrayPaletteState

+
+
fun rememberByteArrayPaletteState(cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<ByteArray>

Wrapper around rememberPaletteState that uses ByteArrayLoader to load the image.

Return

A PaletteState that will be remembered across composition.

Parameters

cacheSize

The maximum number of Palettes to cache. If 0, no caching will be done.

coroutineContext

The CoroutineContext to use for generating Palettes.

builder

A lambda that will be applied to the Palette.Builder to customize the generation of the Palette.

See also

+
+ +
+
+
+ + + diff --git a/extensions-bytearray/com.kmpalette.extensions.bytearray/remember-generate-palette.html b/extensions-bytearray/com.kmpalette.extensions.bytearray/remember-generate-palette.html new file mode 100644 index 0000000..9fa8796 --- /dev/null +++ b/extensions-bytearray/com.kmpalette.extensions.bytearray/remember-generate-palette.html @@ -0,0 +1,76 @@ + + + + + rememberGeneratePalette + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberGeneratePalette

+
+
fun ByteArray.rememberGeneratePalette(coroutineContext: CoroutineContext = kotlinx.coroutines.Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generate and remember a PaletteResult from a ByteArray.

Return

A PaletteResult that will be remembered across compositions.

Parameters

coroutineContext

The CoroutineContext to use for generating the PaletteResult.

block

A block to configure the Palette.Builder.

+
+ +
+
+
+ + + diff --git a/extensions-bytearray/com.kmpalette.loader/-byte-array-loader/index.html b/extensions-bytearray/com.kmpalette.loader/-byte-array-loader/index.html new file mode 100644 index 0000000..a6afaf6 --- /dev/null +++ b/extensions-bytearray/com.kmpalette.loader/-byte-array-loader/index.html @@ -0,0 +1,100 @@ + + + + + ByteArrayLoader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ByteArrayLoader

+ +
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
open suspend override fun load(input: ByteArray): ImageBitmap

Loads an ImageBitmap from a ByteArray.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-bytearray/com.kmpalette.loader/-byte-array-loader/load.html b/extensions-bytearray/com.kmpalette.loader/-byte-array-loader/load.html new file mode 100644 index 0000000..c008e4c --- /dev/null +++ b/extensions-bytearray/com.kmpalette.loader/-byte-array-loader/load.html @@ -0,0 +1,76 @@ + + + + + load + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

load

+
+
open suspend override fun load(input: ByteArray): ImageBitmap

Loads an ImageBitmap from a ByteArray.

+
+ +
+
+
+ + + diff --git a/extensions-bytearray/com.kmpalette.loader/index.html b/extensions-bytearray/com.kmpalette.loader/index.html new file mode 100644 index 0000000..eb6eb1f --- /dev/null +++ b/extensions-bytearray/com.kmpalette.loader/index.html @@ -0,0 +1,100 @@ + + + + + com.kmpalette.loader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+ +
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-bytearray/index.html b/extensions-bytearray/index.html new file mode 100644 index 0000000..f69f30d --- /dev/null +++ b/extensions-bytearray/index.html @@ -0,0 +1,115 @@ + + + + + extensions-bytearray + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

extensions-bytearray

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+ +
+
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
common
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-bytearray/navigation.html b/extensions-bytearray/navigation.html new file mode 100644 index 0000000..4a3fb3a --- /dev/null +++ b/extensions-bytearray/navigation.html @@ -0,0 +1,372 @@ +
+
+ +
+ +
+
+ Palette +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+ Filter +
+
+
+
+ Swatch +
+
+
+
+
+ Target +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+
+ + + + + + +
+ +
+ +
+ +
+
+
+ color +
+
+
+ +
+
+ Companion +
+
+
+ +
+
+ get() +
+
+
+ +
+
+
+ onColor +
+
+
+ +
+
+ Error +
+
+
+
+ Loading +
+
+
+
+ Success +
+
+
+
+ +
+
+ Companion +
+
+
+ + + +
+ +
+
+ Muted +
+
+
+
+ MutedDark +
+
+
+ +
+
+
+ Vibrant +
+
+
+ +
+
+ +
+
+ +
+
+
diff --git a/extensions-libres/com.kmpalette.extensions.libres/index.html b/extensions-libres/com.kmpalette.extensions.libres/index.html new file mode 100644 index 0000000..76a2f02 --- /dev/null +++ b/extensions-libres/com.kmpalette.extensions.libres/index.html @@ -0,0 +1,129 @@ + + + + + com.kmpalette.extensions.libres + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun Image.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generate and remember a PaletteResult from a Image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberLibresDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<Image>

Wrapper around rememberDominantColorState that uses LibresLoader to load the image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberLibresPaletteState(cacheSize: Int = PaletteState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<Image>

Wrapper around rememberPaletteState that uses LibresLoader to load the image.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-libres/com.kmpalette.extensions.libres/remember-generate-palette.html b/extensions-libres/com.kmpalette.extensions.libres/remember-generate-palette.html new file mode 100644 index 0000000..3d9a3bb --- /dev/null +++ b/extensions-libres/com.kmpalette.extensions.libres/remember-generate-palette.html @@ -0,0 +1,76 @@ + + + + + rememberGeneratePalette + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberGeneratePalette

+
+
fun Image.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generate and remember a PaletteResult from a Image.

Return

A PaletteResult that will be remembered across compositions.

Parameters

coroutineContext

The CoroutineContext to use for generating the PaletteResult.

block

A block to configure the Palette.Builder.

+
+ +
+
+
+ + + diff --git a/extensions-libres/com.kmpalette.extensions.libres/remember-libres-dominant-color-state.html b/extensions-libres/com.kmpalette.extensions.libres/remember-libres-dominant-color-state.html new file mode 100644 index 0000000..91a486f --- /dev/null +++ b/extensions-libres/com.kmpalette.extensions.libres/remember-libres-dominant-color-state.html @@ -0,0 +1,76 @@ + + + + + rememberLibresDominantColorState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberLibresDominantColorState

+
+
fun rememberLibresDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<Image>

Wrapper around rememberDominantColorState that uses LibresLoader to load the image.

Return

A DominantColorState which can be used to generate a dominant color from a ImageBitmap.

Parameters

defaultColor

The default color, which will be used if Palette.generate fails.

defaultOnColor

The default color to use on defaultColor.

cacheSize

The size of the LruCache used to store recent results. Pass 0 to disable.

coroutineContext

The CoroutineContext used to launch the coroutine.

isColorValid

A lambda which allows filtering of the calculated image colors.

builder

A lambda which allows customization of the Palette.Builder used to generate the Palette.

See also

+
+ +
+
+
+ + + diff --git a/extensions-libres/com.kmpalette.extensions.libres/remember-libres-palette-state.html b/extensions-libres/com.kmpalette.extensions.libres/remember-libres-palette-state.html new file mode 100644 index 0000000..141d47d --- /dev/null +++ b/extensions-libres/com.kmpalette.extensions.libres/remember-libres-palette-state.html @@ -0,0 +1,76 @@ + + + + + rememberLibresPaletteState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberLibresPaletteState

+
+
fun rememberLibresPaletteState(cacheSize: Int = PaletteState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<Image>

Wrapper around rememberPaletteState that uses LibresLoader to load the image.

Return

A PaletteState that will be remembered across composition.

Parameters

cacheSize

The maximum number of Palettes to cache. If 0, no caching will be done.

coroutineContext

The CoroutineContext to use for generating Palettes.

builder

A lambda that will be applied to the Palette.Builder to customize the generation of the Palette.

See also

+
+ +
+
+
+ + + diff --git a/extensions-libres/com.kmpalette.loader/-libres-loader/index.html b/extensions-libres/com.kmpalette.loader/-libres-loader/index.html new file mode 100644 index 0000000..91ce6c5 --- /dev/null +++ b/extensions-libres/com.kmpalette.loader/-libres-loader/index.html @@ -0,0 +1,100 @@ + + + + + LibresLoader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

LibresLoader

+
data object LibresLoader : ImageBitmapLoader<Image>

A ImageBitmapLoader that loads a ImageBitmap from a Libres Image.

Warning: Only supports non vector images, like PNGs and JPEGs.

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
open suspend override fun load(input: Image): ImageBitmap

Loads a ImageBitmap from a Libres Image.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-libres/com.kmpalette.loader/-libres-loader/load.html b/extensions-libres/com.kmpalette.loader/-libres-loader/load.html new file mode 100644 index 0000000..a07c3f2 --- /dev/null +++ b/extensions-libres/com.kmpalette.loader/-libres-loader/load.html @@ -0,0 +1,76 @@ + + + + + load + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

load

+
+
open suspend override fun load(input: Image): ImageBitmap

Loads a ImageBitmap from a Libres Image.

Warning: Only supports non vector images, like PNGs and JPEGs.

+
+ +
+
+
+ + + diff --git a/extensions-libres/com.kmpalette.loader/index.html b/extensions-libres/com.kmpalette.loader/index.html new file mode 100644 index 0000000..9cfe4bd --- /dev/null +++ b/extensions-libres/com.kmpalette.loader/index.html @@ -0,0 +1,99 @@ + + + + + com.kmpalette.loader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
data object LibresLoader : ImageBitmapLoader<Image>

A ImageBitmapLoader that loads a ImageBitmap from a Libres Image.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-libres/index.html b/extensions-libres/index.html new file mode 100644 index 0000000..2e4a17e --- /dev/null +++ b/extensions-libres/index.html @@ -0,0 +1,113 @@ + + + + + extensions-libres + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

extensions-libres

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+ +
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-libres/navigation.html b/extensions-libres/navigation.html new file mode 100644 index 0000000..4a3fb3a --- /dev/null +++ b/extensions-libres/navigation.html @@ -0,0 +1,372 @@ +
+
+ +
+ +
+
+ Palette +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+ Filter +
+
+
+
+ Swatch +
+
+
+
+
+ Target +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+
+ + + + + + +
+ +
+ +
+ +
+
+
+ color +
+
+
+ +
+
+ Companion +
+
+
+ +
+
+ get() +
+
+
+ +
+
+
+ onColor +
+
+
+ +
+
+ Error +
+
+
+
+ Loading +
+
+
+
+ Success +
+
+
+
+ +
+
+ Companion +
+
+
+ + + +
+ +
+
+ Muted +
+
+
+
+ MutedDark +
+
+
+ +
+
+
+ Vibrant +
+
+
+ +
+
+ +
+
+ +
+
+
diff --git a/extensions-network/com.kmpalette.extensions.network/index.html b/extensions-network/com.kmpalette.extensions.network/index.html new file mode 100644 index 0000000..991cc66 --- /dev/null +++ b/extensions-network/com.kmpalette.extensions.network/index.html @@ -0,0 +1,129 @@ + + + + + com.kmpalette.extensions.network + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun Url.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generate and remember a PaletteResult from a Url.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberNetworkDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, httpClient: HttpClient = HttpClient(), httpRequestBuilder: HttpRequestBuilder = HttpRequestBuilder(), coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<Url>

Wrapper around rememberDominantColorState that uses NetworkLoader to load the image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberNetworkPaletteState(cacheSize: Int = PaletteState.DEFAULT_CACHE_SIZE, httpClient: HttpClient = HttpClient(), httpRequestBuilder: HttpRequestBuilder = HttpRequestBuilder(), coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<Url>

Wrapper around rememberPaletteState that uses NetworkLoader to load the image.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-network/com.kmpalette.extensions.network/remember-generate-palette.html b/extensions-network/com.kmpalette.extensions.network/remember-generate-palette.html new file mode 100644 index 0000000..c859cea --- /dev/null +++ b/extensions-network/com.kmpalette.extensions.network/remember-generate-palette.html @@ -0,0 +1,76 @@ + + + + + rememberGeneratePalette + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberGeneratePalette

+
+
fun Url.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generate and remember a PaletteResult from a Url.

You must import the Ktor client library to use this loader.

Return

A PaletteResult that will be remembered across compositions.

Parameters

coroutineContext

The CoroutineContext to use for generating the PaletteResult.

block

A block to configure the Palette.Builder.

+
+ +
+
+
+ + + diff --git a/extensions-network/com.kmpalette.extensions.network/remember-network-dominant-color-state.html b/extensions-network/com.kmpalette.extensions.network/remember-network-dominant-color-state.html new file mode 100644 index 0000000..275de3f --- /dev/null +++ b/extensions-network/com.kmpalette.extensions.network/remember-network-dominant-color-state.html @@ -0,0 +1,76 @@ + + + + + rememberNetworkDominantColorState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberNetworkDominantColorState

+
+
fun rememberNetworkDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, httpClient: HttpClient = HttpClient(), httpRequestBuilder: HttpRequestBuilder = HttpRequestBuilder(), coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<Url>

Wrapper around rememberDominantColorState that uses NetworkLoader to load the image.

You must import the Ktor client library to use this loader.

Return

A DominantColorState which can be used to generate a dominant color from a ImageBitmap.

Parameters

defaultColor

The default color, which will be used if Palette.generate fails.

defaultOnColor

The default color to use on defaultColor.

cacheSize

The size of the LruCache used to store recent results. Pass 0 to disable.

httpClient

The HttpClient used to load the image.

httpRequestBuilder

The HttpRequestBuilder used to load the image.

coroutineContext

The CoroutineContext used to launch the coroutine.

isColorValid

A lambda which allows filtering of the calculated image colors.

builder

A lambda which allows customization of the Palette.Builder used to generate the Palette.

See also

+
+ +
+
+
+ + + diff --git a/extensions-network/com.kmpalette.extensions.network/remember-network-palette-state.html b/extensions-network/com.kmpalette.extensions.network/remember-network-palette-state.html new file mode 100644 index 0000000..1c06966 --- /dev/null +++ b/extensions-network/com.kmpalette.extensions.network/remember-network-palette-state.html @@ -0,0 +1,76 @@ + + + + + rememberNetworkPaletteState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberNetworkPaletteState

+
+
fun rememberNetworkPaletteState(cacheSize: Int = PaletteState.DEFAULT_CACHE_SIZE, httpClient: HttpClient = HttpClient(), httpRequestBuilder: HttpRequestBuilder = HttpRequestBuilder(), coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<Url>

Wrapper around rememberPaletteState that uses NetworkLoader to load the image.

You must import the Ktor client library to use this loader.

Return

A PaletteState that will be remembered across composition.

Parameters

cacheSize

The maximum number of Palettes to cache. If 0, no caching will be done.

coroutineContext

The CoroutineContext to use for generating Palettes.

builder

A lambda that will be applied to the Palette.Builder to customize the generation of the Palette.

See also

+
+ +
+
+
+ + + diff --git a/extensions-network/com.kmpalette.loader/-network-loader/-network-loader.html b/extensions-network/com.kmpalette.loader/-network-loader/-network-loader.html new file mode 100644 index 0000000..4b606a6 --- /dev/null +++ b/extensions-network/com.kmpalette.loader/-network-loader/-network-loader.html @@ -0,0 +1,76 @@ + + + + + NetworkLoader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

NetworkLoader

+
+
constructor(httpClient: HttpClient = HttpClient(), requestBuilder: HttpRequestBuilder = HttpRequestBuilder())

Parameters

httpClient

The HttpClient to use for loading the ImageBitmap.

requestBuilder

The HttpRequestBuilder to use for loading the ImageBitmap.

+
+ +
+
+
+ + + diff --git a/extensions-network/com.kmpalette.loader/-network-loader/index.html b/extensions-network/com.kmpalette.loader/-network-loader/index.html new file mode 100644 index 0000000..e53e727 --- /dev/null +++ b/extensions-network/com.kmpalette.loader/-network-loader/index.html @@ -0,0 +1,119 @@ + + + + + NetworkLoader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

NetworkLoader

+
class NetworkLoader(httpClient: HttpClient = HttpClient(), requestBuilder: HttpRequestBuilder = HttpRequestBuilder()) : ImageBitmapLoader<Url>

A ImageBitmapLoader that loads ImageBitmaps from a Url.

You must import the Ktor client library to use this loader.

Parameters

httpClient

The HttpClient to use for loading the ImageBitmap.

requestBuilder

The HttpRequestBuilder to use for loading the ImageBitmap.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(httpClient: HttpClient = HttpClient(), requestBuilder: HttpRequestBuilder = HttpRequestBuilder())
+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
open suspend override fun load(input: Url): ImageBitmap

Loads an ImageBitmap from a Url.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-network/com.kmpalette.loader/-network-loader/load.html b/extensions-network/com.kmpalette.loader/-network-loader/load.html new file mode 100644 index 0000000..7ee4452 --- /dev/null +++ b/extensions-network/com.kmpalette.loader/-network-loader/load.html @@ -0,0 +1,76 @@ + + + + + load + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

load

+
+
open suspend override fun load(input: Url): ImageBitmap

Loads an ImageBitmap from a Url.

+
+ +
+
+
+ + + diff --git a/extensions-network/com.kmpalette.loader/index.html b/extensions-network/com.kmpalette.loader/index.html new file mode 100644 index 0000000..15c2c61 --- /dev/null +++ b/extensions-network/com.kmpalette.loader/index.html @@ -0,0 +1,99 @@ + + + + + com.kmpalette.loader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
class NetworkLoader(httpClient: HttpClient = HttpClient(), requestBuilder: HttpRequestBuilder = HttpRequestBuilder()) : ImageBitmapLoader<Url>

A ImageBitmapLoader that loads ImageBitmaps from a Url.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-network/index.html b/extensions-network/index.html new file mode 100644 index 0000000..c49430f --- /dev/null +++ b/extensions-network/index.html @@ -0,0 +1,113 @@ + + + + + extensions-network + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

extensions-network

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+ +
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-network/navigation.html b/extensions-network/navigation.html new file mode 100644 index 0000000..4a3fb3a --- /dev/null +++ b/extensions-network/navigation.html @@ -0,0 +1,372 @@ +
+
+ +
+ +
+
+ Palette +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+ Filter +
+
+
+
+ Swatch +
+
+
+
+
+ Target +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+
+ + + + + + +
+ +
+ +
+ +
+
+
+ color +
+
+
+ +
+
+ Companion +
+
+
+ +
+
+ get() +
+
+
+ +
+
+
+ onColor +
+
+
+ +
+
+ Error +
+
+
+
+ Loading +
+
+
+
+ Success +
+
+
+
+ +
+
+ Companion +
+
+
+ + + +
+ +
+
+ Muted +
+
+
+
+ MutedDark +
+
+
+ +
+
+
+ Vibrant +
+
+
+ +
+
+ +
+
+ +
+
+
diff --git a/extensions-resources/com.kmpalette.extensions.resources/index.html b/extensions-resources/com.kmpalette.extensions.resources/index.html new file mode 100644 index 0000000..7645f9f --- /dev/null +++ b/extensions-resources/com.kmpalette.extensions.resources/index.html @@ -0,0 +1,129 @@ + + + + + com.kmpalette.extensions.resources + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun Resource.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generate and remember a PaletteResult from a Resource.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberResourcePaletteState(cacheSize: Int = PaletteState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<Resource>

Wrapper around rememberPaletteState that uses ResourceLoader to load the image.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberResourcesDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<Resource>

Wrapper around rememberDominantColorState that uses ResourceLoader to load the image.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-resources/com.kmpalette.extensions.resources/remember-generate-palette.html b/extensions-resources/com.kmpalette.extensions.resources/remember-generate-palette.html new file mode 100644 index 0000000..1aa0f91 --- /dev/null +++ b/extensions-resources/com.kmpalette.extensions.resources/remember-generate-palette.html @@ -0,0 +1,76 @@ + + + + + rememberGeneratePalette + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberGeneratePalette

+
+
fun Resource.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generate and remember a PaletteResult from a Resource.

Return

A PaletteResult that will be remembered across compositions.

Parameters

coroutineContext

The CoroutineContext to use for generating the PaletteResult.

block

A block to configure the Palette.Builder.

+
+ +
+
+
+ + + diff --git a/extensions-resources/com.kmpalette.extensions.resources/remember-resource-palette-state.html b/extensions-resources/com.kmpalette.extensions.resources/remember-resource-palette-state.html new file mode 100644 index 0000000..1deaa92 --- /dev/null +++ b/extensions-resources/com.kmpalette.extensions.resources/remember-resource-palette-state.html @@ -0,0 +1,76 @@ + + + + + rememberResourcePaletteState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberResourcePaletteState

+
+
fun rememberResourcePaletteState(cacheSize: Int = PaletteState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<Resource>

Wrapper around rememberPaletteState that uses ResourceLoader to load the image.

Return

A PaletteState that will be remembered across composition.

Parameters

cacheSize

The maximum number of Palettes to cache. If 0, no caching will be done.

coroutineContext

The CoroutineContext to use for generating Palettes.

builder

A lambda that will be applied to the Palette.Builder to customize the generation of the Palette.

See also

+
+ +
+
+
+ + + diff --git a/extensions-resources/com.kmpalette.extensions.resources/remember-resources-dominant-color-state.html b/extensions-resources/com.kmpalette.extensions.resources/remember-resources-dominant-color-state.html new file mode 100644 index 0000000..b12ad9c --- /dev/null +++ b/extensions-resources/com.kmpalette.extensions.resources/remember-resources-dominant-color-state.html @@ -0,0 +1,76 @@ + + + + + rememberResourcesDominantColorState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberResourcesDominantColorState

+
+
fun rememberResourcesDominantColorState(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<Resource>

Wrapper around rememberDominantColorState that uses ResourceLoader to load the image.

Return

A DominantColorState which can be used to generate a dominant color from a ImageBitmap.

Parameters

defaultColor

The default color, which will be used if Palette.generate fails.

defaultOnColor

The default color to use on defaultColor.

cacheSize

The size of the LruCache used to store recent results. Pass 0 to disable.

coroutineContext

The CoroutineContext used to launch the coroutine.

isColorValid

A lambda which allows filtering of the calculated image colors.

builder

A lambda which allows customization of the Palette.Builder used to generate the Palette.

See also

+
+ +
+
+
+ + + diff --git a/extensions-resources/com.kmpalette.loader/-resource-loader/index.html b/extensions-resources/com.kmpalette.loader/-resource-loader/index.html new file mode 100644 index 0000000..239b320 --- /dev/null +++ b/extensions-resources/com.kmpalette.loader/-resource-loader/index.html @@ -0,0 +1,100 @@ + + + + + ResourceLoader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ResourceLoader

+
data object ResourceLoader : ImageBitmapLoader<Resource>

A ImageBitmapLoader that loads ImageBitmaps from Resources.

Warning: Only supports non vector images, like PNGs and JPEGs.

Usage:

import org.jetbrains.compose.resources.resource

val resImage = resource("my_image.png")
val imageBitmap = ResourceLoader.load(resImage)
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
open suspend override fun load(input: Resource): ImageBitmap

Load the Resource than convert it to a ImageBitmap.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-resources/com.kmpalette.loader/-resource-loader/load.html b/extensions-resources/com.kmpalette.loader/-resource-loader/load.html new file mode 100644 index 0000000..916d403 --- /dev/null +++ b/extensions-resources/com.kmpalette.loader/-resource-loader/load.html @@ -0,0 +1,76 @@ + + + + + load + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

load

+
+
open suspend override fun load(input: Resource): ImageBitmap

Load the Resource than convert it to a ImageBitmap.

Only supports non vector images, like PNGs and JPEGs.

Parameters

input

The Resource to load.

+
+ +
+
+
+ + + diff --git a/extensions-resources/com.kmpalette.loader/index.html b/extensions-resources/com.kmpalette.loader/index.html new file mode 100644 index 0000000..bc15d5a --- /dev/null +++ b/extensions-resources/com.kmpalette.loader/index.html @@ -0,0 +1,99 @@ + + + + + com.kmpalette.loader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
data object ResourceLoader : ImageBitmapLoader<Resource>

A ImageBitmapLoader that loads ImageBitmaps from Resources.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-resources/index.html b/extensions-resources/index.html new file mode 100644 index 0000000..16c24ab --- /dev/null +++ b/extensions-resources/index.html @@ -0,0 +1,113 @@ + + + + + extensions-resources + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

extensions-resources

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+ +
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/extensions-resources/navigation.html b/extensions-resources/navigation.html new file mode 100644 index 0000000..4a3fb3a --- /dev/null +++ b/extensions-resources/navigation.html @@ -0,0 +1,372 @@ +
+
+ +
+ +
+
+ Palette +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+ Filter +
+
+
+
+ Swatch +
+
+
+
+
+ Target +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+
+ + + + + + +
+ +
+ +
+ +
+
+
+ color +
+
+
+ +
+
+ Companion +
+
+
+ +
+
+ get() +
+
+
+ +
+
+
+ onColor +
+
+
+ +
+
+ Error +
+
+
+
+ Loading +
+
+
+
+ Success +
+
+
+
+ +
+
+ Companion +
+
+
+ + + +
+ +
+
+ Muted +
+
+
+
+ MutedDark +
+
+
+ +
+
+
+ Vibrant +
+
+
+ +
+
+ +
+
+ +
+
+
diff --git a/images/anchor-copy-button.svg b/images/anchor-copy-button.svg new file mode 100644 index 0000000..bab9d74 --- /dev/null +++ b/images/anchor-copy-button.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/images/arrow_down.svg b/images/arrow_down.svg new file mode 100644 index 0000000..c0388de --- /dev/null +++ b/images/arrow_down.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/images/burger.svg b/images/burger.svg new file mode 100644 index 0000000..d6dcefc --- /dev/null +++ b/images/burger.svg @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/images/copy-icon.svg b/images/copy-icon.svg new file mode 100644 index 0000000..61440f0 --- /dev/null +++ b/images/copy-icon.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/images/copy-successful-icon.svg b/images/copy-successful-icon.svg new file mode 100644 index 0000000..1865f73 --- /dev/null +++ b/images/copy-successful-icon.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/images/footer-go-to-link.svg b/images/footer-go-to-link.svg new file mode 100644 index 0000000..0137e22 --- /dev/null +++ b/images/footer-go-to-link.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/images/go-to-top-icon.svg b/images/go-to-top-icon.svg new file mode 100644 index 0000000..d987f3e --- /dev/null +++ b/images/go-to-top-icon.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/images/logo-icon.svg b/images/logo-icon.svg new file mode 100644 index 0000000..1fea087 --- /dev/null +++ b/images/logo-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/images/nav-icons/abstract-class-kotlin.svg b/images/nav-icons/abstract-class-kotlin.svg new file mode 100644 index 0000000..a2069b8 --- /dev/null +++ b/images/nav-icons/abstract-class-kotlin.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/images/nav-icons/abstract-class.svg b/images/nav-icons/abstract-class.svg new file mode 100644 index 0000000..6018203 --- /dev/null +++ b/images/nav-icons/abstract-class.svg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/images/nav-icons/annotation-kotlin.svg b/images/nav-icons/annotation-kotlin.svg new file mode 100644 index 0000000..932f1d3 --- /dev/null +++ b/images/nav-icons/annotation-kotlin.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/images/nav-icons/annotation.svg b/images/nav-icons/annotation.svg new file mode 100644 index 0000000..b80c54b --- /dev/null +++ b/images/nav-icons/annotation.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/nav-icons/class-kotlin.svg b/images/nav-icons/class-kotlin.svg new file mode 100644 index 0000000..46a21f6 --- /dev/null +++ b/images/nav-icons/class-kotlin.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/images/nav-icons/class.svg b/images/nav-icons/class.svg new file mode 100644 index 0000000..3f1ad16 --- /dev/null +++ b/images/nav-icons/class.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/nav-icons/enum-kotlin.svg b/images/nav-icons/enum-kotlin.svg new file mode 100644 index 0000000..4a85459 --- /dev/null +++ b/images/nav-icons/enum-kotlin.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/images/nav-icons/enum.svg b/images/nav-icons/enum.svg new file mode 100644 index 0000000..fa7f247 --- /dev/null +++ b/images/nav-icons/enum.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/nav-icons/exception-class.svg b/images/nav-icons/exception-class.svg new file mode 100644 index 0000000..c0b2bde --- /dev/null +++ b/images/nav-icons/exception-class.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/nav-icons/field-value.svg b/images/nav-icons/field-value.svg new file mode 100644 index 0000000..20449c9 --- /dev/null +++ b/images/nav-icons/field-value.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/nav-icons/field-variable.svg b/images/nav-icons/field-variable.svg new file mode 100644 index 0000000..3b07450 --- /dev/null +++ b/images/nav-icons/field-variable.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/images/nav-icons/function.svg b/images/nav-icons/function.svg new file mode 100644 index 0000000..f0da64a --- /dev/null +++ b/images/nav-icons/function.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/nav-icons/interface-kotlin.svg b/images/nav-icons/interface-kotlin.svg new file mode 100644 index 0000000..bf07a14 --- /dev/null +++ b/images/nav-icons/interface-kotlin.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/images/nav-icons/interface.svg b/images/nav-icons/interface.svg new file mode 100644 index 0000000..32063ba --- /dev/null +++ b/images/nav-icons/interface.svg @@ -0,0 +1,7 @@ + + + + + + + diff --git a/images/nav-icons/object.svg b/images/nav-icons/object.svg new file mode 100644 index 0000000..9f427de --- /dev/null +++ b/images/nav-icons/object.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/images/nav-icons/typealias-kotlin.svg b/images/nav-icons/typealias-kotlin.svg new file mode 100644 index 0000000..4795069 --- /dev/null +++ b/images/nav-icons/typealias-kotlin.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/images/theme-toggle.svg b/images/theme-toggle.svg new file mode 100644 index 0000000..dad3ff2 --- /dev/null +++ b/images/theme-toggle.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..21d75d4 --- /dev/null +++ b/index.html @@ -0,0 +1,164 @@ + + + + + All modules + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

All modules:

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
+
+
+
+ +
+
+
+ + diff --git a/kmpalette-bitmap-loader/com.kmpalette.loader/-image-bitmap-loader/index.html b/kmpalette-bitmap-loader/com.kmpalette.loader/-image-bitmap-loader/index.html new file mode 100644 index 0000000..54a12ee --- /dev/null +++ b/kmpalette-bitmap-loader/com.kmpalette.loader/-image-bitmap-loader/index.html @@ -0,0 +1,100 @@ + + + + + ImageBitmapLoader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

ImageBitmapLoader

+
interface ImageBitmapLoader<T>

A loader that can load an ImageBitmap from a given input .

+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
abstract suspend fun load(input: T): ImageBitmap

Loads an ImageBitmap from the given input T.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-bitmap-loader/com.kmpalette.loader/-image-bitmap-loader/load.html b/kmpalette-bitmap-loader/com.kmpalette.loader/-image-bitmap-loader/load.html new file mode 100644 index 0000000..0be6ad3 --- /dev/null +++ b/kmpalette-bitmap-loader/com.kmpalette.loader/-image-bitmap-loader/load.html @@ -0,0 +1,76 @@ + + + + + load + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

load

+
+
abstract suspend fun load(input: T): ImageBitmap

Loads an ImageBitmap from the given input T.

Return

The loaded ImageBitmap.

Parameters

input

The input to load the ImageBitmap from.

+
+ +
+
+
+ + + diff --git a/kmpalette-bitmap-loader/com.kmpalette.loader/index.html b/kmpalette-bitmap-loader/com.kmpalette.loader/index.html new file mode 100644 index 0000000..28c7249 --- /dev/null +++ b/kmpalette-bitmap-loader/com.kmpalette.loader/index.html @@ -0,0 +1,99 @@ + + + + + com.kmpalette.loader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
interface ImageBitmapLoader<T>

A loader that can load an ImageBitmap from a given input .

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-bitmap-loader/index.html b/kmpalette-bitmap-loader/index.html new file mode 100644 index 0000000..8922266 --- /dev/null +++ b/kmpalette-bitmap-loader/index.html @@ -0,0 +1,95 @@ + + + + + kmpalette-bitmap-loader + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

kmpalette-bitmap-loader

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-bitmap-loader/navigation.html b/kmpalette-bitmap-loader/navigation.html new file mode 100644 index 0000000..4a3fb3a --- /dev/null +++ b/kmpalette-bitmap-loader/navigation.html @@ -0,0 +1,372 @@ +
+
+ +
+ +
+
+ Palette +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+ Filter +
+
+
+
+ Swatch +
+
+
+
+
+ Target +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+
+ + + + + + +
+ +
+ +
+ +
+
+
+ color +
+
+
+ +
+
+ Companion +
+
+
+ +
+
+ get() +
+
+
+ +
+
+
+ onColor +
+
+
+ +
+
+ Error +
+
+
+
+ Loading +
+
+
+
+ Success +
+
+
+
+ +
+
+ Companion +
+
+
+ + + +
+ +
+
+ Muted +
+
+
+
+ MutedDark +
+
+
+ +
+
+
+ Vibrant +
+
+
+ +
+
+ +
+
+ +
+
+
diff --git a/kmpalette-core/com.kmpalette/-dominant-color-state/-companion/-d-e-f-a-u-l-t_-c-a-c-h-e_-s-i-z-e.html b/kmpalette-core/com.kmpalette/-dominant-color-state/-companion/-d-e-f-a-u-l-t_-c-a-c-h-e_-s-i-z-e.html new file mode 100644 index 0000000..a78893e --- /dev/null +++ b/kmpalette-core/com.kmpalette/-dominant-color-state/-companion/-d-e-f-a-u-l-t_-c-a-c-h-e_-s-i-z-e.html @@ -0,0 +1,76 @@ + + + + + DEFAULT_CACHE_SIZE + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DEFAULT_CACHE_SIZE

+
+
const val DEFAULT_CACHE_SIZE: Int = 5
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-dominant-color-state/-companion/index.html b/kmpalette-core/com.kmpalette/-dominant-color-state/-companion/index.html new file mode 100644 index 0000000..9a4b91b --- /dev/null +++ b/kmpalette-core/com.kmpalette/-dominant-color-state/-companion/index.html @@ -0,0 +1,100 @@ + + + + + Companion + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
object Companion
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
const val DEFAULT_CACHE_SIZE: Int = 5
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-dominant-color-state/-dominant-color-state.html b/kmpalette-core/com.kmpalette/-dominant-color-state/-dominant-color-state.html new file mode 100644 index 0000000..6f5a0c6 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-dominant-color-state/-dominant-color-state.html @@ -0,0 +1,76 @@ + + + + + DominantColorState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DominantColorState

+
+
constructor(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {})

Parameters

T

The type of the input to calculate the dominant color from.

defaultColor

The default color, which will be used if calculateDominantColor fails to calculate a dominant color

cacheSize

The size of the LruCache used to store recent results. Pass 0 to disable the cache.

coroutineContext

The CoroutineContext used to launch the coroutine.

isColorValid

A lambda which allows filtering of the calculated image colors.

builder

A lambda which allows customization of the Palette.Builder used to generate the Palette from the input T

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-dominant-color-state/color.html b/kmpalette-core/com.kmpalette/-dominant-color-state/color.html new file mode 100644 index 0000000..38386cd --- /dev/null +++ b/kmpalette-core/com.kmpalette/-dominant-color-state/color.html @@ -0,0 +1,76 @@ + + + + + color + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

color

+
+

The dominant color.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-dominant-color-state/index.html b/kmpalette-core/com.kmpalette/-dominant-color-state/index.html new file mode 100644 index 0000000..b79af21 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-dominant-color-state/index.html @@ -0,0 +1,202 @@ + + + + + DominantColorState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DominantColorState

+
abstract class DominantColorState<T : Any>(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {})

A class which stores and caches the result of any calculated dominant colors.

Access the current dominant color via color.

Parameters

T

The type of the input to calculate the dominant color from.

defaultColor

The default color, which will be used if calculateDominantColor fails to calculate a dominant color

cacheSize

The size of the LruCache used to store recent results. Pass 0 to disable the cache.

coroutineContext

The CoroutineContext used to launch the coroutine.

isColorValid

A lambda which allows filtering of the calculated image colors.

builder

A lambda which allows customization of the Palette.Builder used to generate the Palette from the input T

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {})
+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

The dominant color.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The color to use on color.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The result of the last Palette generation.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun reset()

Reset the color values to defaultColor.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
suspend fun updateFrom(input: T)

Update the dominant color from the given input.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-dominant-color-state/on-color.html b/kmpalette-core/com.kmpalette/-dominant-color-state/on-color.html new file mode 100644 index 0000000..5f974ac --- /dev/null +++ b/kmpalette-core/com.kmpalette/-dominant-color-state/on-color.html @@ -0,0 +1,76 @@ + + + + + onColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

onColor

+
+

The color to use on color.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-dominant-color-state/reset.html b/kmpalette-core/com.kmpalette/-dominant-color-state/reset.html new file mode 100644 index 0000000..f224aa6 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-dominant-color-state/reset.html @@ -0,0 +1,76 @@ + + + + + reset + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

reset

+
+
fun reset()

Reset the color values to defaultColor.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-dominant-color-state/result.html b/kmpalette-core/com.kmpalette/-dominant-color-state/result.html new file mode 100644 index 0000000..7c2aa12 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-dominant-color-state/result.html @@ -0,0 +1,76 @@ + + + + + result + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

result

+
+

The result of the last Palette generation.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-dominant-color-state/update-from.html b/kmpalette-core/com.kmpalette/-dominant-color-state/update-from.html new file mode 100644 index 0000000..7dc51c7 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-dominant-color-state/update-from.html @@ -0,0 +1,76 @@ + + + + + updateFrom + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

updateFrom

+
+
suspend fun updateFrom(input: T)

Update the dominant color from the given input.

Parameters

input

The input to calculate the dominant color from.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-result/-error/-error.html b/kmpalette-core/com.kmpalette/-palette-result/-error/-error.html new file mode 100644 index 0000000..b618932 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-result/-error/-error.html @@ -0,0 +1,76 @@ + + + + + Error + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Error

+
+
constructor(cause: Throwable)
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-result/-error/cause.html b/kmpalette-core/com.kmpalette/-palette-result/-error/cause.html new file mode 100644 index 0000000..85e7872 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-result/-error/cause.html @@ -0,0 +1,76 @@ + + + + + cause + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

cause

+
+ +
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-result/-error/index.html b/kmpalette-core/com.kmpalette/-palette-result/-error/index.html new file mode 100644 index 0000000..4f1a08f --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-result/-error/index.html @@ -0,0 +1,134 @@ + + + + + Error + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Error

+
data class Error(val cause: Throwable) : PaletteResult

An error occurred while generating the Palette.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(cause: Throwable)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

The cause of the error.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns the generated Palette if this is a Success result, otherwise null.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-result/-loading/index.html b/kmpalette-core/com.kmpalette/-palette-result/-loading/index.html new file mode 100644 index 0000000..9141618 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-result/-loading/index.html @@ -0,0 +1,100 @@ + + + + + Loading + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Loading

+
data object Loading : PaletteResult

Palette is being generated.

+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns the generated Palette if this is a Success result, otherwise null.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-result/-success/-success.html b/kmpalette-core/com.kmpalette/-palette-result/-success/-success.html new file mode 100644 index 0000000..f0115ad --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-result/-success/-success.html @@ -0,0 +1,76 @@ + + + + + Success + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Success

+
+
constructor(palette: Palette)
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-result/-success/index.html b/kmpalette-core/com.kmpalette/-palette-result/-success/index.html new file mode 100644 index 0000000..c301ddc --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-result/-success/index.html @@ -0,0 +1,134 @@ + + + + + Success + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Success

+
data class Success(val palette: Palette) : PaletteResult

A successful result of a Palette generation.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(palette: Palette)
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

The generated Palette.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns the generated Palette if this is a Success result, otherwise null.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-result/-success/palette.html b/kmpalette-core/com.kmpalette/-palette-result/-success/palette.html new file mode 100644 index 0000000..4598531 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-result/-success/palette.html @@ -0,0 +1,76 @@ + + + + + palette + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

palette

+
+ +
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-result/index.html b/kmpalette-core/com.kmpalette/-palette-result/index.html new file mode 100644 index 0000000..029b4a6 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-result/index.html @@ -0,0 +1,149 @@ + + + + + PaletteResult + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

PaletteResult

+
interface PaletteResult

Wrapper result class for the generation of a Palette.

Inheritors

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
data class Error(val cause: Throwable) : PaletteResult

An error occurred while generating the Palette.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
data object Loading : PaletteResult

Palette is being generated.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
data class Success(val palette: Palette) : PaletteResult

A successful result of a Palette generation.

+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns the generated Palette if this is a Success result, otherwise null.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-result/palette-or-null.html b/kmpalette-core/com.kmpalette/-palette-result/palette-or-null.html new file mode 100644 index 0000000..16adce0 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-result/palette-or-null.html @@ -0,0 +1,76 @@ + + + + + paletteOrNull + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

paletteOrNull

+
+

Returns the generated Palette if this is a Success result, otherwise null.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-state/-companion/-d-e-f-a-u-l-t_-c-a-c-h-e_-s-i-z-e.html b/kmpalette-core/com.kmpalette/-palette-state/-companion/-d-e-f-a-u-l-t_-c-a-c-h-e_-s-i-z-e.html new file mode 100644 index 0000000..731d5d2 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-state/-companion/-d-e-f-a-u-l-t_-c-a-c-h-e_-s-i-z-e.html @@ -0,0 +1,76 @@ + + + + + DEFAULT_CACHE_SIZE + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

DEFAULT_CACHE_SIZE

+
+
const val DEFAULT_CACHE_SIZE: Int = 6
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-state/-companion/index.html b/kmpalette-core/com.kmpalette/-palette-state/-companion/index.html new file mode 100644 index 0000000..e7fdf7b --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-state/-companion/index.html @@ -0,0 +1,100 @@ + + + + + Companion + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Companion

+
object Companion
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
const val DEFAULT_CACHE_SIZE: Int = 6
+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-state/-palette-state.html b/kmpalette-core/com.kmpalette/-palette-state/-palette-state.html new file mode 100644 index 0000000..f23e756 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-state/-palette-state.html @@ -0,0 +1,76 @@ + + + + + PaletteState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

PaletteState

+
+
constructor(cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {})

Parameters

T

The type of the input to load with loader.

cacheSize

The maximum number of Palettes to cache. If 0, no caching will be done.

coroutineContext

The CoroutineContext to use for generating Palettes.

builder

A lambda that will be applied to the Palette.Builder to customize the generation of the Palette.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-state/generate.html b/kmpalette-core/com.kmpalette/-palette-state/generate.html new file mode 100644 index 0000000..c906601 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-state/generate.html @@ -0,0 +1,76 @@ + + + + + generate + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

generate

+
+
suspend fun generate(input: T)

Generates a Palette from input using loader.

If input is already cached, the cached Palette will be returned.

Parameters

input

The input to load with loader.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-state/index.html b/kmpalette-core/com.kmpalette/-palette-state/index.html new file mode 100644 index 0000000..0b0ef03 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-state/index.html @@ -0,0 +1,172 @@ + + + + + PaletteState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

PaletteState

+
abstract class PaletteState<T : Any>(cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {})

A state object that generates a Palette from an ImageBitmap using loader.

Parameters

T

The type of the input to load with loader.

cacheSize

The maximum number of Palettes to cache. If 0, no caching will be done.

coroutineContext

The CoroutineContext to use for generating Palettes.

builder

A lambda that will be applied to the Palette.Builder to customize the generation of the Palette.

+
+
+
+
+
+

Constructors

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
constructor(cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {})
+
+
+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
object Companion
+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

The last Palette that was generated.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

The last PaletteResult of the Palette generation.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
suspend fun generate(input: T)

Generates a Palette from input using loader.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-state/palette.html b/kmpalette-core/com.kmpalette/-palette-state/palette.html new file mode 100644 index 0000000..9fecc0c --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-state/palette.html @@ -0,0 +1,76 @@ + + + + + palette + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

palette

+
+

The last Palette that was generated.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-palette-state/state.html b/kmpalette-core/com.kmpalette/-palette-state/state.html new file mode 100644 index 0000000..09520f6 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-palette-state/state.html @@ -0,0 +1,76 @@ + + + + + state + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

state

+
+

The last PaletteResult of the Palette generation.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-swatch-target/-muted-dark/index.html b/kmpalette-core/com.kmpalette/-swatch-target/-muted-dark/index.html new file mode 100644 index 0000000..4aa86ae --- /dev/null +++ b/kmpalette-core/com.kmpalette/-swatch-target/-muted-dark/index.html @@ -0,0 +1,80 @@ + + + + + MutedDark + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

MutedDark

+
data object MutedDark : SwatchTarget
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-swatch-target/-muted-light/index.html b/kmpalette-core/com.kmpalette/-swatch-target/-muted-light/index.html new file mode 100644 index 0000000..08c66d9 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-swatch-target/-muted-light/index.html @@ -0,0 +1,80 @@ + + + + + MutedLight + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

MutedLight

+
data object MutedLight : SwatchTarget
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-swatch-target/-muted/index.html b/kmpalette-core/com.kmpalette/-swatch-target/-muted/index.html new file mode 100644 index 0000000..57cc2aa --- /dev/null +++ b/kmpalette-core/com.kmpalette/-swatch-target/-muted/index.html @@ -0,0 +1,80 @@ + + + + + Muted + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Muted

+
data object Muted : SwatchTarget
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-swatch-target/-vibrant-dark/index.html b/kmpalette-core/com.kmpalette/-swatch-target/-vibrant-dark/index.html new file mode 100644 index 0000000..136787c --- /dev/null +++ b/kmpalette-core/com.kmpalette/-swatch-target/-vibrant-dark/index.html @@ -0,0 +1,80 @@ + + + + + VibrantDark + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

VibrantDark

+ +
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-swatch-target/-vibrant-light/index.html b/kmpalette-core/com.kmpalette/-swatch-target/-vibrant-light/index.html new file mode 100644 index 0000000..afab22b --- /dev/null +++ b/kmpalette-core/com.kmpalette/-swatch-target/-vibrant-light/index.html @@ -0,0 +1,80 @@ + + + + + VibrantLight + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

VibrantLight

+ +
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-swatch-target/-vibrant/index.html b/kmpalette-core/com.kmpalette/-swatch-target/-vibrant/index.html new file mode 100644 index 0000000..846cdee --- /dev/null +++ b/kmpalette-core/com.kmpalette/-swatch-target/-vibrant/index.html @@ -0,0 +1,80 @@ + + + + + Vibrant + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Vibrant

+
data object Vibrant : SwatchTarget
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/-swatch-target/index.html b/kmpalette-core/com.kmpalette/-swatch-target/index.html new file mode 100644 index 0000000..3aca495 --- /dev/null +++ b/kmpalette-core/com.kmpalette/-swatch-target/index.html @@ -0,0 +1,175 @@ + + + + + SwatchTarget + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

SwatchTarget

+
interface SwatchTarget

A class which allows custom selection of colors in a Palette's generation. Instances can be created via the Builder class.

Mapped to Target in androidx-palette.

Inheritors

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
data object Muted : SwatchTarget
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
data object MutedDark : SwatchTarget
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
data object MutedLight : SwatchTarget
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
data object Vibrant : SwatchTarget
+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+ +
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/body-text-color.html b/kmpalette-core/com.kmpalette/body-text-color.html new file mode 100644 index 0000000..272fa25 --- /dev/null +++ b/kmpalette-core/com.kmpalette/body-text-color.html @@ -0,0 +1,76 @@ + + + + + bodyTextColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

bodyTextColor

+
+

Returns an appropriate color to use for any 'body' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.

Return

A Color to be used for text over the Swatch's color.

See also

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/color.html b/kmpalette-core/com.kmpalette/color.html new file mode 100644 index 0000000..b064865 --- /dev/null +++ b/kmpalette-core/com.kmpalette/color.html @@ -0,0 +1,76 @@ + + + + + color + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

color

+
+

Returns a color value in the RGB color space which represents the color of this Swatch

See also

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/generate-palette.html b/kmpalette-core/com.kmpalette/generate-palette.html new file mode 100644 index 0000000..9bbac93 --- /dev/null +++ b/kmpalette-core/com.kmpalette/generate-palette.html @@ -0,0 +1,76 @@ + + + + + generatePalette + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

generatePalette

+
+
suspend fun ImageBitmap.generatePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): Palette

Generates a Palette from this ImageBitmap.

Return

The generated Palette.

Parameters

coroutineContext

The CoroutineContext to use for the generation of the Palette.

block

A block to configure the Palette.Builder before generating the Palette.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/get-swatch.html b/kmpalette-core/com.kmpalette/get-swatch.html new file mode 100644 index 0000000..f3d815f --- /dev/null +++ b/kmpalette-core/com.kmpalette/get-swatch.html @@ -0,0 +1,76 @@ + + + + + getSwatch + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

getSwatch

+
+

Returns the selected swatch for the given target from the palette, or null if one could not be found.

Return

The selected swatch for the given target from the palette, or null.

Parameters

target

The target selection.

See also

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/get.html b/kmpalette-core/com.kmpalette/get.html new file mode 100644 index 0000000..42143b3 --- /dev/null +++ b/kmpalette-core/com.kmpalette/get.html @@ -0,0 +1,76 @@ + + + + + get + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

get

+
+
operator fun Palette.get(target: Target): Palette.Swatch?

Returns the selected swatch for the given target from the palette, or null if one could not be found.

Return

The selected swatch for the given target from the palette, or null.

Parameters

target

The target selection.

See also


operator fun Palette.get(target: SwatchTarget): Palette.Swatch?

Returns the selected swatch for the given target from the palette, or null if one could not be found.

Return

The selected swatch for the given target from the palette, or null.

Parameters

target

The target selection.

See also

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/index.html b/kmpalette-core/com.kmpalette/index.html new file mode 100644 index 0000000..9e72f25 --- /dev/null +++ b/kmpalette-core/com.kmpalette/index.html @@ -0,0 +1,317 @@ + + + + + com.kmpalette + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

Package-level declarations

+
+
+
+
+
+

Types

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
abstract class DominantColorState<T : Any>(defaultColor: Color, defaultOnColor: Color, cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {})

A class which stores and caches the result of any calculated dominant colors.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
interface PaletteResult

Wrapper result class for the generation of a Palette.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
abstract class PaletteState<T : Any>(cacheSize: Int = DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {})

A state object that generates a Palette from an ImageBitmap using loader.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
interface SwatchTarget

A class which allows custom selection of colors in a Palette's generation. Instances can be created via the Builder class.

+
+
+
+
+
+
+
+

Properties

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns a color value in the RGB color space which represents the color of this Swatch

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns an appropriate color to use for any 'title' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.

+
+
+
+
+
+
+
+

Functions

+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns an appropriate color to use for any 'body' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
suspend fun ImageBitmap.generatePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): Palette

Generates a Palette from this ImageBitmap.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
operator fun Palette.get(target: Target): Palette.Swatch?
operator fun Palette.get(target: SwatchTarget): Palette.Swatch?

Returns the selected swatch for the given target from the palette, or null if one could not be found.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns the selected swatch for the given target from the palette, or null if one could not be found.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberDominantColorState(defaultColor: Color = MaterialTheme.colorScheme.primary, defaultOnColor: Color = MaterialTheme.colorScheme.onPrimary, cacheSize: Int = 0, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<ImageBitmap>
fun <T : Any> rememberDominantColorState(loader: ImageBitmapLoader<T>, defaultColor: Color = MaterialTheme.colorScheme.primary, defaultOnColor: Color = MaterialTheme.colorScheme.onPrimary, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<T>

Create a DominantColorState which will be remembered across compositions. Then can be used to generate a dominant color from an ImageBitmap.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberGeneratePalette(loader: suspend () -> ImageBitmap, coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generates a Palette from this ImageBitmap and remembers the result.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun ImageBitmap.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generates a Palette from this ImageBitmap and remembers the result.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
fun rememberPaletteState(cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<ImageBitmap>

Creates a PaletteState that will be remembered across compilation and can be used to generate a Palette from an ImageBitmap.

fun <T : Any> rememberPaletteState(loader: ImageBitmapLoader<T>, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<T>

Creates a PaletteState that will be remembered across compilation and can be used to generate a Palette from an ImageBitmap using loader.

+
+
+
+
+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+

Returns an appropriate color to use for any 'title' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.

+
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/on-color.html b/kmpalette-core/com.kmpalette/on-color.html new file mode 100644 index 0000000..ed2d9e3 --- /dev/null +++ b/kmpalette-core/com.kmpalette/on-color.html @@ -0,0 +1,76 @@ + + + + + onColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

onColor

+
+

Returns an appropriate color to use for any 'title' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.

Return

A Color to be used for text over the Swatch's color.

See also

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/remember-dominant-color-state.html b/kmpalette-core/com.kmpalette/remember-dominant-color-state.html new file mode 100644 index 0000000..db6f206 --- /dev/null +++ b/kmpalette-core/com.kmpalette/remember-dominant-color-state.html @@ -0,0 +1,76 @@ + + + + + rememberDominantColorState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberDominantColorState

+
+
fun rememberDominantColorState(defaultColor: Color = MaterialTheme.colorScheme.primary, defaultOnColor: Color = MaterialTheme.colorScheme.onPrimary, cacheSize: Int = 0, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<ImageBitmap>

Create a DominantColorState which will be remembered across compositions. Then can be used to generate a dominant color from an ImageBitmap.

Return

A DominantColorState which can be used to generate a dominant color from a ImageBitmap.

Parameters

defaultColor

The default color, which will be used if Palette.generate fails.

defaultOnColor

The default color to use on defaultColor.

cacheSize

The size of the LruCache used to store recent results. Pass 0 to disable.

coroutineContext

The CoroutineContext used to launch the coroutine.

isColorValid

A lambda which allows filtering of the calculated image colors.

builder

A lambda which allows customization of the Palette.Builder used to generate the Palette.


fun <T : Any> rememberDominantColorState(loader: ImageBitmapLoader<T>, defaultColor: Color = MaterialTheme.colorScheme.primary, defaultOnColor: Color = MaterialTheme.colorScheme.onPrimary, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, isColorValid: (Color) -> Boolean = { true }, builder: Palette.Builder.() -> Unit = {}): DominantColorState<T>

Create a DominantColorState which will be remembered across compositions. Then can be used to generate a dominant color from an ImageBitmap.

Return

A DominantColorState which can be used to generate a dominant color from a ImageBitmap.

Parameters

loader

The ImageBitmapLoader to use to load the ImageBitmap.

defaultColor

The default color, which will be used if Palette.generate fails.

defaultOnColor

The default color to use on defaultColor.

cacheSize

The size of the LruCache used to store recent results. Pass 0 to disable.

coroutineContext

The CoroutineContext used to launch the coroutine.

isColorValid

A lambda which allows filtering of the calculated image colors.

builder

A lambda which allows customization of the Palette.Builder used to generate the Palette.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/remember-generate-palette.html b/kmpalette-core/com.kmpalette/remember-generate-palette.html new file mode 100644 index 0000000..d9c7726 --- /dev/null +++ b/kmpalette-core/com.kmpalette/remember-generate-palette.html @@ -0,0 +1,76 @@ + + + + + rememberGeneratePalette + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberGeneratePalette

+
+
fun ImageBitmap.rememberGeneratePalette(coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generates a Palette from this ImageBitmap and remembers the result.

Return

The generated Palette.

Parameters

coroutineContext

The CoroutineContext to use for the generation of the Palette.

block

A block to configure the Palette.Builder before generating the Palette.


fun rememberGeneratePalette(loader: suspend () -> ImageBitmap, coroutineContext: CoroutineContext = Dispatchers.Default, block: Palette.Builder.() -> Unit = {}): PaletteResult

Generates a Palette from this ImageBitmap and remembers the result.

Return

The generated Palette.

Parameters

loader

Loader to load the ImageBitmap from.

coroutineContext

The CoroutineContext to use for the generation of the Palette.

block

A block to configure the Palette.Builder before generating the Palette.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/remember-palette-state.html b/kmpalette-core/com.kmpalette/remember-palette-state.html new file mode 100644 index 0000000..123a4c3 --- /dev/null +++ b/kmpalette-core/com.kmpalette/remember-palette-state.html @@ -0,0 +1,76 @@ + + + + + rememberPaletteState + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

rememberPaletteState

+
+
fun rememberPaletteState(cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<ImageBitmap>

Creates a PaletteState that will be remembered across compilation and can be used to generate a Palette from an ImageBitmap.

Return

A PaletteState that will be remembered across composition.

Parameters

cacheSize

The maximum number of Palettes to cache. If 0, no caching will be done.

coroutineContext

The CoroutineContext to use for generating Palettes.

builder

A lambda that will be applied to the Palette.Builder to customize the generation of the Palette.


fun <T : Any> rememberPaletteState(loader: ImageBitmapLoader<T>, cacheSize: Int = DominantColorState.DEFAULT_CACHE_SIZE, coroutineContext: CoroutineContext = Dispatchers.Default, builder: Palette.Builder.() -> Unit = {}): PaletteState<T>

Creates a PaletteState that will be remembered across compilation and can be used to generate a Palette from an ImageBitmap using loader.

Return

A PaletteState that will be remembered across composition.

Parameters

T

The type of the input to load with loader.

loader

The ImageBitmapLoader to use for loading Ts.

cacheSize

The maximum number of Palettes to cache. If 0, no caching will be done.

coroutineContext

The CoroutineContext to use for generating Palettes.

builder

A lambda that will be applied to the Palette.Builder to customize the generation of the Palette.

+
+ +
+
+
+ + + diff --git a/kmpalette-core/com.kmpalette/title-text-color.html b/kmpalette-core/com.kmpalette/title-text-color.html new file mode 100644 index 0000000..b2c4630 --- /dev/null +++ b/kmpalette-core/com.kmpalette/title-text-color.html @@ -0,0 +1,76 @@ + + + + + titleTextColor + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

titleTextColor

+
+

Returns an appropriate color to use for any 'title' text which is displayed over this Swatch's color. This color is guaranteed to have sufficient contrast.

Return

A Color to be used for text over the Swatch's color.

See also

+
+ +
+
+
+ + + diff --git a/kmpalette-core/index.html b/kmpalette-core/index.html new file mode 100644 index 0000000..9b6c4a9 --- /dev/null +++ b/kmpalette-core/index.html @@ -0,0 +1,95 @@ + + + + + kmpalette-core + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

kmpalette-core

+
+

Packages

+
+
+
+
+
+ + +
Link copied to clipboard
+
+
+
+
common
+
+
+
+
+
+
+
+
+ +
+
+
+ + + diff --git a/kmpalette-core/navigation.html b/kmpalette-core/navigation.html new file mode 100644 index 0000000..4a3fb3a --- /dev/null +++ b/kmpalette-core/navigation.html @@ -0,0 +1,372 @@ +
+
+ +
+ +
+
+ Palette +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+ Filter +
+
+
+
+ Swatch +
+
+
+
+
+ Target +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+
+ + + + + + +
+ +
+ +
+ +
+
+
+ color +
+
+
+ +
+
+ Companion +
+
+
+ +
+
+ get() +
+
+
+ +
+
+
+ onColor +
+
+
+ +
+
+ Error +
+
+
+
+ Loading +
+
+
+
+ Success +
+
+
+
+ +
+
+ Companion +
+
+
+ + + +
+ +
+
+ Muted +
+
+
+
+ MutedDark +
+
+
+ +
+
+
+ Vibrant +
+
+
+ +
+
+ +
+
+ +
+
+
diff --git a/navigation.html b/navigation.html new file mode 100644 index 0000000..0492ecf --- /dev/null +++ b/navigation.html @@ -0,0 +1,372 @@ +
+
+ +
+ +
+
+ Palette +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+ Filter +
+
+
+
+ Swatch +
+
+
+
+
+ Target +
+
+
+ Builder +
+
+
+
+ Companion +
+
+
+
+
+ + + + + + +
+ +
+ +
+ +
+
+
+ color +
+
+
+ +
+
+ Companion +
+
+
+ +
+
+ get() +
+
+
+ +
+
+
+ onColor +
+
+
+ +
+
+ Error +
+
+
+
+ Loading +
+
+
+
+ Success +
+
+
+
+ +
+
+ Companion +
+
+
+ + + +
+ +
+
+ Muted +
+
+
+
+ MutedDark +
+
+
+ +
+
+
+ Vibrant +
+
+
+ +
+
+ +
+
+ +
+
+
diff --git a/package-list b/package-list new file mode 100644 index 0000000..a60c203 --- /dev/null +++ b/package-list @@ -0,0 +1,24 @@ +$dokka.format:html-v1 +$dokka.linkExtension:html + +module:androidx-palette +androidx.palette.graphics +module:extensions-base64 +com.kmpalette.extensions.base64 +com.kmpalette.loader +module:extensions-bytearray +com.kmpalette.extensions.bytearray +com.kmpalette.loader +module:extensions-libres +com.kmpalette.extensions.libres +com.kmpalette.loader +module:extensions-network +com.kmpalette.extensions.network +com.kmpalette.loader +module:extensions-resources +com.kmpalette.extensions.resources +com.kmpalette.loader +module:kmpalette-bitmap-loader +com.kmpalette.loader +module:kmpalette-core +com.kmpalette diff --git a/scripts/clipboard.js b/scripts/clipboard.js new file mode 100644 index 0000000..b00ce24 --- /dev/null +++ b/scripts/clipboard.js @@ -0,0 +1,52 @@ +window.addEventListener('load', () => { + document.querySelectorAll('span.copy-icon').forEach(element => { + element.addEventListener('click', (el) => copyElementsContentToClipboard(element)); + }) + + document.querySelectorAll('span.anchor-icon').forEach(element => { + element.addEventListener('click', (el) => { + if(element.hasAttribute('pointing-to')){ + const location = hrefWithoutCurrentlyUsedAnchor() + '#' + element.getAttribute('pointing-to') + copyTextToClipboard(element, location) + } + }); + }) +}) + +const copyElementsContentToClipboard = (element) => { + const selection = window.getSelection(); + const range = document.createRange(); + range.selectNodeContents(element.parentNode.parentNode); + selection.removeAllRanges(); + selection.addRange(range); + + copyAndShowPopup(element, () => selection.removeAllRanges()) +} + +const copyTextToClipboard = (element, text) => { + var textarea = document.createElement("textarea"); + textarea.textContent = text; + textarea.style.position = "fixed"; + document.body.appendChild(textarea); + textarea.select(); + + copyAndShowPopup(element, () => document.body.removeChild(textarea)) +} + +const copyAndShowPopup = (element, after) => { + try { + document.execCommand('copy'); + element.nextElementSibling.classList.add('active-popup'); + setTimeout(() => { + element.nextElementSibling.classList.remove('active-popup'); + }, 1200); + } catch (e) { + console.error('Failed to write to clipboard:', e) + } + finally { + if(after) after() + } +} + +const hrefWithoutCurrentlyUsedAnchor = () => window.location.href.split('#')[0] + diff --git a/scripts/main.js b/scripts/main.js new file mode 100644 index 0000000..ba6c347 --- /dev/null +++ b/scripts/main.js @@ -0,0 +1,44 @@ +(()=>{var e={8527:e=>{e.exports=''},5570:e=>{e.exports=''},107:e=>{e.exports=''},7224:e=>{e.exports=''},538:e=>{e.exports=''},1924:(e,n,t)=>{"use strict";var r=t(210),o=t(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,n){var t=r(e,!!n);return"function"==typeof t&&i(e,".prototype.")>-1?o(t):t}},5559:(e,n,t)=>{"use strict";var r=t(8612),o=t(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(a,i),c=o("%Object.getOwnPropertyDescriptor%",!0),u=o("%Object.defineProperty%",!0),s=o("%Math.max%");if(u)try{u({},"a",{value:1})}catch(e){u=null}e.exports=function(e){var n=l(r,a,arguments);if(c&&u){var t=c(n,"length");t.configurable&&u(n,"length",{value:1+s(0,e.length-(arguments.length-1))})}return n};var f=function(){return l(r,i,arguments)};u?u(e.exports,"apply",{value:f}):e.exports.apply=f},4184:(e,n)=>{var t; +/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],n=0;n{"use strict";e.exports=function(e,n){var t=this,r=t.constructor;return t.options=Object.assign({storeInstancesGlobally:!0},n||{}),t.callbacks={},t.directMap={},t.sequenceLevels={},t.resetTimer=null,t.ignoreNextKeyup=!1,t.ignoreNextKeypress=!1,t.nextExpectedAction=!1,t.element=e,t.addEvents(),t.options.storeInstancesGlobally&&r.instances.push(t),t},e.exports.prototype.bind=t(2207),e.exports.prototype.bindMultiple=t(3396),e.exports.prototype.unbind=t(9208),e.exports.prototype.trigger=t(9855),e.exports.prototype.reset=t(6214),e.exports.prototype.stopCallback=t(3450),e.exports.prototype.handleKey=t(3067),e.exports.prototype.addEvents=t(718),e.exports.prototype.bindSingle=t(8763),e.exports.prototype.getKeyInfo=t(5825),e.exports.prototype.pickBestAction=t(8608),e.exports.prototype.getReverseMap=t(3956),e.exports.prototype.getMatches=t(3373),e.exports.prototype.resetSequences=t(3346),e.exports.prototype.fireCallback=t(2684),e.exports.prototype.bindSequence=t(7103),e.exports.prototype.resetSequenceTimer=t(7309),e.exports.prototype.detach=t(7554),e.exports.instances=[],e.exports.reset=t(1822),e.exports.REVERSE_MAP=null},718:(e,n,t)=>{"use strict";e.exports=function(){var e=this,n=t(4323),r=e.element;e.eventHandler=t(9646).bind(e),n(r,"keypress",e.eventHandler),n(r,"keydown",e.eventHandler),n(r,"keyup",e.eventHandler)}},2207:e=>{"use strict";e.exports=function(e,n,t){return e=e instanceof Array?e:[e],this.bindMultiple(e,n,t),this}},3396:e=>{"use strict";e.exports=function(e,n,t){for(var r=0;r{"use strict";e.exports=function(e,n,r,o){var i=this;function a(n){return function(){i.nextExpectedAction=n,++i.sequenceLevels[e],i.resetSequenceTimer()}}function l(n){var a;i.fireCallback(r,n,e),"keyup"!==o&&(a=t(6770),i.ignoreNextKeyup=a(n)),setTimeout((function(){i.resetSequences()}),10)}i.sequenceLevels[e]=0;for(var c=0;c{"use strict";e.exports=function(e,n,t,r,o){var i=this;i.directMap[e+":"+t]=n;var a,l=(e=e.replace(/\s+/g," ")).split(" ");l.length>1?i.bindSequence(e,l,n,t):(a=i.getKeyInfo(e,t),i.callbacks[a.key]=i.callbacks[a.key]||[],i.getMatches(a.key,a.modifiers,{type:a.action},r,e,o),i.callbacks[a.key][r?"unshift":"push"]({callback:n,modifiers:a.modifiers,action:a.action,seq:r,level:o,combo:e}))}},7554:(e,n,t)=>{var r=t(4323).off;e.exports=function(){var e=this,n=e.element;r(n,"keypress",e.eventHandler),r(n,"keydown",e.eventHandler),r(n,"keyup",e.eventHandler)}},4323:e=>{function n(e,n,t,r){return!e.addEventListener&&(n="on"+n),(e.addEventListener||e.attachEvent).call(e,n,t,r),t}e.exports=n,e.exports.on=n,e.exports.off=function(e,n,t,r){return!e.removeEventListener&&(n="on"+n),(e.removeEventListener||e.detachEvent).call(e,n,t,r),t}},2684:(e,n,t)=>{"use strict";e.exports=function(e,n,r,o){this.stopCallback(n,n.target||n.srcElement,r,o)||!1===e(n,r)&&(t(1350)(n),t(6103)(n))}},5825:(e,n,t)=>{"use strict";e.exports=function(e,n){var r,o,i,a,l,c,u=[];for(r=t(4520)(e),a=t(7549),l=t(5355),c=t(8581),i=0;i{"use strict";e.exports=function(e,n,r,o,i,a){var l,c,u,s,f=this,p=[],d=r.type;"keypress"!==d||r.code&&"Arrow"===r.code.slice(0,5)||(f.callbacks["any-character"]||[]).forEach((function(e){p.push(e)}));if(!f.callbacks[e])return p;for(u=t(8581),"keyup"===d&&u(e)&&(n=[e]),l=0;l{"use strict";e.exports=function(){var e,n=this.constructor;if(!n.REVERSE_MAP)for(var r in n.REVERSE_MAP={},e=t(4766))r>95&&r<112||e.hasOwnProperty(r)&&(n.REVERSE_MAP[e[r]]=r);return n.REVERSE_MAP}},3067:(e,n,t)=>{"use strict";e.exports=function(e,n,r){var o,i,a,l,c=this,u={},s=0,f=!1;for(o=c.getMatches(e,n,r),i=0;i{"use strict";e.exports=function(e){var n,r=this;"number"!=typeof e.which&&(e.which=e.keyCode);var o=t(6770)(e);void 0!==o&&("keyup"!==e.type||r.ignoreNextKeyup!==o?(n=t(4610),r.handleKey(o,n(e),e)):r.ignoreNextKeyup=!1)}},5532:e=>{"use strict";e.exports=function(e,n){return e.sort().join(",")===n.sort().join(",")}},8608:e=>{"use strict";e.exports=function(e,n,t){return t||(t=this.getReverseMap()[e]?"keydown":"keypress"),"keypress"===t&&n.length&&(t="keydown"),t}},6214:e=>{"use strict";e.exports=function(){return this.callbacks={},this.directMap={},this}},7309:e=>{"use strict";e.exports=function(){var e=this;clearTimeout(e.resetTimer),e.resetTimer=setTimeout((function(){e.resetSequences()}),1e3)}},3346:e=>{"use strict";e.exports=function(e){var n=this;e=e||{};var t,r=!1;for(t in n.sequenceLevels)e[t]?r=!0:n.sequenceLevels[t]=0;r||(n.nextExpectedAction=!1)}},3450:e=>{"use strict";e.exports=function(e,n){if((" "+n.className+" ").indexOf(" combokeys ")>-1)return!1;var t=n.tagName.toLowerCase();return"input"===t||"select"===t||"textarea"===t||n.isContentEditable}},9855:e=>{"use strict";e.exports=function(e,n){return this.directMap[e+":"+n]&&this.directMap[e+":"+n]({},e),this}},9208:e=>{"use strict";e.exports=function(e,n){return this.bind(e,(function(){}),n)}},1822:e=>{"use strict";e.exports=function(){this.instances.forEach((function(e){e.reset()}))}},6770:(e,n,t)=>{"use strict";e.exports=function(e){var n,r;if(n=t(4766),r=t(5295),"keypress"===e.type){var o=String.fromCharCode(e.which);return e.shiftKey||(o=o.toLowerCase()),o}return void 0!==n[e.which]?n[e.which]:void 0!==r[e.which]?r[e.which]:String.fromCharCode(e.which).toLowerCase()}},4610:e=>{"use strict";e.exports=function(e){var n=[];return e.shiftKey&&n.push("shift"),e.altKey&&n.push("alt"),e.ctrlKey&&n.push("ctrl"),e.metaKey&&n.push("meta"),n}},8581:e=>{"use strict";e.exports=function(e){return"shift"===e||"ctrl"===e||"alt"===e||"meta"===e}},4520:e=>{"use strict";e.exports=function(e){return"+"===e?["+"]:e.split("+")}},1350:e=>{"use strict";e.exports=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1}},5355:e=>{"use strict";e.exports={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"}},7549:e=>{"use strict";e.exports={option:"alt",command:"meta",return:"enter",escape:"esc",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"}},5295:e=>{"use strict";e.exports={106:"*",107:"plus",109:"minus",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}},4766:e=>{"use strict";e.exports={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",173:"minus",187:"plus",189:"minus",224:"meta"};for(var n=1;n<20;++n)e.exports[111+n]="f"+n;for(n=0;n<=9;++n)e.exports[n+96]=n},6103:e=>{"use strict";e.exports=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}},3362:()=>{var e;!function(){var e=Math.PI,n=2*e,t=e/180,r=document.createElement("div");document.head.appendChild(r);var o=self.ConicGradient=function(e){o.all.push(this),e=e||{},this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.repeating=!!e.repeating,this.size=e.size||Math.max(innerWidth,innerHeight),this.canvas.width=this.canvas.height=this.size;var n=e.stops;this.stops=(n||"").split(/\s*,(?![^(]*\))\s*/),this.from=0;for(var t=0;t0){var i=this.stops[0].clone();i.pos=0,this.stops.unshift(i)}if(void 0===this.stops[this.stops.length-1].pos)this.stops[this.stops.length-1].pos=1;else if(!this.repeating&&this.stops[this.stops.length-1].pos<1){var a=this.stops[this.stops.length-1].clone();a.pos=1,this.stops.push(a)}if(this.stops.forEach((function(e,n){if(void 0===e.pos){for(var t=n+1;this[t];t++)if(void 0!==this[t].pos){e.pos=this[n-1].pos+(this[t].pos-this[n-1].pos)/(t-n+1);break}}else n>0&&(e.pos=Math.max(e.pos,this[n-1].pos))}),this.stops),this.repeating){var l=(n=this.stops.slice())[n.length-1].pos-n[0].pos;for(t=0;this.stops[this.stops.length-1].pos<1&&t<1e4;t++)for(var c=0;c'},get png(){return this.canvas.toDataURL()},get r(){return Math.sqrt(2)*this.size/2},paint:function(){var e,n,r,o=this.context,i=this.r,a=this.size/2,l=0,c=this.stops[l];o.translate(this.size/2,this.size/2),o.rotate(-90*t),o.rotate(this.from*t),o.translate(-this.size/2,-this.size/2);for(var u=0;u<360;){if(u/360+1e-5>=c.pos){do{e=c,l++,c=this.stops[l]}while(c&&c!=e&&c.pos===e.pos);if(!c)break;var s=e.color+""==c.color+""&&e!=c;n=e.color.map((function(e,n){return c.color[n]-e}))}r=(u/360-e.pos)/(c.pos-e.pos);var f=s?c.color:n.map((function(n,t){var o=n*r+e.color[t];return t<3?255&o:o}));if(o.fillStyle="rgba("+f.join(",")+")",o.beginPath(),o.moveTo(a,a),s)var p=360*(c.pos-e.pos);else p=.5;var d=u*t,h=(d=Math.min(360*t,d))+p*t;h=Math.min(360*t,h+.02),o.arc(a,a,i,d,h),o.closePath(),o.fill(),u+=p}}},o.ColorStop=function(e,t){if(this.gradient=e,t){var r=t.match(/^(.+?)(?:\s+([\d.]+)(%|deg|turn|grad|rad)?)?(?:\s+([\d.]+)(%|deg|turn|grad|rad)?)?\s*$/);if(this.color=o.ColorStop.colorToRGBA(r[1]),r[2]){var i=r[3];"%"==i||"0"===r[2]&&!i?this.pos=r[2]/100:"turn"==i?this.pos=+r[2]:"deg"==i?this.pos=r[2]/360:"grad"==i?this.pos=r[2]/400:"rad"==i&&(this.pos=r[2]/n)}r[4]&&(this.next=new o.ColorStop(e,r[1]+" "+r[4]+r[5]))}},o.ColorStop.prototype={clone:function(){var e=new o.ColorStop(this.gradient);return e.color=this.color,e.pos=this.pos,e},toString:function(){return"rgba("+this.color.join(", ")+") "+100*this.pos+"%"}},o.ColorStop.colorToRGBA=function(e){if(!Array.isArray(e)&&-1==e.indexOf("from")){r.style.color=e;var n=getComputedStyle(r).color.match(/rgba?\(([\d.]+), ([\d.]+), ([\d.]+)(?:, ([\d.]+))?\)/);return n&&(n.shift(),(n=n.map((function(e){return+e})))[3]=isNaN(n[3])?1:n[3]),n||[0,0,0,0]}return e}}(),self.StyleFix&&((e=document.createElement("p")).style.backgroundImage="conic-gradient(white, black)",e.style.backgroundImage=PrefixFree.prefix+"conic-gradient(white, black)",e.style.backgroundImage||StyleFix.register((function(e,n){return e.indexOf("conic-gradient")>-1&&(e=e.replace(/(?:repeating-)?conic-gradient\(\s*((?:\([^()]+\)|[^;()}])+?)\)/g,(function(e,n){return new ConicGradient({stops:n,repeating:e.indexOf("repeating-")>-1})}))),e})))},9662:(e,n,t)=>{var r=t(7854),o=t(614),i=t(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a function")}},9483:(e,n,t)=>{var r=t(7854),o=t(4411),i=t(6330),a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not a constructor")}},6077:(e,n,t)=>{var r=t(7854),o=t(614),i=r.String,a=r.TypeError;e.exports=function(e){if("object"==typeof e||o(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},1223:(e,n,t)=>{var r=t(5112),o=t(30),i=t(3070),a=r("unscopables"),l=Array.prototype;null==l[a]&&i.f(l,a,{configurable:!0,value:o(null)}),e.exports=function(e){l[a][e]=!0}},1530:(e,n,t)=>{"use strict";var r=t(8710).charAt;e.exports=function(e,n,t){return n+(t?r(e,n).length:1)}},5787:(e,n,t)=>{var r=t(7854),o=t(7976),i=r.TypeError;e.exports=function(e,n){if(o(n,e))return e;throw i("Incorrect invocation")}},9670:(e,n,t)=>{var r=t(7854),o=t(111),i=r.String,a=r.TypeError;e.exports=function(e){if(o(e))return e;throw a(i(e)+" is not an object")}},7556:(e,n,t)=>{var r=t(7293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},8533:(e,n,t)=>{"use strict";var r=t(2092).forEach,o=t(9341)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},8457:(e,n,t)=>{"use strict";var r=t(7854),o=t(9974),i=t(6916),a=t(7908),l=t(3411),c=t(7659),u=t(4411),s=t(6244),f=t(6135),p=t(8554),d=t(1246),h=r.Array;e.exports=function(e){var n=a(e),t=u(this),r=arguments.length,g=r>1?arguments[1]:void 0,v=void 0!==g;v&&(g=o(g,r>2?arguments[2]:void 0));var A,b,m,y,E,_,C=d(n),w=0;if(!C||this==h&&c(C))for(A=s(n),b=t?new this(A):h(A);A>w;w++)_=v?g(n[w],w):n[w],f(b,w,_);else for(E=(y=p(n,C)).next,b=t?new this:[];!(m=i(E,y)).done;w++)_=v?l(y,g,[m.value,w],!0):m.value,f(b,w,_);return b.length=w,b}},1318:(e,n,t)=>{var r=t(5656),o=t(1400),i=t(6244),a=function(e){return function(n,t,a){var l,c=r(n),u=i(c),s=o(a,u);if(e&&t!=t){for(;u>s;)if((l=c[s++])!=l)return!0}else for(;u>s;s++)if((e||s in c)&&c[s]===t)return e||s||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},2092:(e,n,t)=>{var r=t(9974),o=t(1702),i=t(8361),a=t(7908),l=t(6244),c=t(5417),u=o([].push),s=function(e){var n=1==e,t=2==e,o=3==e,s=4==e,f=6==e,p=7==e,d=5==e||f;return function(h,g,v,A){for(var b,m,y=a(h),E=i(y),_=r(g,v),C=l(E),w=0,x=A||c,k=n?x(h,C):t||p?x(h,0):void 0;C>w;w++)if((d||w in E)&&(m=_(b=E[w],w,y),e))if(n)k[w]=m;else if(m)switch(e){case 3:return!0;case 5:return b;case 6:return w;case 2:u(k,b)}else switch(e){case 4:return!1;case 7:u(k,b)}return f?-1:o||s?s:k}};e.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6),filterReject:s(7)}},1194:(e,n,t)=>{var r=t(7293),o=t(5112),i=t(7392),a=o("species");e.exports=function(e){return i>=51||!r((function(){var n=[];return(n.constructor={})[a]=function(){return{foo:1}},1!==n[e](Boolean).foo}))}},9341:(e,n,t)=>{"use strict";var r=t(7293);e.exports=function(e,n){var t=[][e];return!!t&&r((function(){t.call(null,n||function(){throw 1},1)}))}},3671:(e,n,t)=>{var r=t(7854),o=t(9662),i=t(7908),a=t(8361),l=t(6244),c=r.TypeError,u=function(e){return function(n,t,r,u){o(t);var s=i(n),f=a(s),p=l(s),d=e?p-1:0,h=e?-1:1;if(r<2)for(;;){if(d in f){u=f[d],d+=h;break}if(d+=h,e?d<0:p<=d)throw c("Reduce of empty array with no initial value")}for(;e?d>=0:p>d;d+=h)d in f&&(u=t(u,f[d],d,s));return u}};e.exports={left:u(!1),right:u(!0)}},206:(e,n,t)=>{var r=t(1702);e.exports=r([].slice)},4362:(e,n,t)=>{var r=t(206),o=Math.floor,i=function(e,n){var t=e.length,c=o(t/2);return t<8?a(e,n):l(e,i(r(e,0,c),n),i(r(e,c),n),n)},a=function(e,n){for(var t,r,o=e.length,i=1;i0;)e[r]=e[--r];r!==i++&&(e[r]=t)}return e},l=function(e,n,t,r){for(var o=n.length,i=t.length,a=0,l=0;a{var r=t(7854),o=t(3157),i=t(4411),a=t(111),l=t(5112)("species"),c=r.Array;e.exports=function(e){var n;return o(e)&&(n=e.constructor,(i(n)&&(n===c||o(n.prototype))||a(n)&&null===(n=n[l]))&&(n=void 0)),void 0===n?c:n}},5417:(e,n,t)=>{var r=t(7475);e.exports=function(e,n){return new(r(e))(0===n?0:n)}},3411:(e,n,t)=>{var r=t(9670),o=t(9212);e.exports=function(e,n,t,i){try{return i?n(r(t)[0],t[1]):n(t)}catch(n){o(e,"throw",n)}}},7072:(e,n,t)=>{var r=t(5112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,n){if(!n&&!o)return!1;var t=!1;try{var i={};i[r]=function(){return{next:function(){return{done:t=!0}}}},e(i)}catch(e){}return t}},4326:(e,n,t)=>{var r=t(1702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},648:(e,n,t)=>{var r=t(7854),o=t(1694),i=t(614),a=t(4326),l=t(5112)("toStringTag"),c=r.Object,u="Arguments"==a(function(){return arguments}());e.exports=o?a:function(e){var n,t,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,n){try{return e[n]}catch(e){}}(n=c(e),l))?t:u?a(n):"Object"==(r=a(n))&&i(n.callee)?"Arguments":r}},5631:(e,n,t)=>{"use strict";var r=t(3070).f,o=t(30),i=t(2248),a=t(9974),l=t(5787),c=t(408),u=t(654),s=t(6340),f=t(9781),p=t(2423).fastKey,d=t(9909),h=d.set,g=d.getterFor;e.exports={getConstructor:function(e,n,t,u){var s=e((function(e,r){l(e,d),h(e,{type:n,index:o(null),first:void 0,last:void 0,size:0}),f||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:t})})),d=s.prototype,v=g(n),A=function(e,n,t){var r,o,i=v(e),a=b(e,n);return a?a.value=t:(i.last=a={index:o=p(n,!0),key:n,value:t,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),f?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},b=function(e,n){var t,r=v(e),o=p(n);if("F"!==o)return r.index[o];for(t=r.first;t;t=t.next)if(t.key==n)return t};return i(d,{clear:function(){for(var e=v(this),n=e.index,t=e.first;t;)t.removed=!0,t.previous&&(t.previous=t.previous.next=void 0),delete n[t.index],t=t.next;e.first=e.last=void 0,f?e.size=0:this.size=0},delete:function(e){var n=this,t=v(n),r=b(n,e);if(r){var o=r.next,i=r.previous;delete t.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),t.first==r&&(t.first=o),t.last==r&&(t.last=i),f?t.size--:n.size--}return!!r},forEach:function(e){for(var n,t=v(this),r=a(e,arguments.length>1?arguments[1]:void 0);n=n?n.next:t.first;)for(r(n.value,n.key,this);n&&n.removed;)n=n.previous},has:function(e){return!!b(this,e)}}),i(d,t?{get:function(e){var n=b(this,e);return n&&n.value},set:function(e,n){return A(this,0===e?0:e,n)}}:{add:function(e){return A(this,e=0===e?0:e,e)}}),f&&r(d,"size",{get:function(){return v(this).size}}),s},setStrong:function(e,n,t){var r=n+" Iterator",o=g(n),i=g(r);u(e,n,(function(e,n){h(this,{type:r,target:e,state:o(e),kind:n,last:void 0})}),(function(){for(var e=i(this),n=e.kind,t=e.last;t&&t.removed;)t=t.previous;return e.target&&(e.last=t=t?t.next:e.state.first)?"keys"==n?{value:t.key,done:!1}:"values"==n?{value:t.value,done:!1}:{value:[t.key,t.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),t?"entries":"values",!t,!0),s(n)}}},9320:(e,n,t)=>{"use strict";var r=t(1702),o=t(2248),i=t(2423).getWeakData,a=t(9670),l=t(111),c=t(5787),u=t(408),s=t(2092),f=t(2597),p=t(9909),d=p.set,h=p.getterFor,g=s.find,v=s.findIndex,A=r([].splice),b=0,m=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},E=function(e,n){return g(e.entries,(function(e){return e[0]===n}))};y.prototype={get:function(e){var n=E(this,e);if(n)return n[1]},has:function(e){return!!E(this,e)},set:function(e,n){var t=E(this,e);t?t[1]=n:this.entries.push([e,n])},delete:function(e){var n=v(this.entries,(function(n){return n[0]===e}));return~n&&A(this.entries,n,1),!!~n}},e.exports={getConstructor:function(e,n,t,r){var s=e((function(e,o){c(e,p),d(e,{type:n,id:b++,frozen:void 0}),null!=o&&u(o,e[r],{that:e,AS_ENTRIES:t})})),p=s.prototype,g=h(n),v=function(e,n,t){var r=g(e),o=i(a(n),!0);return!0===o?m(r).set(n,t):o[r.id]=t,e};return o(p,{delete:function(e){var n=g(this);if(!l(e))return!1;var t=i(e);return!0===t?m(n).delete(e):t&&f(t,n.id)&&delete t[n.id]},has:function(e){var n=g(this);if(!l(e))return!1;var t=i(e);return!0===t?m(n).has(e):t&&f(t,n.id)}}),o(p,t?{get:function(e){var n=g(this);if(l(e)){var t=i(e);return!0===t?m(n).get(e):t?t[n.id]:void 0}},set:function(e,n){return v(this,e,n)}}:{add:function(e){return v(this,e,!0)}}),s}}},7710:(e,n,t)=>{"use strict";var r=t(2109),o=t(7854),i=t(1702),a=t(4705),l=t(1320),c=t(2423),u=t(408),s=t(5787),f=t(614),p=t(111),d=t(7293),h=t(7072),g=t(8003),v=t(9587);e.exports=function(e,n,t){var A=-1!==e.indexOf("Map"),b=-1!==e.indexOf("Weak"),m=A?"set":"add",y=o[e],E=y&&y.prototype,_=y,C={},w=function(e){var n=i(E[e]);l(E,e,"add"==e?function(e){return n(this,0===e?0:e),this}:"delete"==e?function(e){return!(b&&!p(e))&&n(this,0===e?0:e)}:"get"==e?function(e){return b&&!p(e)?void 0:n(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!p(e))&&n(this,0===e?0:e)}:function(e,t){return n(this,0===e?0:e,t),this})};if(a(e,!f(y)||!(b||E.forEach&&!d((function(){(new y).entries().next()})))))_=t.getConstructor(n,e,A,m),c.enable();else if(a(e,!0)){var x=new _,k=x[m](b?{}:-0,1)!=x,S=d((function(){x.has(1)})),O=h((function(e){new y(e)})),B=!b&&d((function(){for(var e=new y,n=5;n--;)e[m](n,n);return!e.has(-0)}));O||((_=n((function(e,n){s(e,E);var t=v(new y,e,_);return null!=n&&u(n,t[m],{that:t,AS_ENTRIES:A}),t}))).prototype=E,E.constructor=_),(S||B)&&(w("delete"),w("has"),A&&w("get")),(B||k)&&w(m),b&&E.clear&&delete E.clear}return C[e]=_,r({global:!0,forced:_!=y},C),g(_,e),b||t.setStrong(_,e,A),_}},9920:(e,n,t)=>{var r=t(2597),o=t(3887),i=t(1236),a=t(3070);e.exports=function(e,n){for(var t=o(n),l=a.f,c=i.f,u=0;u{var r=t(5112)("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[r]=!1,"/./"[e](n)}catch(e){}}return!1}},8544:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},4230:(e,n,t)=>{var r=t(1702),o=t(4488),i=t(1340),a=/"/g,l=r("".replace);e.exports=function(e,n,t,r){var c=i(o(e)),u="<"+n;return""!==t&&(u+=" "+t+'="'+l(i(r),a,""")+'"'),u+">"+c+""}},4994:(e,n,t)=>{"use strict";var r=t(3383).IteratorPrototype,o=t(30),i=t(9114),a=t(8003),l=t(7497),c=function(){return this};e.exports=function(e,n,t){var u=n+" Iterator";return e.prototype=o(r,{next:i(1,t)}),a(e,u,!1,!0),l[u]=c,e}},8880:(e,n,t)=>{var r=t(9781),o=t(3070),i=t(9114);e.exports=r?function(e,n,t){return o.f(e,n,i(1,t))}:function(e,n,t){return e[n]=t,e}},9114:e=>{e.exports=function(e,n){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:n}}},6135:(e,n,t)=>{"use strict";var r=t(4948),o=t(3070),i=t(9114);e.exports=function(e,n,t){var a=r(n);a in e?o.f(e,a,i(0,t)):e[a]=t}},8709:(e,n,t)=>{"use strict";var r=t(7854),o=t(9670),i=t(2140),a=r.TypeError;e.exports=function(e){if(o(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw a("Incorrect hint");return i(this,e)}},654:(e,n,t)=>{"use strict";var r=t(2109),o=t(6916),i=t(1913),a=t(6530),l=t(614),c=t(4994),u=t(9518),s=t(7674),f=t(8003),p=t(8880),d=t(1320),h=t(5112),g=t(7497),v=t(3383),A=a.PROPER,b=a.CONFIGURABLE,m=v.IteratorPrototype,y=v.BUGGY_SAFARI_ITERATORS,E=h("iterator"),_="keys",C="values",w="entries",x=function(){return this};e.exports=function(e,n,t,a,h,v,k){c(t,n,a);var S,O,B,I=function(e){if(e===h&&R)return R;if(!y&&e in j)return j[e];switch(e){case _:case C:case w:return function(){return new t(this,e)}}return function(){return new t(this)}},T=n+" Iterator",P=!1,j=e.prototype,z=j[E]||j["@@iterator"]||h&&j[h],R=!y&&z||I(h),M="Array"==n&&j.entries||z;if(M&&(S=u(M.call(new e)))!==Object.prototype&&S.next&&(i||u(S)===m||(s?s(S,m):l(S[E])||d(S,E,x)),f(S,T,!0,!0),i&&(g[T]=x)),A&&h==C&&z&&z.name!==C&&(!i&&b?p(j,"name",C):(P=!0,R=function(){return o(z,this)})),h)if(O={values:I(C),keys:v?R:I(_),entries:I(w)},k)for(B in O)(y||P||!(B in j))&&d(j,B,O[B]);else r({target:n,proto:!0,forced:y||P},O);return i&&!k||j[E]===R||d(j,E,R,{name:h}),g[n]=R,O}},7235:(e,n,t)=>{var r=t(857),o=t(2597),i=t(6061),a=t(3070).f;e.exports=function(e){var n=r.Symbol||(r.Symbol={});o(n,e)||a(n,e,{value:i.f(e)})}},9781:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},317:(e,n,t)=>{var r=t(7854),o=t(111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},8324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8509:(e,n,t)=>{var r=t(317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8886:(e,n,t)=>{var r=t(8113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},256:(e,n,t)=>{var r=t(8113);e.exports=/MSIE|Trident/.test(r)},5268:(e,n,t)=>{var r=t(4326),o=t(7854);e.exports="process"==r(o.process)},8113:(e,n,t)=>{var r=t(5005);e.exports=r("navigator","userAgent")||""},7392:(e,n,t)=>{var r,o,i=t(7854),a=t(8113),l=i.process,c=i.Deno,u=l&&l.versions||c&&c.version,s=u&&u.v8;s&&(o=(r=s.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},8008:(e,n,t)=>{var r=t(8113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:(e,n,t)=>{var r=t(7854),o=t(1236).f,i=t(8880),a=t(1320),l=t(3505),c=t(9920),u=t(4705);e.exports=function(e,n){var t,s,f,p,d,h=e.target,g=e.global,v=e.stat;if(t=g?r:v?r[h]||l(h,{}):(r[h]||{}).prototype)for(s in n){if(p=n[s],f=e.noTargetGet?(d=o(t,s))&&d.value:t[s],!u(g?s:h+(v?".":"#")+s,e.forced)&&void 0!==f){if(typeof p==typeof f)continue;c(p,f)}(e.sham||f&&f.sham)&&i(p,"sham",!0),a(t,s,p,e)}}},7293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},7007:(e,n,t)=>{"use strict";t(4916);var r=t(1702),o=t(1320),i=t(2261),a=t(7293),l=t(5112),c=t(8880),u=l("species"),s=RegExp.prototype;e.exports=function(e,n,t,f){var p=l(e),d=!a((function(){var n={};return n[p]=function(){return 7},7!=""[e](n)})),h=d&&!a((function(){var n=!1,t=/a/;return"split"===e&&((t={}).constructor={},t.constructor[u]=function(){return t},t.flags="",t[p]=/./[p]),t.exec=function(){return n=!0,null},t[p](""),!n}));if(!d||!h||t){var g=r(/./[p]),v=n(p,""[e],(function(e,n,t,o,a){var l=r(e),c=n.exec;return c===i||c===s.exec?d&&!a?{done:!0,value:g(n,t,o)}:{done:!0,value:l(t,n,o)}:{done:!1}}));o(String.prototype,e,v[0]),o(s,p,v[1])}f&&c(s[p],"sham",!0)}},6677:(e,n,t)=>{var r=t(7293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},2104:e=>{var n=Function.prototype,t=n.apply,r=n.bind,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(t):function(){return o.apply(t,arguments)})},9974:(e,n,t)=>{var r=t(1702),o=t(9662),i=r(r.bind);e.exports=function(e,n){return o(e),void 0===n?e:i?i(e,n):function(){return e.apply(n,arguments)}}},7065:(e,n,t)=>{"use strict";var r=t(7854),o=t(1702),i=t(9662),a=t(111),l=t(2597),c=t(206),u=r.Function,s=o([].concat),f=o([].join),p={},d=function(e,n,t){if(!l(p,n)){for(var r=[],o=0;o{var n=Function.prototype.call;e.exports=n.bind?n.bind(n):function(){return n.apply(n,arguments)}},6530:(e,n,t)=>{var r=t(9781),o=t(2597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,l=o(i,"name"),c=l&&"something"===function(){}.name,u=l&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:l,PROPER:c,CONFIGURABLE:u}},1702:e=>{var n=Function.prototype,t=n.bind,r=n.call,o=t&&t.bind(r);e.exports=t?function(e){return e&&o(r,e)}:function(e){return e&&function(){return r.apply(e,arguments)}}},5005:(e,n,t)=>{var r=t(7854),o=t(614),i=function(e){return o(e)?e:void 0};e.exports=function(e,n){return arguments.length<2?i(r[e]):r[e]&&r[e][n]}},1246:(e,n,t)=>{var r=t(648),o=t(8173),i=t(7497),a=t(5112)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},8554:(e,n,t)=>{var r=t(7854),o=t(6916),i=t(9662),a=t(9670),l=t(6330),c=t(1246),u=r.TypeError;e.exports=function(e,n){var t=arguments.length<2?c(e):n;if(i(t))return a(o(t,e));throw u(l(e)+" is not iterable")}},8173:(e,n,t)=>{var r=t(9662);e.exports=function(e,n){var t=e[n];return null==t?void 0:r(t)}},647:(e,n,t)=>{var r=t(1702),o=t(7908),i=Math.floor,a=r("".charAt),l=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,s=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,n,t,r,f,p){var d=t+e.length,h=r.length,g=s;return void 0!==f&&(f=o(f),g=u),l(p,g,(function(o,l){var u;switch(a(l,0)){case"$":return"$";case"&":return e;case"`":return c(n,0,t);case"'":return c(n,d);case"<":u=f[c(l,1,-1)];break;default:var s=+l;if(0===s)return o;if(s>h){var p=i(s/10);return 0===p?o:p<=h?void 0===r[p-1]?a(l,1):r[p-1]+a(l,1):o}u=r[s-1]}return void 0===u?"":u}))}},7854:(e,n,t)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof t.g&&t.g)||function(){return this}()||Function("return this")()},2597:(e,n,t)=>{var r=t(1702),o=t(7908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,n){return i(o(e),n)}},3501:e=>{e.exports={}},490:(e,n,t)=>{var r=t(5005);e.exports=r("document","documentElement")},4664:(e,n,t)=>{var r=t(9781),o=t(7293),i=t(317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},8361:(e,n,t)=>{var r=t(7854),o=t(1702),i=t(7293),a=t(4326),l=r.Object,c=o("".split);e.exports=i((function(){return!l("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):l(e)}:l},9587:(e,n,t)=>{var r=t(614),o=t(111),i=t(7674);e.exports=function(e,n,t){var a,l;return i&&r(a=n.constructor)&&a!==t&&o(l=a.prototype)&&l!==t.prototype&&i(e,l),e}},2788:(e,n,t)=>{var r=t(1702),o=t(614),i=t(5465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},2423:(e,n,t)=>{var r=t(2109),o=t(1702),i=t(3501),a=t(111),l=t(2597),c=t(3070).f,u=t(8006),s=t(1156),f=t(2050),p=t(9711),d=t(6677),h=!1,g=p("meta"),v=0,A=function(e){c(e,g,{value:{objectID:"O"+v++,weakData:{}}})},b=e.exports={enable:function(){b.enable=function(){},h=!0;var e=u.f,n=o([].splice),t={};t[g]=1,e(t).length&&(u.f=function(t){for(var r=e(t),o=0,i=r.length;o{var r,o,i,a=t(8536),l=t(7854),c=t(1702),u=t(111),s=t(8880),f=t(2597),p=t(5465),d=t(6200),h=t(3501),g="Object already initialized",v=l.TypeError,A=l.WeakMap;if(a||p.state){var b=p.state||(p.state=new A),m=c(b.get),y=c(b.has),E=c(b.set);r=function(e,n){if(y(b,e))throw new v(g);return n.facade=e,E(b,e,n),n},o=function(e){return m(b,e)||{}},i=function(e){return y(b,e)}}else{var _=d("state");h[_]=!0,r=function(e,n){if(f(e,_))throw new v(g);return n.facade=e,s(e,_,n),n},o=function(e){return f(e,_)?e[_]:{}},i=function(e){return f(e,_)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(n){var t;if(!u(n)||(t=o(n)).type!==e)throw v("Incompatible receiver, "+e+" required");return t}}}},7659:(e,n,t)=>{var r=t(5112),o=t(7497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},3157:(e,n,t)=>{var r=t(4326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},614:e=>{e.exports=function(e){return"function"==typeof e}},4411:(e,n,t)=>{var r=t(1702),o=t(7293),i=t(614),a=t(648),l=t(5005),c=t(2788),u=function(){},s=[],f=l("Reflect","construct"),p=/^\s*(?:class|function)\b/,d=r(p.exec),h=!p.exec(u),g=function(e){if(!i(e))return!1;try{return f(u,s,e),!0}catch(e){return!1}};e.exports=!f||o((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return h||!!d(p,c(e))}:g},4705:(e,n,t)=>{var r=t(7293),o=t(614),i=/#|\.prototype\./,a=function(e,n){var t=c[l(e)];return t==s||t!=u&&(o(n)?r(n):!!n)},l=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",s=a.POLYFILL="P";e.exports=a},111:(e,n,t)=>{var r=t(614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},1913:e=>{e.exports=!1},7850:(e,n,t)=>{var r=t(111),o=t(4326),i=t(5112)("match");e.exports=function(e){var n;return r(e)&&(void 0!==(n=e[i])?!!n:"RegExp"==o(e))}},2190:(e,n,t)=>{var r=t(7854),o=t(5005),i=t(614),a=t(7976),l=t(3307),c=r.Object;e.exports=l?function(e){return"symbol"==typeof e}:function(e){var n=o("Symbol");return i(n)&&a(n.prototype,c(e))}},408:(e,n,t)=>{var r=t(7854),o=t(9974),i=t(6916),a=t(9670),l=t(6330),c=t(7659),u=t(6244),s=t(7976),f=t(8554),p=t(1246),d=t(9212),h=r.TypeError,g=function(e,n){this.stopped=e,this.result=n},v=g.prototype;e.exports=function(e,n,t){var r,A,b,m,y,E,_,C=t&&t.that,w=!(!t||!t.AS_ENTRIES),x=!(!t||!t.IS_ITERATOR),k=!(!t||!t.INTERRUPTED),S=o(n,C),O=function(e){return r&&d(r,"normal",e),new g(!0,e)},B=function(e){return w?(a(e),k?S(e[0],e[1],O):S(e[0],e[1])):k?S(e,O):S(e)};if(x)r=e;else{if(!(A=p(e)))throw h(l(e)+" is not iterable");if(c(A)){for(b=0,m=u(e);m>b;b++)if((y=B(e[b]))&&s(v,y))return y;return new g(!1)}r=f(e,A)}for(E=r.next;!(_=i(E,r)).done;){try{y=B(_.value)}catch(e){d(r,"throw",e)}if("object"==typeof y&&y&&s(v,y))return y}return new g(!1)}},9212:(e,n,t)=>{var r=t(6916),o=t(9670),i=t(8173);e.exports=function(e,n,t){var a,l;o(e);try{if(!(a=i(e,"return"))){if("throw"===n)throw t;return t}a=r(a,e)}catch(e){l=!0,a=e}if("throw"===n)throw t;if(l)throw a;return o(a),t}},3383:(e,n,t)=>{"use strict";var r,o,i,a=t(7293),l=t(614),c=t(30),u=t(9518),s=t(1320),f=t(5112),p=t(1913),d=f("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var e={};return r[d].call(e)!==e}))?r={}:p&&(r=c(r)),l(r[d])||s(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},7497:e=>{e.exports={}},6244:(e,n,t)=>{var r=t(7466);e.exports=function(e){return r(e.length)}},133:(e,n,t)=>{var r=t(7392),o=t(7293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},8536:(e,n,t)=>{var r=t(7854),o=t(614),i=t(2788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},3929:(e,n,t)=>{var r=t(7854),o=t(7850),i=r.TypeError;e.exports=function(e){if(o(e))throw i("The method doesn't accept regular expressions");return e}},1574:(e,n,t)=>{"use strict";var r=t(9781),o=t(1702),i=t(6916),a=t(7293),l=t(1956),c=t(5181),u=t(5296),s=t(7908),f=t(8361),p=Object.assign,d=Object.defineProperty,h=o([].concat);e.exports=!p||a((function(){if(r&&1!==p({b:1},p(d({},"a",{enumerable:!0,get:function(){d(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},n={},t=Symbol(),o="abcdefghijklmnopqrst";return e[t]=7,o.split("").forEach((function(e){n[e]=e})),7!=p({},e)[t]||l(p({},n)).join("")!=o}))?function(e,n){for(var t=s(e),o=arguments.length,a=1,p=c.f,d=u.f;o>a;)for(var g,v=f(arguments[a++]),A=p?h(l(v),p(v)):l(v),b=A.length,m=0;b>m;)g=A[m++],r&&!i(d,v,g)||(t[g]=v[g]);return t}:p},30:(e,n,t)=>{var r,o=t(9670),i=t(6048),a=t(748),l=t(3501),c=t(490),u=t(317),s=t(6200),f=s("IE_PROTO"),p=function(){},d=function(e){return"