Class: Postsvg::Translation::Handlers::ImageHandler
- Inherits:
-
Object
- Object
- Postsvg::Translation::Handlers::ImageHandler
- Extended by:
- Shared
- Defined in:
- lib/postsvg/translation/handlers/image_handler.rb
Class Method Summary collapse
Methods included from Shared
emit_fill, emit_paint, emit_paint_setup, emit_stroke, emit_transform, expand_bbox
Class Method Details
.call(element, context) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/postsvg/translation/handlers/image_handler.rb', line 9 def self.call(element, context) # Raster image support is tracked in TODO.roadmap/21-images.md. # For now, emit a comment so the serialized PS file has a # visible marker of the elided content. href = element.href || "(none)" context.emitter.emit(Model::UnknownOperator.new(keyword: "image")) (context, element.x, element.y, element.x + element.width, element.y + element.height) end |