@rsc-labs/medusa-documents
Version:
Generate documents from Medusa
33 lines (32 loc) • 980 B
JavaScript
;
/*
* Copyright 2024 RSC-Labs, https://rsoftcon.com/
*
* MIT License
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.generateHrInA7 = exports.generateHr = void 0;
function generateHr(doc, y, moveTo, lineTo) {
doc
.strokeColor("#aaaaaa")
.lineWidth(1)
.moveTo(moveTo ? moveTo : 50, y)
.lineTo(lineTo ? lineTo : 550, y)
.stroke();
}
exports.generateHr = generateHr;
function generateHrInA7(doc, y) {
doc
.strokeColor("#aaaaaa")
.lineWidth(1)
.moveTo(25, y)
.lineTo(190, y)
.stroke();
}
exports.generateHrInA7 = generateHrInA7;