Last updated

API / reactnative / plot / CarnacView

Module: CarnacView

Table of contents

Type Aliases
Functions

Contents

Type Aliases

CarnacViewPropsType

Ƭ CarnacViewPropsType: Object

Type declaration

NameType
debug?boolean
onLayout?LayoutCallback
onTouchEnd?ExtendedTouchCallback
onTouchMove?ExtendedTouchCallback
onTouchStart?TouchCallback
refreshRate?number
rootNode
scale?{ x: number ; y: number }
scale.xnumber
scale.ynumber
style?any
tools?ITool[] | CompositeTool

ExtendedTouchCallback

Ƭ ExtendedTouchCallback: (touchInfo: ExtendedTouchInfo) => void

Type declaration

▸ (touchInfo): void

Parameters
Name Type
touchInfoExtendedTouchInfo
Returns

void


LayoutCallback

Ƭ LayoutCallback: (layout: { height: number ; width: number ; x: number ; y: number }) => void

Type declaration

▸ (layout): void

Parameters
Name Type
layoutObject
layout.heightnumber
layout.widthnumber
layout.xnumber
layout.ynumber
Returns

void


TouchCallback

Ƭ TouchCallback: (touchInfo: TouchInfo) => void

Type declaration

▸ (touchInfo): void

Parameters
Name Type
touchInfoTouchInfo
Returns

void

Functions

CarnacView

CarnacView(props): CElement<ViewProps, any>

A View supports native rendering

Parameters

Name Type Description
propsPropsWithChildren<CarnacViewPropsType>CarnacView props

Returns

CElement<ViewProps, any>

React native element