#-----------------------------------------------------------------------------# Copyright (c) 2012 - 2022, Anaconda, Inc., and Bokeh Contributors.# All rights reserved.## The full license is in the file LICENSE.txt, distributed with this software.#-----------------------------------------------------------------------------''''''#-----------------------------------------------------------------------------# Boilerplate#-----------------------------------------------------------------------------from__future__importannotationsimportlogging# isort:skiplog=logging.getLogger(__name__)#-----------------------------------------------------------------------------# Imports#-----------------------------------------------------------------------------# Bokeh importsfrom..core.enumsimportTextureRepetitionfrom..core.has_propsimportabstractfrom..core.propertiesimportEnum,NonNullable,Stringfrom..modelimportModel#-----------------------------------------------------------------------------# Globals and constants#-----------------------------------------------------------------------------__all__=('CanvasTexture','ImageURLTexture','Texture',)#-----------------------------------------------------------------------------# General API#-----------------------------------------------------------------------------
[docs]@abstractclassTexture(Model):''' Base class for ``Texture`` models that represent fill patterns. '''repetition=Enum(TextureRepetition,default="repeat",help=""" """)
[docs]classCanvasTexture(Texture):''' '''code=NonNullable(String,help=""" A snippet of JavaScript code to execute in the browser. """)
[docs]classImageURLTexture(Texture):''' '''url=NonNullable(String,help=""" A URL to a drawable resource like image, video, etc. """)
#-----------------------------------------------------------------------------# Dev API#-----------------------------------------------------------------------------#-----------------------------------------------------------------------------# Private API#-----------------------------------------------------------------------------#-----------------------------------------------------------------------------# Code#-----------------------------------------------------------------------------