@bucky24/react-canvas-terrain

0.2.0 • Public • Published

react-canvas-terrain

This module provides a way to draw responsive terrain on top of a Map from @bucky24/react-canvas-map (https://www.npmjs.com/package/@bucky24/react-canvas-map)

Dependencies

This module depends on @bucky24/react-canvas-map as a peer dependency, with a min version of 0.8.0.

Usage

TerrainLayer

This is the default and currently only component exported by this module. The TerrainLayer is a Layer that contains only terrain information.

Parameters

Param Description Required
terrainCells list of TerrainCell objects Yes

TerrainCell

This is the main object that describes where terrain falls on the map.

Param Description Required
x The X coordinate of the terrain cell Yes
y The Y coordinate of the terrain cell Yes

Readme

Keywords

none

Package Sidebar

Install

npm i @bucky24/react-canvas-terrain

Weekly Downloads

3

Version

0.2.0

License

ISC

Unpacked Size

13 kB

Total Files

8

Last publish

Collaborators

  • bucky24