mirror of
				https://github.com/red-data-tools/YouPlot.git
				synced 2025-11-04 19:58:12 +08:00 
			
		
		
		
	Add name to Params
This commit is contained in:
		@@ -71,6 +71,7 @@ module Uplot
 | 
			
		||||
 | 
			
		||||
  class Command
 | 
			
		||||
    Params = Struct.new(
 | 
			
		||||
      # Sort me!
 | 
			
		||||
      :title,
 | 
			
		||||
      :width,
 | 
			
		||||
      :height,
 | 
			
		||||
@@ -88,7 +89,8 @@ module Uplot
 | 
			
		||||
      :canvas,
 | 
			
		||||
      :xlim,
 | 
			
		||||
      :ylim,
 | 
			
		||||
      :grid
 | 
			
		||||
      :grid,
 | 
			
		||||
      :name
 | 
			
		||||
    ) do
 | 
			
		||||
      def to_hc
 | 
			
		||||
        to_h.compact
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user