Latest Tutorials

Learn about the latest technologies from fellow newline community members!

  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL
  • React
  • Angular
  • Vue
  • Svelte
  • NextJS
  • Redux
  • Apollo
  • Storybook
  • D3
  • Testing Library
  • JavaScript
  • TypeScript
  • Node.js
  • Deno
  • Rust
  • Python
  • GraphQL

    OpenSeadragon: Check if Image is Rotated

    OpenSeadragon is a powerful JavaScript library that allows you to display high-resolution images in a web browser. It's especially popular for applications in digital museums, art galleries, and any use case that requires detailed views of images. One common challenge users may encounter is determining whether an image has been rotated. In this blog post, we’ll explore how to check if an image displayed in OpenSeadragon is rotated. When working with images, particularly those captured by smartphones or digital cameras, it's essential to understand that they may store orientation information within their metadata. This means that even if an image appears upright in a viewer, it could be technically rotated based on its metadata. OpenSeadragon doesn't automatically adjust the orientation of images based on their metadata, so you’ll need to handle this manually.

      OpenSeadragon: Implementing Image Zooming and Panning in Pure JavaScript

      In web development , creating interactive visualizations can be a huge boon for engagement. OpenSeadragon, an open-source JavaScript library, facilitates smooth image zooming and panning. Here, we'll explore how to implement OpenSeadragon using pure JavaScript, taking you through practical examples to get started quickly. OpenSeadragon is a powerful library designed to display high-resolution images on the web. It allows users to zoom in on images smoothly, providing detailed views without sacrificing performance. This library was built with the needs of users in mind, as you can integrate it into your projects with minimal fuss. Before we dive into code, ensure you have the OpenSeadragon library included in your project. You can do this by adding a script tag to your HTML:

      I got a job offer, thanks in a big part to your teaching. They sent a test as part of the interview process, and this was a huge help to implement my own Node server.

      This has been a really good investment!

      Advance your career with newline Pro.

      Only $40 per month for unlimited access to over 60+ books, guides and courses!

      Learn More

        Understanding OpenSeadragon Constructor Options

        OpenSeadragon is a powerful open-source JavaScript library that facilitates the viewing of large images in a zoomable interface, making it ideal for applications where high-resolution images are pivotal. Utilizing OpenSeadragon in your projects allows you to enhance user experiences with smooth and responsive image navigation. In this article, we will explore the constructor options available in OpenSeadragon. Constructor options allow you to customize the viewer to your specific needs, improving usability, and enhancing functionality. When initializing an OpenSeadragon viewer, you pass a configuration object, including various options tailored to your application. Below is the basic syntax used to create a viewer:

          Flutter: Change Border Thickness of TextField

          When developing applications in Flutter, one of the common components you'll encounter is the TextField . Customizing its appearance can significantly enhance user experience, and one often overlooked feature is the border thickness. In this guide, we'll explore how to change the border thickness of a TextField , providing practical examples and diagrams along the way. Before diving into customization, let’s quickly review the TextField widget. This essential Flutter component allows users to input text. However, its default styling may not always align with your app's design aesthetics. By default, a TextField has an underline, but Flutter allows you to customize this border using the InputDecoration class. This class provides several properties to control the appearance of the border, including thickness.

            Flutter ExpansionPanel Border Radius: Enhancing UI Design

            ExpansionPanel allows Flutter devs to expand and collapse content, which is beneficial for managing space and providing a better user experience. But how do you elevate the aesthetic quality of these panels? The answer lies in the borderRadius . In this post, we’ll explore how to seamlessly integrate borderRadius in Flutter's ExpansionPanel , enhancing both functionality and style. Before diving into customization, let’s quickly review what an ExpansionPanel is in Flutter. An ExpansionPanel is a widget designed to show or hide the contents of a section when tapped. It usually consists of a header and the expandable content beneath it. Here’s a basic example: