feat: 第一次上传代码
This commit is contained in:
30
node_modules/lottie-web/player/js/elements/canvasElements/CVSolidElement.js
generated
vendored
Normal file
30
node_modules/lottie-web/player/js/elements/canvasElements/CVSolidElement.js
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
import {
|
||||
extendPrototype,
|
||||
} from '../../utils/functionExtensions';
|
||||
import RenderableElement from '../helpers/RenderableElement';
|
||||
import BaseElement from '../BaseElement';
|
||||
import TransformElement from '../helpers/TransformElement';
|
||||
import HierarchyElement from '../helpers/HierarchyElement';
|
||||
import FrameElement from '../helpers/FrameElement';
|
||||
import CVBaseElement from './CVBaseElement';
|
||||
import IImageElement from '../ImageElement';
|
||||
import SVGShapeElement from '../svgElements/SVGShapeElement';
|
||||
|
||||
function CVSolidElement(data, globalData, comp) {
|
||||
this.initElement(data, globalData, comp);
|
||||
}
|
||||
extendPrototype([BaseElement, TransformElement, CVBaseElement, HierarchyElement, FrameElement, RenderableElement], CVSolidElement);
|
||||
|
||||
CVSolidElement.prototype.initElement = SVGShapeElement.prototype.initElement;
|
||||
CVSolidElement.prototype.prepareFrame = IImageElement.prototype.prepareFrame;
|
||||
|
||||
CVSolidElement.prototype.renderInnerContent = function () {
|
||||
// var ctx = this.canvasContext;
|
||||
this.globalData.renderer.ctxFillStyle(this.data.sc);
|
||||
// ctx.fillStyle = this.data.sc;
|
||||
this.globalData.renderer.ctxFillRect(0, 0, this.data.sw, this.data.sh);
|
||||
// ctx.fillRect(0, 0, this.data.sw, this.data.sh);
|
||||
//
|
||||
};
|
||||
|
||||
export default CVSolidElement;
|
||||
Reference in New Issue
Block a user