123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.SPaintState = void 0;
- var __1 = require("..");
- var SCompositeType_1 = require("../enums/SCompositeType");
- var SShadow_1 = require("../SShadow");
- var base_1 = require("@saga-web/base");
- var SPaintState = (function () {
- function SPaintState(state) {
- this.matrix = new base_1.SMatrix();
- this._pen = new __1.SPen();
- this._brush = new __1.SBrush();
- this._font = new __1.SFont();
- this._composite = SCompositeType_1.SCompositeType.SourceOver;
- this._shadow = new SShadow_1.SShadow();
- if (state != undefined) {
- this.pen = new __1.SPen(state.pen);
- this.brush = new __1.SBrush(state.brush);
- this.font = new __1.SFont(state.font);
- this._composite = state._composite;
- this.shadow = new SShadow_1.SShadow(state.shadow);
- var m = new base_1.SMatrix();
- m.m11 = state.matrix.m11;
- m.m12 = state.matrix.m12;
- m.m13 = state.matrix.m13;
- m.m14 = state.matrix.m14;
- m.m21 = state.matrix.m21;
- m.m22 = state.matrix.m22;
- m.m23 = state.matrix.m23;
- m.m24 = state.matrix.m24;
- m.m31 = state.matrix.m31;
- m.m32 = state.matrix.m32;
- m.m33 = state.matrix.m33;
- m.m34 = state.matrix.m34;
- m.m41 = state.matrix.m41;
- m.m42 = state.matrix.m42;
- m.m43 = state.matrix.m43;
- m.m44 = state.matrix.m44;
- this.matrix = m;
- }
- }
- Object.defineProperty(SPaintState.prototype, "pen", {
- get: function () {
- return this._pen;
- },
- set: function (value) {
- this._pen = value;
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(SPaintState.prototype, "brush", {
- get: function () {
- return this._brush;
- },
- set: function (value) {
- this._brush = value;
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(SPaintState.prototype, "font", {
- get: function () {
- return this._font;
- },
- set: function (value) {
- this._font = value;
- },
- enumerable: false,
- configurable: true
- });
- Object.defineProperty(SPaintState.prototype, "shadow", {
- get: function () {
- return this._shadow;
- },
- set: function (v) {
- this._shadow = v;
- },
- enumerable: false,
- configurable: true
- });
- return SPaintState;
- }());
- exports.SPaintState = SPaintState;
|