MyGit

v3.0.0

tldraw/tldraw

版本发布时间: 2024-09-13 22:37:11

tldraw/tldraw最新发布版本:v3.6.1(2024-12-17 21:52:48)

Welcome to the 3.0.0 release of the tldraw SDK. This release includes a number of new features, improved features, and bug fixes.

The biggest change, and the reason for a new major version, is our new watermark and licenses. See the New licenses section below.

Thank you also to all of our first-time contributors: Alex (@qwertyu-alex), @dimitriadamou, Ravi theja (@raviteja83), & Zachary Wood (@zacwood9).

What's new

New license

This release includes new licenses for the tldraw SDK. These are meant to make the SDK more accessible to small teams and independent developers with commercial products.

Previously, the tldraw SDK was provided under a non-commercial license, with commercial licenses available for purchase separately. In this version, the tldraw SDK's new license permits use in both commercial non-commercial projects so long as our "Made with tldraw" watermark is visible.

watermark 2

If you wish to use the tldraw SDK without the watermark, you can purchase a Business License. You'll receive a License Key that hides the watermark while the license is active. For more information, or to request a business license, visit tldraw.dev.

The watermark is a link to tldraw.dev. It becomes active after a short delay, ensuring that users don't accidentally click on it while trying to perform other actions on the canvas.

If you don't have a business license, then you must preserve the watermark as it is and not obscure it, disable it, or otherwise make it inaccessible to your users.

If you have questions or comments, let us know at hello@tldraw.com.

Deep Links

'Deep Links' are URLs that point to a specific part of a document, like a particular shape or a particular part of a page. We added some APIs to help creating and using deep links, and for updating the current page's URL as the user navigates around the document.

See the Deep Links documentation for more information and example code.

(#4333)

Export custom shapes as images

Tldraw lets you convert the contents of your canvas to a PNG or SVG image. Previously, this relied on each shape implementing a method that would render it as an SVG. If your shape is complex with lots of HTML/CSS UI, this isn't an easy thing to do.

Now, custom shapes are supported in image exports by default. This relies on embedding HTML/CSS into an SVG which does have some issues, so it's worth reading about image exports in tldraw and testing the feature for yourself.

(#4403)

Custom embeds API

Tldraw supports including content from other websites (e.g. YouTube, Google Maps, CodeSandbox) via the embed shape. Previously the list of supported websites was hard-coded. This release includes support to fully customize the list of supported websites. This means you can now add your own custom embeds, or remove existing ones.

(#4326)

Enabling text search with the getText API

Previously there was no reliable way to get the human-readable text from a shape. This is now possible with the new getText API.

The main intended usage of this API is to implement text search in your application. We provide a basic example of how to go about that here

(#4306) (#4414)

Move the camera while spacebar panning

While holding the space bar, use the arrow keys to move the viewport.

Breaking changes

Improvements

API changes

Bug fixes

Authors

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-09-13发行的版本