1. 04 Apr, 2024 1 commit
    • Ivan Matkov's avatar
      Remove input handling (#893) · 16473284
      Ivan Matkov authored
      skiko is supposed to be a wrapper around skia, however it has unrelated
      features like input. This PR removes it from this library - it's
      supposed to be handled externally.
      
      - Removed `SkikoInput`, `SkikoKey`, `SkikoPlatform*Event`
      - Replaced `SkikoView` to `SkikoRenderDelegate` and related field in
      `SkiaLayer`
      - `SkiaLayer` on macOS native now receives `NSView` instead of creating
      it internally and attaching it to the `NSWindow`. In theory, it allows
      initializing non-full-window skia view there (not tested)
      - Updated samples and readme
      16473284
  2. 21 Mar, 2024 1 commit
  3. 15 Mar, 2024 1 commit
    • Igor Demin's avatar
      System property to extract binaries to a different folder (#891) · a7763616
      Igor Demin authored
      Skiko extracts binaries to `~/.skiko` by default, but it is not always
      possible. This PR adds a way to override the folder where to extract
      binaries:
      ```
      System.setProperty("skiko.data.path", File(System.getProperty("java.io.tmpdir")).resolve(".skiko").toString())
      ```
      
      Fixes https://github.com/JetBrains/skiko/issues/885
      
      The case seems rare - we only have a crash in tests reported. If we have
      reports from real users, we have to change the default `~/.skiko` to
      something else.
      
      ## Testing 1 (manual)
      1. Run
      ```
      import org.jetbrains.skia.Bitmap
      import java.io.File
      
      fun main() {
          val path = File(System.getProperty("java.io.tmpdir")).resolve(".skiko").toString()
          println(path)
          System.setProperty("skiko.data.path", path)
          Bitmap() // loads the library
      }
      ```
      2. See that `path` is created
      ## Testing 2 (manual)
      The default way works:
      ```
      import org.jetbrains.skia.Bitmap
      
      fun main() {
          Bitmap() // loads the library
      }
      ```
      a7763616
  4. 13 Mar, 2024 1 commit
  5. 11 Mar, 2024 2 commits
  6. 06 Mar, 2024 1 commit
  7. 04 Mar, 2024 1 commit
  8. 01 Mar, 2024 2 commits
  9. 26 Feb, 2024 2 commits
  10. 24 Feb, 2024 1 commit
  11. 22 Feb, 2024 1 commit
  12. 15 Feb, 2024 1 commit
    • Pavel's avatar
      Nan vals in textstyle (#870) · a82cbd79
      Pavel authored
      * Include <cstdint> is required because of uintptr_t
      
      * move `generateVersion` to common code
      
      * on Linux with Chinese language chosen in interface this test fails
      
      * this combination leads to NaN values when height is overridden
      
      * test that empty font still have a meaningful metrics, because FontStyle may rely on it
      
      * simplify test
      
      * check that we don't put NaN in skia
      
      this value might be used as part of key in paragraph cache, which may lead to UB atm
      a82cbd79
  13. 14 Feb, 2024 1 commit
  14. 10 Feb, 2024 1 commit
  15. 09 Feb, 2024 1 commit
  16. 07 Feb, 2024 3 commits
  17. 06 Feb, 2024 2 commits
  18. 29 Jan, 2024 1 commit
  19. 26 Jan, 2024 1 commit
  20. 18 Jan, 2024 1 commit
  21. 08 Jan, 2024 1 commit
  22. 20 Dec, 2023 2 commits
  23. 18 Dec, 2023 1 commit
  24. 15 Dec, 2023 2 commits
  25. 14 Dec, 2023 1 commit
  26. 12 Dec, 2023 1 commit
  27. 11 Dec, 2023 3 commits
  28. 06 Dec, 2023 1 commit
    • Oleksandr Karpovich's avatar
      Add k/wasm support (#831) · 2c092f87
      Oleksandr Karpovich authored
      * add k/wasm support
      
      * ES6 for skiko wasm
      
      Fix build files
      
      Add SkikoCallbacks external funs
      
      Add GL external object
      
      * cleanup
      
      * Update SkiaMultiplatformSample Composite build to run with k/wasm
      
      * Update SkiaJsSample
      
      * Update CI config
      
      * cleanup
      
      * Fix CI
      
      * Add -O2 flag to emcc link stage
      
      * cleanup
      
      * cleanup
      
      * update wasm.yml
      
      * update maven repositories
      
      * fixes after rebase
      
      * enable supportJs when supportWasm is true
      
      * Add a temporary coroutines version substitution for non-wasm
      
      * Apply PR review suggestions
      
      * Use coroutines 1.8.0-RC
      
      * Workaround an issue with atomicfu 0.23.1 - Add an explicit dependency on atomicfu from nativeMain
      
      * Fix typo
      
      * Renamed SKIKO_COMPOSITE_BUILD to skiko.composite.build in SkiaJsSample
      
      * Remove wasm/experimental maven repo
      
      * Remove wasm/experimental maven repo
      
      * Add wasmArtifactId to skikoArtifactIds
      
      * Remove redundant comment
      
      ---------
      Co-authored-by: 's avatarigoriakovlev <54274820+igoriakovlev@users.noreply.github.com>
      Co-authored-by: 's avatarIlya Goncharov <ilya.goncharov@jetbrains.com>
      Co-authored-by: 's avatarOleksandr Karpovich <oleksandr.karpovich@jetbrains.com>
      2c092f87
  29. 04 Dec, 2023 1 commit
  30. 03 Dec, 2023 1 commit