UNPKG

@shopify/react-native-skia

Version:

High-performance React Native Graphics using Skia

28 lines (27 loc) 593 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DiffRectNode = void 0; var _types = require("../../types"); var _DrawingNode = require("../DrawingNode"); class DiffRectNode extends _DrawingNode.JsiDrawingNode { constructor(ctx, props) { super(ctx, _types.NodeType.DiffRect, props); } deriveProps() { return null; } draw({ canvas, paint }) { const { outer, inner } = this.props; canvas.drawDRRect(outer, inner, paint); } } exports.DiffRectNode = DiffRectNode; //# sourceMappingURL=DiffRectNode.js.map