【文件属性】:
文件名称:prawn-shapes:Prawn 中的矢量形状
文件大小:13KB
文件格式:ZIP
更新时间:2021-06-12 16:43:46
Ruby
Prawn 的形状库
目前可用:
星星
半星
弧
pie_slice
半圆
四分之一圈
用法
安装 prawn_shapes gem,然后:
require 'prawn_shapes'
和:
pdf.star([x, y], :radius => r)
pdf.arc_around([x, y], :radius => r, :start_angle => 30, :end_angle => 60)
pdf.pie_slice([x, y], :radius => r, :start_angle => 45, :end_angle => 135)
pdf.half_circle([x, y], :radius => r, :side => :left)
pdf.quarter_circle([x, y], :radius => r, :quadrant => 3)
内置的大虾
【文件预览】:
prawn-shapes-master
----prawn_shapes.gemspec(1KB)
----VERSION(5B)
----lib()
--------prawn_shapes()
--------prawn_shapes.rb(61B)
----Gemfile(326B)
----reference_pdfs()
--------arc.pdf(6KB)
--------star.pdf(1KB)
----spec()
--------star_spec.rb(856B)
--------arc_spec.rb(3KB)
--------spec_helper.rb(470B)
----Rakefile(1KB)
----examples()
--------example_helper.rb(123B)
--------graphics()
----LICENSE(1KB)
----README.md(1KB)
----.gitignore(86B)