Sha256: 485cc1b0c5843e29a7aa6bd3df0e9882ff73e907ddd35a622f3219e7f3fc7d0d
Contents?: true
Size: 1.39 KB
Versions: 6
Compression:
Stored size: 1.39 KB
Contents
module Squib # @api private module Graphics STOPS = / # used to capture the stops \s* # leading whitespace is ok (\#?[\w]+) # color @ # no spaces here (\d+\.?\d*) # offset number /x LINEAR_GRADIENT = / \( \s* # coordinate 1 (\d+\.?\d*) \s* # x1 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # y1 number \) \s* # space between coordinates is ok \( \s* # coordinate 2 (\d+\.?\d*) \s* # x2 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # y2 number \) (#{STOPS})+ # stops \s* # trailing whitespace is ok /x RADIAL_GRADIENT = / \( \s* # coordinate 1 (\d+\.?\d*) \s* # x1 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # y1 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # r1 number \) \s* # space between coordinates is ok \( \s* # coordinate 2 (\d+\.?\d*) \s* # x2 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # y2 number ,\s* # whitespace after comma is ok (\d+\.?\d*) \s* # r2 number \) (#{STOPS})+ # stops \s* # trailing whitespace is ok /x end end
Version data entries
6 entries across 6 versions & 1 rubygems