Socket
Book a DemoInstallSign in
Socket

fabric-textarea

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

fabric-textarea

> FabricJS text area feature. Resize textbox without scaling textbox

unpublished
latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

fabric-textarea

FabricJS text area feature. Resize textbox without scaling textbox

Extracted from uibox design editor. See demo here

Installation

yarn add fabric-textarea

Example

import { fabric } from 'fabric';
import 'fabric-textarea';

const textbox = new fabric.Textarea({
  text: 'Hello, how are you today',
  fontSize: 18,
  width: 240,
  height: 120,
});

const canvas = new fabric.Canvas('canvas', {
  height: 500,
  width: 700,
  backgroundColor: '#fff',
});

canvas.add(textbox);
textbox.center();

Navigate to example folder for a complete example.

FAQs

Package last updated on 14 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts