Markerjs.Blazor 1.0.0

dotnet add package Markerjs.Blazor --version 1.0.0                
NuGet\Install-Package Markerjs.Blazor -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Markerjs.Blazor" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Markerjs.Blazor --version 1.0.0                
#r "nuget: Markerjs.Blazor, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Markerjs.Blazor as a Cake Addin
#addin nuget:?package=Markerjs.Blazor&version=1.0.0

// Install Markerjs.Blazor as a Cake Tool
#tool nuget:?package=Markerjs.Blazor&version=1.0.0                

MarkerJS.Blazor

About

This package is a wrapper around markerjs to facilitate its use in Blazor applications. (Currently only wraps basic functions)

Support with commercial licenses

Under the linkware license,

All commercial licenses come with email support and major version upgrades subscription. The first year of the subscription is included in the initial purchase. Later on, the subscription renews for approximately half of the initial license price per year (you can see the exact price in the shopping cart). This subscription is optional and you can cancel it at any time. Your license is perpetual and never expires. (Markerjs official website)

Project startup sponsor

Special thanks to dindins for supporting this project.

In order to be able to separate this module, the project was delayed for a few days (It was a blazor module required for closed source projects)

Installation

No content yet

Quick Start guide

  1. Add the following script reference to the bottom of th body section In index.html (for Blazor WebAssembly) or _Host.cshtml (for Blazor server)
<script src="_content/Markerjs.Blazor/js/markerjs2.js"></script>
<script src="_content/Markerjs.Blazor/js/markerjs-live.js"></script>
  1. Register services to Application
var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();

builder.Services.AddMarkerJs(); // Add this line
  1. Add Namespace to _Import.cs (Optional)
@using Markerjs.Blazor.Components

MarkerArea Component

@using Markerjs.Blazor.Components

<MarkerArea @ref="_markerArea" Src="_content/Markerjs.Blazor/test.jpg" Class="img-fluid" Style="max-width:50%;" JsonText="@JsonText"/>

@code{
    private MarkerArea? _markerArea{ get; set; }
}

Methods

Method Description
ShowMarkerArea Open the image marker
GetConfig Get config (Json)

Parameters

Name Description
Src Image source url
Class CSS Class
Style CSS Style
JsonText For binding json content

MarkerView Component

@using Markerjs.Blazor.Components

<MarkerView @ref="_markerView" Src="_content/Markerjs.Blazor/test.jpg" Class="img-fluid" Style="max-width:50%;" JsonText="@JsonText" />

@code{
    private MarkerView? _markerView { get; set; }
}

Methods

Method Description
ToggleMarkers Toggle markers from json config

Parameters

Name Description
Src Image source url
Class CSS Class
Style CSS Style
JsonText For binding json content
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 289 4/18/2022