pixijs-scene-graphics は何をしますか?
このスキルは、PixiJS v8 でベクターシェイプやパスを描画する際に使用します。以下の Graphics API をカバーします:
- シェイプ描画後に塗りつぶすメソッド(rect/circle/ellipse/poly/roundRect/star/regularPoly/roundPoly/roundShape/filletRect/chamferRect)
- パスメソッド(moveTo/lineTo/bezierCurveTo/quadraticCurveTo/arc/arcTo/arcToSvg/closePath)
- fill/stroke/cut、穴(holes)
- FillGradient(linear/radial)、FillPattern
- GraphicsContext の共有
- SVG のインポート/エクスポート
- containsPoint によるヒットテスト
- クローン、クリア、バウンディングボックス
- fillStyle/strokeStyle
- 描画時トランスフォーム(rotateTransform/scaleTransform/translateTransform/setTransform/save/restore)
- デフォルトスタイル
- GraphicsPath の再利用
トリガーキーワード:Graphics, GraphicsContext, rect, circle, poly, roundRect, fill, stroke, cut, hole, beginHole, FillGradient, FillPattern, moveTo, bezierCurveTo, svg, graphicsContextToSvg, svg エクスポート, GraphicsOptions, containsPoint, clone, clear, bounds, rotateTransform, translateTransform, setFillStyle, setStrokeStyle, GraphicsPath